pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/tor Use @PKG_HOME@ to store the pidfile, so that t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff325aaa1d99
branches:  trunk
changeset: 499823:ff325aaa1d99
user:      tv <tv%pkgsrc.org@localhost>
date:      Tue Sep 27 17:44:12 2005 +0000

description:
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:

 net/tor/Makefile     |  4 ++--
 net/tor/files/tor.in |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r c5935ea4ca6d -r ff325aaa1d99 net/tor/Makefile
--- a/net/tor/Makefile  Tue Sep 27 17:13:03 2005 +0000
+++ b/net/tor/Makefile  Tue Sep 27 17:44:12 2005 +0000
@@ -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 -r c5935ea4ca6d -r ff325aaa1d99 net/tor/files/tor.in
--- a/net/tor/files/tor.in      Tue Sep 27 17:13:03 2005 +0000
+++ b/net/tor/files/tor.in      Tue Sep 27 17:44:12 2005 +0000
@@ -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 @@
 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 ()



Home | Main Index | Thread Index | Old Index