diff options
Diffstat (limited to 'package/tor')
-rw-r--r-- | package/tor/Makefile | 6 | ||||
-rw-r--r-- | package/tor/files/tor.init | 8 | ||||
-rw-r--r-- | package/tor/files/tor.postinst | 2 | ||||
-rw-r--r-- | package/tor/files/torrc | 3 |
4 files changed, 10 insertions, 9 deletions
diff --git a/package/tor/Makefile b/package/tor/Makefile index 865ecaa51..cc0e98bbe 100644 --- a/package/tor/Makefile +++ b/package/tor/Makefile @@ -4,9 +4,9 @@ include ${TOPDIR}/rules.mk PKG_NAME:= tor -PKG_VERSION:= 0.2.2.39 -PKG_RELEASE:= 1 -PKG_MD5SUM:= 9157a1f02fcda9d7d2c5744176373abd +PKG_VERSION:= 0.2.3.25 +PKG_RELEASE:= 2 +PKG_MD5SUM:= a1c364189a9a66ed9daa8e6436489daf PKG_DESCR:= An anonymous Internet communication system PKG_SECTION:= proxy PKG_DEPENDS:= libevent libopenssl zlib libpthread diff --git a/package/tor/files/tor.init b/package/tor/files/tor.init index 58a8d4759..8282aa65d 100644 --- a/package/tor/files/tor.init +++ b/package/tor/files/tor.init @@ -11,12 +11,12 @@ autostart) ;; start) [ -d /var/run/tor ] || mkdir -p /var/run/tor - [ -d /tmp/.tor ] || mkdir -p /tmp/.tor - chown tor:tor /tmp/.tor /var/run/tor - su - tor -c /usr/bin/tor + [ -d /etc/tor ] || mkdir -p /etc/tor + chown tor:tor /etc/tor /var/run/tor + /usr/bin/tor ;; stop) - kill $(pgrep -f /usr/bin/tor) + kill -15 $(pgrep -f /usr/bin/tor) ;; restart) sh $0 stop diff --git a/package/tor/files/tor.postinst b/package/tor/files/tor.postinst index b3bb981a1..7a374861b 100644 --- a/package/tor/files/tor.postinst +++ b/package/tor/files/tor.postinst @@ -3,4 +3,4 @@ add_rcconf tor tor NO gid=$(get_next_gid) add_group tor $gid -add_user tor $(get_next_uid) $gid /tmp/.tor +add_user tor $(get_next_uid) $gid /etc/tor diff --git a/package/tor/files/torrc b/package/tor/files/torrc index b533ce04c..e29fc1c50 100644 --- a/package/tor/files/torrc +++ b/package/tor/files/torrc @@ -51,7 +51,7 @@ RunAsDaemon 1 ## The directory for keeping all the keys/etc. By default, we store ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows. -#DataDirectory /var/lib/tor +DataDirectory /etc/tor ## The port on which Tor will listen for local connections from Tor controller ## applications, as documented in control-spec.txt. NB: this feature is @@ -124,3 +124,4 @@ RunAsDaemon 1 #ExitPolicy reject *:* # middleman only -- no exits allowed PidFile /var/run/tor/tor.pid +User tor |