wok-current view git/receipt @ rev 16274
Up: git (1.9.1)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Apr 05 21:34:07 2014 +0000 (2014-04-05) |
parents | 62edbd1380f9 |
children | 083f88526785 |
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="1.9.1"
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"
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 }