Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add git_daemon to UIDs and GIDs.

Make git_daemon run as the git_daemon user.

Requested by:	lme@
Feature safe:	yes
  • Loading branch information...
commit 10bdae4398574189bb26c1354ebf4b07f498e29e 1 parent e54956e
@wxsBSD wxsBSD authored
View
1  GIDs
@@ -243,5 +243,6 @@ trytond:*:960:
gearmand:*:961:
zookeeper:*:962:
fluentd:*:963:
+git_daemon:*:964:
nogroup:*:65533:
nobody:*:65534:
View
1  UIDs
@@ -247,4 +247,5 @@ trytond:*:960:960::0:0:trytond daemon:/var/empty:/usr/sbin/nologin
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
View
3  devel/git/Makefile
@@ -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
View
6 devel/git/files/git_daemon.in
@@ -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}"
Please sign in to comment.
Something went wrong with that request. Please try again.