wok-current annotate git/receipt @ rev 25702
Up git (CVE-2024-32002,CVE-2024-32004,CVE-2024-32020,CVE-2024-32021,CVE-2024-32465), gdk-pixbuf CVE-2022-48622, up linux 5.10.217
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 20 11:38:26 2024 +0000 (7 months ago) |
parents | 3ad63c8fc2f9 |
children | 5926178cd6fa |
rev | line source |
---|---|
b1+slitaz@1825 | 1 # SliTaz package receipt. |
b1+slitaz@1825 | 2 |
b1+slitaz@1825 | 3 PACKAGE="git" |
shann@25702 | 4 VERSION="2.39.4" |
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@24602 | 14 SUGGESTED="git-lang" |
shann@25628 | 15 DEPENDS="cacerts curl expat openssl zlib libffi" |
Hans-G?nter@21146 | 16 BUILD_DEPENDS="curl-dev expat-dev openssl-dev perl python-dev zlib-dev" |
Hans-G?nter@21146 | 17 |
pankso@16314 | 18 # NO_NSEC=1 |
pankso@16314 | 19 CROSS_BUGS="bug: can't run test and make package." |
pankso@16314 | 20 #HOST_ARCH="i486 arm" |
slaxemulator@11009 | 21 |
pascal@24336 | 22 # What is the latest version available today? |
pascal@24336 | 23 current_version() |
pascal@24336 | 24 { |
pascal@24336 | 25 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 27 } |
pascal@24336 | 28 |
b1+slitaz@1825 | 29 # Rules to configure and make the package. |
b1+slitaz@1825 | 30 compile_rules() |
b1+slitaz@1825 | 31 { |
Hans-G?nter@21146 | 32 ./configure \ |
Hans-G?nter@21146 | 33 --prefix=/usr \ |
Hans-G?nter@21146 | 34 --libexecdir=/usr/lib \ |
Hans-G?nter@21146 | 35 --without-tcltk \ |
pankso@16314 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@24602 | 37 make THREADED_DELTA_SEARCH=1 && |
Hans-G?nter@24602 | 38 make install THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR |
b1+slitaz@1825 | 39 } |
b1+slitaz@1825 | 40 |
b1+slitaz@1825 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
b1+slitaz@1825 | 42 genpkg_rules() |
b1+slitaz@1825 | 43 { |
slaxemulator@11682 | 44 mkdir -p $fs/etc/init.d |
Hans-G?nter@21146 | 45 |
Hans-G?nter@21146 | 46 cp -a $stuff/git-daemon $fs/etc/init.d |
Hans-G?nter@24602 | 47 cp -a $install/usr $fs |
Hans-G?nter@24602 | 48 |
Hans-G?nter@24602 | 49 # moved to package git-lang |
Hans-G?nter@24602 | 50 rm -rf $fs/usr/share/locale |
Hans-G?nter@21146 | 51 |
slaxemulator@11682 | 52 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true |
b1+slitaz@1825 | 53 } |
slaxemulator@11682 | 54 |
slaxemulator@11682 | 55 # edit daemons.conf. |
slaxemulator@11682 | 56 post_install() |
slaxemulator@11682 | 57 { |
Hans-G?nter@24602 | 58 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf" |
Hans-G?nter@24602 | 59 then |
pascal@18730 | 60 mkdir -p "$1/var/www/git" |
Hans-G?nter@24602 | 61 echo '# Git daemon options. |
Hans-G?nter@24602 | 62 GIT_REPO="/var/www/git/" |
Hans-G?nter@24602 | 63 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO" |
Hans-G?nter@24602 | 64 ' >> "$1/etc/daemons.conf" |
slaxemulator@11682 | 65 fi |
al@14645 | 66 } |