forked from Lainports/freebsd-ports
Conditionally depend on python now. Earlier releases required python, this
release does not. [1]
Strip binaries before install. [2]
Add ${PREFIX}/libexec/git-core to rc script PATH. Not having this causes
git-daemon to be unable to exec upload-pack. Users always had to restart
the RC script once the box was booted in order to fix this. [3]
Properly fix bug when using gitk that "wish" is not found. [4]
Changelog for 1.7.1.1:
http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.7.1.1.txt
PR: [1]: ports/146605
[2]: ports/146961
[3]: ports/148337
Submitted by: [1]: Alex Kozlov <spam@rm-rf.kiev.ua>
[2]: Anonymous <swell.k@gmail.com>
[3]: Marin Atanasov Nikolov <dnaeon@gmail.com>
[4]: N.J. Thomas (private mail)
Feature safe: yes
31 lines
536 B
Bash
31 lines
536 B
Bash
#! /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=`set_rcvar`
|
|
|
|
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"
|