Re: ITP: tsocks -- transparent network access through a SOCKS 4 or 5 proxy
On Tue, Jul 17, 2001 at 10:27:05AM +0200, Tamas SZERB wrote:
> OK, what was the problem with dante client? And the question is still: to
> package or not to package tsocks? :)
Please package it. When downloading a 15M mozilla or a ???M kde
I thing downloading additionally 20k will not hurt anyone.
And please use this for /usr/bin/tsocks
8< 8< 8< 8< 8< 8<
#!/bin/sh
case "$1" in
on)
if [ -z "$LD_PRELOAD" ]
then
export LD_PRELOAD="/usr/lib/libtsocks.so"
else
echo $LD_PRELOAD | grep -q "/usr/lib/libtsocks\.so" ||
export LD_PRELOAD="/usr/lib/libtsocks.so:$LD_PRELOAD"
fi
;;
off)
export LD_PRELOAD=`echo -n $LD_PRELOAD | sed "s/\/usr\/lib\/libtsocks.so:\?//"`
if [ -z "$LD_PRELOAD" ]
then
unset LD_PRELOAD
fi
;;
esac
8= 8= 8= 8= 8= 8=
It makes using tsocks really simple. If you want to use tsocks type
tsocks on and the other LD_PRELOAD settings stay untouched
If you want to stop using it then type tsocks off. That's it.
Bernhard
--
Bernhard Rieder & Nagetiere: /""\ __ _,-""-.
bernhard@ratte.dhs.org / `.o\ (0)),-" .-.'.
Ratte - Mailingliste: /o O o) :-"o ,__/,__( :*'^'-.__.-'
ratte@ratte.dhs.org /o_.--_( "^---'---'------'"
Reply to: