diff options
author | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-02-08 22:47:44 +0100 |
---|---|---|
committer | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-02-09 00:07:29 +0100 |
commit | 34cbd0083768d53f8c0acfac0c71b8319ee050cd (patch) | |
tree | e60900a544a3aa04e02250410ca1f77728defa8d /usocks | |
parent | e4684251c925d81305fc8e6116642fba0e45d5b6 (diff) | |
download | contrib-34cbd0083768d53f8c0acfac0c71b8319ee050cd.tar.gz contrib-34cbd0083768d53f8c0acfac0c71b8319ee050cd.tar.xz |
usocks: tweak Pkgfile
Diffstat (limited to 'usocks')
-rw-r--r-- | usocks/.signature | 6 | ||||
-rw-r--r-- | usocks/Pkgfile | 10 | ||||
-rwxr-xr-x | usocks/usocks | 8 |
3 files changed, 12 insertions, 12 deletions
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}" "${@}" |