wok-6.x view git/receipt @ rev 12130

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