34 lines
670 B
Plaintext
34 lines
670 B
Plaintext
# Description: ipcalc: calculate IPv4 broadcast, network and host range.
|
|
# URL: http://jodies.de/ipcalc
|
|
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
|
|
|
|
name=ipcalc
|
|
version=0.41
|
|
release=1
|
|
source=(http://jodies.de/${name}-archive/${name}-${version}.tar.gz)
|
|
|
|
build() {
|
|
cd ${name}-${version}
|
|
|
|
#
|
|
cat > ./ipcalc.1 <<- \!
|
|
.Dd January 4, 2021
|
|
.Dt IPCALC 1
|
|
.Os
|
|
.
|
|
.Sh NAME
|
|
.Nm ipcalc
|
|
.Nd Calculate IP broadcast, host range etc
|
|
.
|
|
.Bd -literal
|
|
!
|
|
|
|
perl ipcalc >> ./ipcalc.1
|
|
echo '.Ed' >> ./ipcalc.1
|
|
|
|
install -D -m 0755 ipcalc "${PKG}"/usr/bin/${name}
|
|
install -D -m 0644 ipcalc.1 "${PKG}"/usr/share/man/man1/${name}.1
|
|
}
|
|
|
|
# s-sh-mode
|