Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 20:32:17 +0000 (UTC)
From:      Wesley Shields <wxs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307344 - in head: . devel/git devel/git/files
Message-ID:  <201211122032.qACKWHuP099237@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wxs
Date: Mon Nov 12 20:32:17 2012
New Revision: 307344
URL: http://svnweb.freebsd.org/changeset/ports/307344

Log:
  Add git_daemon to UIDs and GIDs.
  Make git_daemon run as the git_daemon user.
  
  Requested by:	lme@
  Feature safe:	yes

Modified:
  head/GIDs
  head/UIDs
  head/devel/git/Makefile
  head/devel/git/files/git_daemon.in   (contents, props changed)

Modified: head/GIDs
==============================================================================
--- head/GIDs	Mon Nov 12 19:11:40 2012	(r307343)
+++ head/GIDs	Mon Nov 12 20:32:17 2012	(r307344)
@@ -243,5 +243,6 @@ trytond:*:960:
 gearmand:*:961:
 zookeeper:*:962:
 fluentd:*:963:
+git_daemon:*:964:
 nogroup:*:65533:
 nobody:*:65534:

Modified: head/UIDs
==============================================================================
--- head/UIDs	Mon Nov 12 19:11:40 2012	(r307343)
+++ head/UIDs	Mon Nov 12 20:32:17 2012	(r307344)
@@ -247,4 +247,5 @@ trytond:*:960:960::0:0:trytond daemon:/v
 gearmand:*:961:961::0:0:gearmand daemon:/var/empty:/usr/sbin/nologin
 zookeeper:*:962:962::0:0:zookeeper user:/nonexistent:/usr/sbin/nologin
 fluentd:*:963:963::0:0:fluentd user:/nonexistent:/usr/sbin/nologin
+git_daemon:*:964:964::0:0:git daemon:/nonexistent:/usr/sbin/nologin
 nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin

Modified: head/devel/git/Makefile
==============================================================================
--- head/devel/git/Makefile	Mon Nov 12 19:11:40 2012	(r307343)
+++ head/devel/git/Makefile	Mon Nov 12 20:32:17 2012	(r307344)
@@ -184,6 +184,9 @@ MAN7=		gitcli.7 \
 
 CONFLICTS?=	git-subversion-[0-9]*
 
+USERS=	git_daemon
+GROUPS=	git_daemon
+
 SUB_FILES=	pkg-message
 PKGMESSAGE=	${WRKDIR}/pkg-message
 

Modified: head/devel/git/files/git_daemon.in
==============================================================================
--- head/devel/git/files/git_daemon.in	Mon Nov 12 19:11:40 2012	(r307343)
+++ head/devel/git/files/git_daemon.in	Mon Nov 12 20:32:17 2012	(r307344)
@@ -15,13 +15,15 @@
 . /etc/rc.subr
 
 name="git_daemon"
-rcvar=git_daemon_enable
+rcvar="git_daemon_enable"
 
 load_rc_config $name
 
+: ${git_daemon_user:=git_daemon}
+: ${git_daemon_group:=git_daemon}
 : ${git_daemon_enable:=NO}
 : ${git_daemon_directory:=%%PREFIX%%/git}
-: ${git_daemon_flags:="--syslog --reuseaddr --detach"}
+: ${git_daemon_flags:=--syslog --reuseaddr --detach}
 
 command="%%PREFIX%%/libexec/git-core/git-daemon"
 command_args="${git_daemon_directory}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211122032.qACKWHuP099237>