wok view git/receipt @ rev 15725

Up tinc (1.0.23) sslh compatible
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 26 15:22:39 2013 +0000 (2013-12-26)
parents f96f0b211462
children 62edbd1380f9
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="1.8.3"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system"
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://git.or.cz"
11 WGET_URL="http://git-core.googlecode.com/files/$TARBALL"
12 CROSS="bug: can't run test and make package."
14 DEPENDS="zlib openssl curl expat"
15 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev tar bzip2"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 [ -L /bin/tar ] && tazpkg get-install tar --forced
22 ./configure \
23 --prefix=/usr \
24 --libexecdir=/usr/lib \
25 --without-tcltk \
26 --build=$HOST_SYSTEM \
27 --host=$HOST_SYSTEM &&
28 make THREADED_DELTA_SEARCH=1
29 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/etc/init.d
36 cp -a $stuff/git-daemon $fs/etc/init.d
37 cp -a $install/usr $fs/
38 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
39 }
41 # edit daemons.conf.
42 post_install()
43 {
44 local root
45 root=$1
46 if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
47 mkdir -p $root/var/www/git
48 echo '# Git daemon options.' >> $root/etc/daemons.conf
49 echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
50 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
51 echo '' >> $root/etc/daemons.conf
52 fi
53 }