ports/net/tsocks/files/patch-tsocks
Emanuel Haupt d9f28ee265 net/tsocks: Fix erroneous substitution
When patching the wrapper script for /usr to ${PREFIX} a part in a sed
statement gets substituted that should be escaped. Adjust sed statement
in a way that it doesn't break after patching ${PREFIX}.

While here:

- move a REINPLACE_CMD operation to a pre-existing patch file
- pacify portclippy
- reformat with portfmt

PR:		267670
Reported by:	chris@mumac.de
2022-11-10 08:49:19 +01:00

11 lines
330 B
Text

--- tsocks.orig 2002-03-16 10:27:18 UTC
+++ tsocks
@@ -53,7 +53,7 @@ case "$1" in
fi
;;
off)
- export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib\/libtsocks.so \?//'`
+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's|/usr/lib/libtsocks.so[[:blank:]]*||'`
if [ -z "$LD_PRELOAD" ]
then
unset LD_PRELOAD