[crux-commits] ports/contrib (refs/remotes/origin/3.6): ipcalc: tweak Pkgfile

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


commit e43a610bfdf090b8a82d248f583dfc09d15c1bef
Author: Steffen Nurpmeso <steffen at sdaoden.eu>
Date:   Mon Feb 8 23:11:15 2021 +0100

    ipcalc: tweak Pkgfile

diff --git a/ipcalc/.signature b/ipcalc/.signature
index 3bbaaa3c2..262d5eac3 100644
--- a/ipcalc/.signature
+++ b/ipcalc/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF31XrDJnbSmPKw8GK6oI3Kp38epIEW4vKc7BbBWOYOGCyWutaPJun1xHc23NCAD+WRxn4s9KkLXSnxq1j9gi3ewM=
-SHA256 (Pkgfile) = 09df470cd0cbd96055a29f0cbf4d59edbebd744ae61064363520e2416c9faf93
+RWSagIOpLGJF3yrjlYU1FjEoGgQmOgNWLo1K341ig5VDphTgm2CCmTg9cle+/6m/Sdc98x+Fsv2zO3Qh51mDQsqidFwdEdyuJw4=
+SHA256 (Pkgfile) = 0e3ebae78e009f8eec275eea56a43039cb5bdea3e722b88b16890157ad8e73a5
 SHA256 (.footprint) = 7afe696a7c62c307d705f3089bfdf168f6098e7ae4a97f173210ba2831f2eb53
 SHA256 (ipcalc-0.41.tar.gz) = dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a
diff --git a/ipcalc/Pkgfile b/ipcalc/Pkgfile
index 258509cf8..3b29b3e3e 100644
--- a/ipcalc/Pkgfile
+++ b/ipcalc/Pkgfile
@@ -1,4 +1,4 @@
-# Description: ipcalc: calculate broadcast, network and host range.
+# Description: ipcalc: calculate IPv4 broadcast, network and host range.
 # URL:         http://jodies.de/ipcalc
 # Maintainer:  Steffen Nurpmeso, steffen at sdaoden dot eu
 
@@ -8,7 +8,7 @@ release=1
 source=(http://jodies.de/${name}-archive/${name}-${version}.tar.gz)
 
 build() {
-   cd $name-$version
+   cd ${name}-${version}
 
    #
    cat > ./ipcalc.1 <<- \!
@@ -26,8 +26,8 @@ build() {
    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
+   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


More information about the crux-commits mailing list