wok-next annotate git/receipt @ rev 20458

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents 018320afe651
children 41f7b84e8b0c
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."
slaxemulator@11009 15
b1+slitaz@1825 16 DEPENDS="zlib openssl curl expat"
pascal@16753 17 BUILD_DEPENDS="wget zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
pascal@19919 18 tar bzip2 gettext-tools"
b1+slitaz@1825 19
b1+slitaz@1825 20 # Rules to configure and make the package.
b1+slitaz@1825 21 compile_rules()
b1+slitaz@1825 22 {
pascal@5425 23 [ -L /bin/tar ] && tazpkg get-install tar --forced
pankso@4165 24 ./configure \
pankso@4165 25 --prefix=/usr \
slaxemulator@11682 26 --libexecdir=/usr/lib \
pankso@4165 27 --without-tcltk \
pankso@16314 28 $CONFIGURE_ARGS &&
pankso@16314 29 make THREADED_DELTA_SEARCH=1 &&
slaxemulator@11009 30 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
b1+slitaz@1825 31 }
b1+slitaz@1825 32
b1+slitaz@1825 33 # Rules to gen a SliTaz package suitable for Tazpkg.
b1+slitaz@1825 34 genpkg_rules()
b1+slitaz@1825 35 {
slaxemulator@11682 36 mkdir -p $fs/etc/init.d
slaxemulator@11682 37 cp -a $stuff/git-daemon $fs/etc/init.d
slaxemulator@11009 38 cp -a $install/usr $fs/
slaxemulator@11682 39 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
b1+slitaz@1825 40 }
slaxemulator@11682 41
slaxemulator@11682 42 # edit daemons.conf.
slaxemulator@11682 43 post_install()
slaxemulator@11682 44 {
pascal@18730 45 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
pascal@18730 46 mkdir -p "$1/var/www/git"
pascal@18730 47 echo '# Git daemon options.' >> "$1/etc/daemons.conf"
pascal@18730 48 echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf"
pascal@18730 49 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf"
pascal@18730 50 echo '' >> "$1/etc/daemons.conf"
slaxemulator@11682 51 fi
al@14645 52 }