wok-current view git/receipt @ rev 16748

Up: git (2.0.0)
author Alexander Medvedev <devl547@gmail.com>
date Sat Jun 14 19:52:20 2014 +0000 (2014-06-14)
parents 083f88526785
children cc59f73ce42d
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="2.0.0"
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-scm.com/"
11 WGET_URL="ftp://ftp.kernel.org/pub/software/scm/git/$TARBALL"
13 # NO_NSEC=1
14 CROSS_BUGS="bug: can't run test and make package."
15 #HOST_ARCH="i486 arm"
17 DEPENDS="zlib openssl curl expat"
18 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
19 tar bzip2"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 [ -L /bin/tar ] && tazpkg get-install tar --forced
26 ./configure \
27 --prefix=/usr \
28 --libexecdir=/usr/lib \
29 --without-tcltk \
30 $CONFIGURE_ARGS &&
31 make THREADED_DELTA_SEARCH=1 &&
32 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/etc/init.d
39 cp -a $stuff/git-daemon $fs/etc/init.d
40 cp -a $install/usr $fs/
41 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
42 }
44 # edit daemons.conf.
45 post_install()
46 {
47 local root
48 root=$1
49 if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
50 mkdir -p $root/var/www/git
51 echo '# Git daemon options.' >> $root/etc/daemons.conf
52 echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
53 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
54 echo '' >> $root/etc/daemons.conf
55 fi
56 }