diff options
author | pav <pav@FreeBSD.org> | 2005-01-30 14:55:57 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-01-30 14:55:57 +0000 |
commit | ce1b6ea76297e9246ea5962347e74eca1c9080e5 (patch) | |
tree | 7605a15789fa1870c872811265465740e5280c6c /security/tor-devel/files | |
parent | 99b68d45345af757134b423910aeb83fb3e0e3ad (diff) | |
download | FreeBSD-ports-ce1b6ea76297e9246ea5962347e74eca1c9080e5.zip FreeBSD-ports-ce1b6ea76297e9246ea5962347e74eca1c9080e5.tar.gz |
- adds _tor user and gourp for tor to run as
- puts data into /var/db/tor/data - TAKE NOTE WHEN UPGRADING!
- working tor.sh!!! (finally. sorry for not doing this earlier!)
PR: ports/76837
Submitted by: rik <freebsd-ports@rikrose.net> (maintainer)
Diffstat (limited to 'security/tor-devel/files')
-rw-r--r-- | security/tor-devel/files/patch-contrib-tor.sh.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/security/tor-devel/files/patch-contrib-tor.sh.in b/security/tor-devel/files/patch-contrib-tor.sh.in new file mode 100644 index 0000000..74fa897 --- /dev/null +++ b/security/tor-devel/files/patch-contrib-tor.sh.in @@ -0,0 +1,29 @@ +--- contrib/tor.sh.in.orig Sat Jan 29 20:41:19 2005 ++++ contrib/tor.sh.in Sat Jan 29 20:46:14 2005 +@@ -5,12 +5,12 @@ + # chkconfig: 2345 90 10 + # description: Onion Router + +-TORUSER= +-TORGROUP= ++TORUSER=_tor ++TORGROUP=_tor + TORBIN=@BINDIR@/tor +-TORPID=@LOCALSTATEDIR@/run/tor/tor.pid +-TORLOG=@LOCALSTATEDIR@/log/tor/tor.log +-TORDATA=@LOCALSTATEDIR@/lib/tor ++TORPID=/var/run/tor.pid ++TORLOG=/var/log/tor.log ++TORDATA=/var/db/tor/data + + TORCONF=@CONFDIR@/torrc + # Strictly speaking, we don't need to su if we have --user and --group. +@@ -36,7 +36,7 @@ + if [ "x$TORUSER" = "x" ]; then + $TORBIN -f $TORCONF $TORARGS + else +- /bin/su -c "$TORBIN -f $TORCONF $TORARGS" $TORUSER ++ /usr/bin/su $TORUSER -c "$TORBIN -f $TORCONF $TORARGS" + fi + RETVAL=$? + if [ $RETVAL -eq 0 ]; then |