summaryrefslogtreecommitdiff
path: root/devel/git/files/git_daemon.in
blob: 778259469202b8d58c95733c732af56a66784f55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh
#
# $FreeBSD$
#

# PROVIDE: git_daemon
# REQUIRE: DAEMON
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable git_daemon:
#
#git_daemon_enable="YES"

. /etc/rc.subr

name="git_daemon"
rcvar=git_daemon_enable

load_rc_config $name

: ${git_daemon_enable:=NO}
: ${git_daemon_directory:=%%PREFIX%%/git}
: ${git_daemon_flags:="--syslog --reuseaddr --detach"}

command="%%PREFIX%%/libexec/git-core/git-daemon"
command_args="${git_daemon_directory}"

PATH="${PATH}:%%PREFIX%%/libexec/git-core"

run_rc_command "$1"