wok annotate git/receipt @ rev 24426

updated cmatrix (1.2a -> 2.0)
author Hans-G?nter Theisgen
date Sat Feb 12 11:04:56 2022 +0100 (2022-02-12)
parents 376c63dc731b
children 2ba3c02cf43f
rev   line source
b1+slitaz@1825 1 # SliTaz package receipt.
b1+slitaz@1825 2
b1+slitaz@1825 3 PACKAGE="git"
pascal@23837 4 VERSION="2.26.2"
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
pascal@24336 21 # What is the latest version available today?
pascal@24336 22 current_version()
pascal@24336 23 {
pascal@24336 24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 26 }
pascal@24336 27
b1+slitaz@1825 28 # Rules to configure and make the package.
b1+slitaz@1825 29 compile_rules()
b1+slitaz@1825 30 {
Hans-G?nter@21146 31 ./configure \
Hans-G?nter@21146 32 --prefix=/usr \
Hans-G?nter@21146 33 --libexecdir=/usr/lib \
Hans-G?nter@21146 34 --without-tcltk \
pankso@16314 35 $CONFIGURE_ARGS &&
Hans-G?nter@21146 36 make -j 1 THREADED_DELTA_SEARCH=1 &&
slaxemulator@11009 37 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
b1+slitaz@1825 38 }
b1+slitaz@1825 39
b1+slitaz@1825 40 # Rules to gen a SliTaz package suitable for Tazpkg.
b1+slitaz@1825 41 genpkg_rules()
b1+slitaz@1825 42 {
slaxemulator@11682 43 mkdir -p $fs/etc/init.d
Hans-G?nter@21146 44
Hans-G?nter@21146 45 cp -a $stuff/git-daemon $fs/etc/init.d
Hans-G?nter@21146 46 cp -a $install/usr $fs/
Hans-G?nter@21146 47
slaxemulator@11682 48 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
b1+slitaz@1825 49 }
slaxemulator@11682 50
slaxemulator@11682 51 # edit daemons.conf.
slaxemulator@11682 52 post_install()
slaxemulator@11682 53 {
pascal@18730 54 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
pascal@18730 55 mkdir -p "$1/var/www/git"
pascal@18730 56 echo '# Git daemon options.' >> "$1/etc/daemons.conf"
pascal@18730 57 echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf"
pascal@18730 58 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf"
pascal@18730 59 echo '' >> "$1/etc/daemons.conf"
slaxemulator@11682 60 fi
al@14645 61 }