wok-6.x annotate git/receipt @ rev 19960
qemu: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 15:59:50 2017 +0200 (2017-05-20) |
parents | c0e5b40bd091 |
children | 6bd25993e7c8 |
rev | line source |
---|---|
b1+slitaz@1825 | 1 # SliTaz package receipt. |
b1+slitaz@1825 | 2 |
b1+slitaz@1825 | 3 PACKAGE="git" |
devl547@17640 | 4 VERSION="2.3.0" |
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@15808 | 10 WEB_SITE="http://git-scm.com/" |
pascal@16753 | 11 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL" |
pankso@16314 | 12 |
pankso@16314 | 13 # NO_NSEC=1 |
pankso@16314 | 14 CROSS_BUGS="bug: can't run test and make package." |
pankso@16314 | 15 #HOST_ARCH="i486 arm" |
slaxemulator@11009 | 16 |
b1+slitaz@1825 | 17 DEPENDS="zlib openssl curl expat" |
pascal@16753 | 18 BUILD_DEPENDS="wget zlib-dev openssl-dev curl-dev expat-dev perl python-dev \ |
pankso@16314 | 19 tar bzip2" |
b1+slitaz@1825 | 20 |
b1+slitaz@1825 | 21 # Rules to configure and make the package. |
b1+slitaz@1825 | 22 compile_rules() |
b1+slitaz@1825 | 23 { |
pascal@5425 | 24 [ -L /bin/tar ] && tazpkg get-install tar --forced |
pankso@4165 | 25 ./configure \ |
pankso@4165 | 26 --prefix=/usr \ |
slaxemulator@11682 | 27 --libexecdir=/usr/lib \ |
pankso@4165 | 28 --without-tcltk \ |
pankso@16314 | 29 $CONFIGURE_ARGS && |
pankso@16314 | 30 make THREADED_DELTA_SEARCH=1 && |
slaxemulator@11009 | 31 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install |
b1+slitaz@1825 | 32 } |
b1+slitaz@1825 | 33 |
b1+slitaz@1825 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
b1+slitaz@1825 | 35 genpkg_rules() |
b1+slitaz@1825 | 36 { |
slaxemulator@11682 | 37 mkdir -p $fs/etc/init.d |
slaxemulator@11682 | 38 cp -a $stuff/git-daemon $fs/etc/init.d |
slaxemulator@11009 | 39 cp -a $install/usr $fs/ |
slaxemulator@11682 | 40 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true |
b1+slitaz@1825 | 41 } |
slaxemulator@11682 | 42 |
slaxemulator@11682 | 43 # edit daemons.conf. |
slaxemulator@11682 | 44 post_install() |
slaxemulator@11682 | 45 { |
pascal@18730 | 46 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then |
pascal@18730 | 47 mkdir -p "$1/var/www/git" |
pascal@18730 | 48 echo '# Git daemon options.' >> "$1/etc/daemons.conf" |
pascal@18730 | 49 echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf" |
pascal@18730 | 50 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf" |
pascal@18730 | 51 echo '' >> "$1/etc/daemons.conf" |
slaxemulator@11682 | 52 fi |
al@14645 | 53 } |