pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/distcc As reed@ said in another email:
details: https://anonhg.NetBSD.org/pkgsrc/rev/393f84be1fb6
branches: trunk
changeset: 483683:393f84be1fb6
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Wed Nov 17 11:45:49 2004 +0000
description:
As reed@ said in another email:
"No files should be owned by "nobody" because that defeats the purpose of
having a "nobody" account."
Make this use a specific user/group called distcc to run the daemon.
Bump PKGREVISION.
diffstat:
devel/distcc/Makefile | 12 ++++++++++--
devel/distcc/files/distccd.sh | 6 ++++--
2 files changed, 14 insertions(+), 4 deletions(-)
diffs (53 lines):
diff -r 4841986b3a22 -r 393f84be1fb6 devel/distcc/Makefile
--- a/devel/distcc/Makefile Wed Nov 17 11:35:16 2004 +0000
+++ b/devel/distcc/Makefile Wed Nov 17 11:45:49 2004 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2004/11/16 09:24:50 xtraeme Exp $
+# $NetBSD: Makefile,v 1.19 2004/11/17 11:45:49 xtraeme Exp $
DISTNAME= distcc-2.18.2
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://distcc.samba.org/ftp/distcc/
EXTRACT_SUFX= .tar.bz2
@@ -20,10 +21,17 @@
PKG_SYSCONFSUBDIR= distcc
RCD_SCRIPTS= distccd
+DISTCC_USER?= distcc
+DISTCC_GROUP?= distcc
+PKG_GROUPS= ${DISTCC_GROUP}
+PKG_USERS= ${DISTCC_USER}:${DISTCC_GROUP}::Distccd\\ user
+
DISTCC_PIDDIR?= ${VARBASE}/run/distccd
-OWN_DIRS_PERMS= ${DISTCC_PIDDIR} nobody nobody 0750
+OWN_DIRS_PERMS= ${DISTCC_PIDDIR} ${DISTCC_USER} ${DISTCC_GROUP} 0750
FILES_SUBST+= DISTCC_PIDDIR=${DISTCC_PIDDIR}
+FILES_SUBST+= DISTCC_USER=${DISTCC_USER}
+FILES_SUBST+= DISTCC_GROUP=${DISTCC_GROUP}
SUBST_CLASSES= doc
SUBST_STAGE.doc= post-patch
diff -r 4841986b3a22 -r 393f84be1fb6 devel/distcc/files/distccd.sh
--- a/devel/distcc/files/distccd.sh Wed Nov 17 11:35:16 2004 +0000
+++ b/devel/distcc/files/distccd.sh Wed Nov 17 11:45:49 2004 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: distccd.sh,v 1.5 2004/11/16 09:24:50 xtraeme Exp $
+# $NetBSD: distccd.sh,v 1.6 2004/11/17 11:45:49 xtraeme Exp $
#
# PROVIDE: distccd
@@ -14,7 +14,9 @@
rcvar="${name}"
command="@PREFIX@/bin/${name}"
pidfile="@DISTCC_PIDDIR@/${name}.pid"
-command_args="--daemon --pid-file ${pidfile} --user nobody"
+command_args="--daemon --pid-file ${pidfile}"
+distccd_user="@DISTCC_USER@"
+distccd_group="@DISTCC_GROUP@"
if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -f /etc/rc.d/DAEMON ]; then
load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index