diff options
author | tv <tv@pkgsrc.org> | 2005-09-27 17:44:12 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-09-27 17:44:12 +0000 |
commit | e600c9fe8a1690264c7cf4897e9bf11eeb512cba (patch) | |
tree | 183aef9d6aa97957d3e2499b8a7f33d358df28cb /net/tor | |
parent | c413838a65aa9d76c9293d3bb6f5e71fc0d49826 (diff) | |
download | pkgsrc-e600c9fe8a1690264c7cf4897e9bf11eeb512cba.tar.gz |
Use @PKG_HOME@ to store the pidfile, so that tor can actually create it
(/var/run is not writable by user "tor", and tor drops privs early).
Diffstat (limited to 'net/tor')
-rw-r--r-- | net/tor/Makefile | 4 | ||||
-rw-r--r-- | net/tor/files/tor.in | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/tor/Makefile b/net/tor/Makefile index 0d79c55654d..4ad2ede433e 100644 --- a/net/tor/Makefile +++ b/net/tor/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.18 2005/09/16 14:46:43 tv Exp $ +# $NetBSD: Makefile,v 1.19 2005/09/27 17:44:12 tv Exp $ # DISTNAME= tor-0.1.0.14 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= net security MASTER_SITES= http://tor.eff.org/dist/ diff --git a/net/tor/files/tor.in b/net/tor/files/tor.in index 56ea5fb0224..9b6db2206c8 100644 --- a/net/tor/files/tor.in +++ b/net/tor/files/tor.in @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: tor.in,v 1.1 2005/02/13 20:27:54 jschauma Exp $ +# $NetBSD: tor.in,v 1.2 2005/09/27 17:44:12 tv Exp $ # # PROVIDE: tor # REQUIRE: DAEMON @@ -21,7 +21,7 @@ command="@PREFIX@/bin/tor" required_files="@PKG_SYSCONFDIR@/torrc" start_cmd="tor_start" stop_cmd="tor_stop" -pidfile="/var/run/${name}.pid" +pidfile="@PKG_HOME@/${name}.pid" restart_cmd="tor_stop ; tor_start" tor_start () |