wok-6.x view git/receipt @ rev 17153
Down disount (2.1.6) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 11 16:11:40 2014 +0200 (2014-09-11) |
parents | 7d6d92c10df6 |
children | 6bc6fe824d96 |
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="https://www.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="wget 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 [ -L /bin/tar ] && tazpkg get-install tar --forced
25 ./configure \
26 --prefix=/usr \
27 --libexecdir=/usr/lib \
28 --without-tcltk \
29 $CONFIGURE_ARGS &&
30 make THREADED_DELTA_SEARCH=1 &&
31 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc/init.d
38 cp -a $stuff/git-daemon $fs/etc/init.d
39 cp -a $install/usr $fs/
40 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
41 }
43 # edit daemons.conf.
44 post_install()
45 {
46 local root
47 root=$1
48 if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
49 mkdir -p $root/var/www/git
50 echo '# Git daemon options.' >> $root/etc/daemons.conf
51 echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
52 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
53 echo '' >> $root/etc/daemons.conf
54 fi
55 }