wok-6.x annotate git/receipt @ rev 22672
updated ecm and ecm-extras again (1.03 -> 1.06)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 17 14:46:11 2020 +0100 (2020-01-17) |
parents | a78610b2eb47 |
children | 376c63dc731b |
rev | line source |
---|---|
b1+slitaz@1825 | 1 # SliTaz package receipt. |
b1+slitaz@1825 | 2 |
b1+slitaz@1825 | 3 PACKAGE="git" |
Hans-G?nter@21146 | 4 VERSION="2.21.0" |
b1+slitaz@1825 | 5 CATEGORY="development" |
Hans-G?nter@21146 | 6 SHORT_DESC="Fast version control system." |
b1+slitaz@1825 | 7 MAINTAINER="b1+slitaz@nagel.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@20669 | 9 WEB_SITE="https://git-scm.com/" |
Hans-G?nter@21146 | 10 |
Hans-G?nter@21146 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@16753 | 12 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL" |
pankso@16314 | 13 |
Hans-G?nter@21146 | 14 DEPENDS="cacerts curl expat openssl zlib" |
Hans-G?nter@21146 | 15 BUILD_DEPENDS="curl-dev expat-dev openssl-dev perl python-dev zlib-dev" |
Hans-G?nter@21146 | 16 |
pankso@16314 | 17 # NO_NSEC=1 |
pankso@16314 | 18 CROSS_BUGS="bug: can't run test and make package." |
pankso@16314 | 19 #HOST_ARCH="i486 arm" |
slaxemulator@11009 | 20 |
b1+slitaz@1825 | 21 # Rules to configure and make the package. |
b1+slitaz@1825 | 22 compile_rules() |
b1+slitaz@1825 | 23 { |
Hans-G?nter@21146 | 24 ./configure \ |
Hans-G?nter@21146 | 25 --prefix=/usr \ |
Hans-G?nter@21146 | 26 --libexecdir=/usr/lib \ |
Hans-G?nter@21146 | 27 --without-tcltk \ |
pankso@16314 | 28 $CONFIGURE_ARGS && |
Hans-G?nter@21146 | 29 make -j 1 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 |
Hans-G?nter@21146 | 37 |
Hans-G?nter@21146 | 38 cp -a $stuff/git-daemon $fs/etc/init.d |
Hans-G?nter@21146 | 39 cp -a $install/usr $fs/ |
Hans-G?nter@21146 | 40 |
slaxemulator@11682 | 41 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true |
b1+slitaz@1825 | 42 } |
slaxemulator@11682 | 43 |
slaxemulator@11682 | 44 # edit daemons.conf. |
slaxemulator@11682 | 45 post_install() |
slaxemulator@11682 | 46 { |
pascal@18730 | 47 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then |
pascal@18730 | 48 mkdir -p "$1/var/www/git" |
pascal@18730 | 49 echo '# Git daemon options.' >> "$1/etc/daemons.conf" |
pascal@18730 | 50 echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf" |
pascal@18730 | 51 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf" |
pascal@18730 | 52 echo '' >> "$1/etc/daemons.conf" |
slaxemulator@11682 | 53 fi |
al@14645 | 54 } |