wok-next annotate git/receipt @ rev 15002
Add some GPL2 licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 10 21:12:16 2013 +0000 (2013-08-10) |
parents | f96f0b211462 |
children | 62edbd1380f9 |
rev | line source |
---|---|
b1+slitaz@1825 | 1 # SliTaz package receipt. |
b1+slitaz@1825 | 2 |
b1+slitaz@1825 | 3 PACKAGE="git" |
slaxemulator@14612 | 4 VERSION="1.8.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" |
pascal@15002 | 8 LICENSE="GPL2" |
slaxemulator@11009 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@11009 | 10 WEB_SITE="http://git.or.cz" |
slaxemulator@11009 | 11 WGET_URL="http://git-core.googlecode.com/files/$TARBALL" |
slaxemulator@11009 | 12 CROSS="bug: can't run test and make package." |
slaxemulator@11009 | 13 |
b1+slitaz@1825 | 14 DEPENDS="zlib openssl curl expat" |
slaxemulator@5343 | 15 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev tar bzip2" |
b1+slitaz@1825 | 16 |
b1+slitaz@1825 | 17 # Rules to configure and make the package. |
b1+slitaz@1825 | 18 compile_rules() |
b1+slitaz@1825 | 19 { |
b1+slitaz@1825 | 20 cd $src |
pascal@5425 | 21 [ -L /bin/tar ] && tazpkg get-install tar --forced |
pankso@4165 | 22 ./configure \ |
pankso@4165 | 23 --prefix=/usr \ |
slaxemulator@11682 | 24 --libexecdir=/usr/lib \ |
pankso@4165 | 25 --without-tcltk \ |
slaxemulator@11009 | 26 --build=$HOST_SYSTEM \ |
slaxemulator@11009 | 27 --host=$HOST_SYSTEM && |
pankso@4165 | 28 make THREADED_DELTA_SEARCH=1 |
slaxemulator@11009 | 29 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install |
b1+slitaz@1825 | 30 } |
b1+slitaz@1825 | 31 |
b1+slitaz@1825 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
b1+slitaz@1825 | 33 genpkg_rules() |
b1+slitaz@1825 | 34 { |
slaxemulator@11682 | 35 mkdir -p $fs/etc/init.d |
slaxemulator@11682 | 36 cp -a $stuff/git-daemon $fs/etc/init.d |
slaxemulator@11009 | 37 cp -a $install/usr $fs/ |
slaxemulator@11682 | 38 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true |
b1+slitaz@1825 | 39 } |
slaxemulator@11682 | 40 |
slaxemulator@11682 | 41 # edit daemons.conf. |
slaxemulator@11682 | 42 post_install() |
slaxemulator@11682 | 43 { |
slaxemulator@11682 | 44 local root |
slaxemulator@11682 | 45 root=$1 |
slaxemulator@11682 | 46 if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then |
al@14645 | 47 mkdir -p $root/var/www/git |
slaxemulator@11682 | 48 echo '# Git daemon options.' >> $root/etc/daemons.conf |
slaxemulator@11682 | 49 echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf |
slaxemulator@11682 | 50 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf |
slaxemulator@11682 | 51 echo '' >> $root/etc/daemons.conf |
slaxemulator@11682 | 52 fi |
al@14645 | 53 } |