wok-6.x annotate git/receipt @ rev 17615

Fix: gpick build
author Alexander Medvedev <devl547@gmail.com>
date Thu Feb 12 20:33:54 2015 +0000 (2015-02-12)
parents cc59f73ce42d
children c0e5b40bd091
rev   line source
b1+slitaz@1825 1 # SliTaz package receipt.
b1+slitaz@1825 2
b1+slitaz@1825 3 PACKAGE="git"
pascal@17465 4 VERSION="2.2.1"
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 {
slaxemulator@11682 46 local root
slaxemulator@11682 47 root=$1
slaxemulator@11682 48 if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
al@14645 49 mkdir -p $root/var/www/git
slaxemulator@11682 50 echo '# Git daemon options.' >> $root/etc/daemons.conf
slaxemulator@11682 51 echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
slaxemulator@11682 52 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
slaxemulator@11682 53 echo '' >> $root/etc/daemons.conf
slaxemulator@11682 54 fi
al@14645 55 }