[crux-commits] ports/contrib (3.6): usocks: tweak Pkgfile

crux at crux.nu crux at crux.nu
Mon Feb 8 23:09:48 UTC 2021


commit 34cbd0083768d53f8c0acfac0c71b8319ee050cd
Author: Steffen Nurpmeso <steffen at sdaoden.eu>
Date:   Mon Feb 8 22:47:44 2021 +0100

    usocks: tweak Pkgfile

diff --git a/usocks/.signature b/usocks/.signature
index bd82f493c..ead667f65 100644
--- a/usocks/.signature
+++ b/usocks/.signature
@@ -1,8 +1,8 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3+/5jS6LAeRetEtUxPv3aUTX1cXVhV5VkeJRqlElhsMb+NnjqMmH8f9O2oJIH3tpKnHsjYzZIYy2gxySFJ+w0wM=
-SHA256 (Pkgfile) = 32241e6a87fff886f88e1e634adfa66e8cb1922dec15c4d096414359f12bd709
+RWSagIOpLGJF33JcLXhxAG9CY9n+27hg0iTZ0IZBgwS4SOhfpKbzhpa0PJl4DnJFIvSr7bhtwE02B8n05ArALbBxC1xWUdUIBQM=
+SHA256 (Pkgfile) = 03f203182754e42bb77ec6d1147e130e40667e1e9759ca666b1687b33854b570
 SHA256 (.footprint) = 83e6dfb568c52a5c9a2ec7cff5083bd1e0467bcd60f8bce6bf84dadf9b927c14
-SHA256 (usocks) = 9e4a6140e87662888f087e8a9835b1ceb0c66cea059b446fbaf29bc99542d100
+SHA256 (usocks) = 2f12cbd959581ffd39ca46d82430604756215f644ab9fce2719a1f0c3efa21d5
 SHA256 (usocks.c) = 78f18e4a1d896dcfbd5918a2e67bb1efa75222e07f7a755d4cdd60d33d5af6a4
 SHA256 (usocks.1) = d1b4e865705e4703ddea776f93e1214672c400196b7b7c659f9de19dc8a35d2d
 SHA256 (makefile) = d419d35695835546f34ce614106037d07cf8038ad7fc9b2a874c1cc330904baa
diff --git a/usocks/Pkgfile b/usocks/Pkgfile
index e522d6d9a..01cc3ed6a 100644
--- a/usocks/Pkgfile
+++ b/usocks/Pkgfile
@@ -4,13 +4,13 @@
 
 name=usocks
 version=20200917
-release=1
+release=2
 source=(usocks usocks.c usocks.1 makefile)
 
 build () {
 	make
-	install -d $PKG/usr/{bin,lib,share/man/man1}
-	install -m 755 $name $PKG/usr/bin/
-	install -m 644 preloadable-$name.so $PKG/usr/lib/
-	install -m 644 $name.1 $PKG/usr/share/man/man1/
+	install -d "${PKG}"/usr/{bin,lib,share/man/man1}
+	install -m 755 ${name} "${PKG}"/usr/bin/
+	install -m 644 preloadable-${name}.so "${PKG}"/usr/lib/
+	install -m 644 ${name}.1 "${PKG}"/usr/share/man/man1/
 }
diff --git a/usocks/usocks b/usocks/usocks
index 2aa56cf7d..9e1a6acfd 100755
--- a/usocks/usocks
+++ b/usocks/usocks
@@ -7,15 +7,15 @@
 
 ld_preload=/usr/lib/preloadable-usocks.so
 
-if [ $# -lt 3 ]; then
+if [ ${#} -lt 3 ]; then
 	echo >&2 'Synopsis: usocks PROXY-ADDRESS PROXY-PORT COMMAND [:ARGS:]'
 	exit 64 # EX_USAGE
 fi
 
-USOCKS_ADDR=$1 USOCKS_PORT=$2 cmd=$3
+USOCKS_ADDR=${1} USOCKS_PORT=${2} cmd=${3}
 shift 3
 
-LD_PRELOAD="$ld_preload $LD_PRELOAD"
+LD_PRELOAD="${ld_preload} ${LD_PRELOAD}"
 
 export USOCKS_ADDR USOCKS_PORT LD_PRELOAD
-exec "$cmd" "$@"
+exec "${cmd}" "${@}"


More information about the crux-commits mailing list