From cb5f327002eb0d9f866c6d3c9f203ed8304f7b20 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 12 Sep 2012 16:24:18 -0500 Subject: network/tor: Fixed logrotate script (added "su" directive) Signed-off-by: Robby Workman --- network/tor/tor.SlackBuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'network/tor/tor.SlackBuild') diff --git a/network/tor/tor.SlackBuild b/network/tor/tor.SlackBuild index 18d759c52f..39813aab45 100644 --- a/network/tor/tor.SlackBuild +++ b/network/tor/tor.SlackBuild @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=tor -VERSION=0.2.2.37 -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.2.2.37} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Select tor's default user/group @@ -110,9 +110,10 @@ chown $TOR_USER:$TOR_GROUP $PKG/var/{run,log,lib}/tor chmod 0700 $PKG/var/lib/tor install -D -m 0755 $CWD/rc.tor $PKG/etc/rc.d/rc.tor.new install -D -m 0755 contrib/torctl $PKG/usr/bin/torctl -install -D -m 0644 $CWD/logrotate.tor $PKG/etc/logrotate.d/tor.new install -D -m 0644 $CWD/torrc $PKG/etc/tor/torrc.new mv $PKG/etc/tor/tor-tsocks.conf $PKG/etc/tor/tor-tsocks.conf.new +sed -e "s,@USER@,$TOR_USER," -e "s,@GROUP@,$TOR_GROUP," $CWD/logrotate.tor \ + > $PKG/etc/logrotate.d/tor.new find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -- cgit v1.2.3