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