wok-6.x diff git/receipt @ rev 11682

Up: git to 1.7.9.1. Add git-daemon so the user can run a web daemon of git repos.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 18 08:37:39 2012 -0500 (2012-02-18)
parents 68f2ff5fa326
children 5dfd3ce5f96b
line diff
     1.1 --- a/git/receipt	Sun Jan 29 16:31:42 2012 -0500
     1.2 +++ b/git/receipt	Sat Feb 18 08:37:39 2012 -0500
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="git"
     1.7 -VERSION="1.7.9"
     1.8 +VERSION="1.7.9.1"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Fast version control system"
    1.11  MAINTAINER="b1+slitaz@nagel.org"
    1.12 @@ -20,7 +20,7 @@
    1.13  	[ -L /bin/tar ] && tazpkg get-install tar --forced
    1.14  	./configure \
    1.15  		--prefix=/usr \
    1.16 -		--libexecdir=/usr/lib/git \
    1.17 +		--libexecdir=/usr/lib \
    1.18  		--without-tcltk \
    1.19  		--build=$HOST_SYSTEM \
    1.20  		--host=$HOST_SYSTEM &&
    1.21 @@ -31,7 +31,21 @@
    1.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.23  genpkg_rules()
    1.24  {
    1.25 -	mkdir -p $fs
    1.26 +	mkdir -p $fs/etc/init.d
    1.27 +	cp -a $stuff/git-daemon $fs/etc/init.d
    1.28  	cp -a $install/usr $fs/
    1.29 -	strip -s $fs/usr/lib/git/git-core/* 2>/dev/null || true
    1.30 +	strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
    1.31  }
    1.32 +
    1.33 +# edit daemons.conf.
    1.34 +post_install()
    1.35 +{
    1.36 +	local root
    1.37 +	root=$1
    1.38 +	if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
    1.39 +		echo '# Git daemon options.' >> $root/etc/daemons.conf
    1.40 +		echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
    1.41 +		echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
    1.42 +		echo '' >> $root/etc/daemons.conf
    1.43 +	fi
    1.44 +}
    1.45 \ No newline at end of file