diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-11-16 09:24:50 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-11-16 09:24:50 +0000 |
commit | 199b42e1ce6a03c03532938bcb4adc8469af674e (patch) | |
tree | 4dcd50c104cbedf2f695b0caaa98c731e8e087d7 /devel/distcc | |
parent | 7cf5d42cbcad63a949e6eb4f8ea443556f6a4688 (diff) | |
download | pkgsrc-199b42e1ce6a03c03532938bcb4adc8469af674e.tar.gz |
Change /tmp as directory for $pidfile, because as reed@ said: "this
does not look safe", now it's stored in ${VARBASE}/run/distccd with
nobody:nobody 0750.
Diffstat (limited to 'devel/distcc')
-rw-r--r-- | devel/distcc/Makefile | 7 | ||||
-rwxr-xr-x | devel/distcc/files/distccd.sh | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/devel/distcc/Makefile b/devel/distcc/Makefile index 8c4089357b7..2eb14f8e22a 100644 --- a/devel/distcc/Makefile +++ b/devel/distcc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2004/11/15 17:03:32 xtraeme Exp $ +# $NetBSD: Makefile,v 1.18 2004/11/16 09:24:50 xtraeme Exp $ DISTNAME= distcc-2.18.2 CATEGORIES= devel @@ -20,6 +20,11 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} PKG_SYSCONFSUBDIR= distcc RCD_SCRIPTS= distccd +DISTCC_PIDDIR?= ${VARBASE}/run/distccd +OWN_DIRS_PERMS= ${DISTCC_PIDDIR} nobody nobody 0750 + +FILES_SUBST+= DISTCC_PIDDIR=${DISTCC_PIDDIR} + SUBST_CLASSES= doc SUBST_STAGE.doc= post-patch SUBST_FILES.doc= src/distcc.c src/hosts.c diff --git a/devel/distcc/files/distccd.sh b/devel/distcc/files/distccd.sh index 3e7c28e614e..f3828855453 100755 --- a/devel/distcc/files/distccd.sh +++ b/devel/distcc/files/distccd.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: distccd.sh,v 1.4 2004/11/15 18:06:43 xtraeme Exp $ +# $NetBSD: distccd.sh,v 1.5 2004/11/16 09:24:50 xtraeme Exp $ # # PROVIDE: distccd @@ -13,7 +13,7 @@ fi name="distccd" rcvar="${name}" command="@PREFIX@/bin/${name}" -pidfile="/tmp/${name}.pid" +pidfile="@DISTCC_PIDDIR@/${name}.pid" command_args="--daemon --pid-file ${pidfile} --user nobody" if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -f /etc/rc.d/DAEMON ]; then |