[crux-commits] ports/contrib (refs/remotes/origin/3.6): ipcalc: new port (calculate network, broadcast, range from given input)

crux at crux.nu crux at crux.nu
Sat Apr 10 19:06:05 UTC 2021


commit 8bb2bb77b81d38809108a41f48069132ae1124d3
Author: Steffen Nurpmeso <steffen at sdaoden.eu>
Date:   Mon Jan 4 20:47:40 2021 +0100

    ipcalc: new port (calculate network, broadcast, range from given input)

diff --git a/ipcalc/.footprint b/ipcalc/.footprint
new file mode 100644
index 000000000..e69de29bb
diff --git a/ipcalc/.signature b/ipcalc/.signature
new file mode 100644
index 000000000..6343e8960
--- /dev/null
+++ b/ipcalc/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/crux-contrib.pub
+RWSagIOpLGJF3+14NAKDJK3QPxefrmg/neZ7OPWT3ByTRvXw+jMK8126J17AihUlijeplZ3mhvHkMQiKIfHFbMbJ6Ks65VDGag4=
+SHA256 (Pkgfile) = 09df470cd0cbd96055a29f0cbf4d59edbebd744ae61064363520e2416c9faf93
+SHA256 (.footprint) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+SHA256 (ipcalc-0.41.tar.gz) = dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a
diff --git a/ipcalc/Pkgfile b/ipcalc/Pkgfile
new file mode 100644
index 000000000..258509cf8
--- /dev/null
+++ b/ipcalc/Pkgfile
@@ -0,0 +1,33 @@
+# Description: ipcalc: calculate 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/ipcalc
+   install -D -m 0644 ipcalc.1 $PKG/usr/share/man/man1/ipcalc.1
+}
+
+# s-sh-mode


More information about the crux-commits mailing list