wok-current annotate tar/receipt @ rev 25695
Up linux 5.10.214, Patch xorg-server (CVE-2024-31080, CVE-2024-31081, CVE-2024-31082, CVE-2024-31083)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Apr 04 08:53:51 2024 +0000 (7 months ago) |
parents | 71360a13cd94 |
children |
rev | line source |
---|---|
pankso@455 | 1 # SliTaz package receipt. |
pankso@455 | 2 |
pankso@455 | 3 PACKAGE="tar" |
Hans-G?nter@25345 | 4 VERSION="1.34" |
pankso@455 | 5 CATEGORY="utilities" |
Hans-G?nter@22004 | 6 TAGS="archive compression" |
pankso@455 | 7 SHORT_DESC="GNU tar archiving tools." |
pankso@455 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15590 | 9 LICENSE="GPL3" |
Hans-G?nter@22004 | 10 WEB_SITE="https://www.gnu.org/software/tar/" |
Hans-G?nter@22004 | 11 |
pankso@455 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22004 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@455 | 14 |
Hans-G?nter@25345 | 15 SUGGESTED="tar-lang" |
pascal@20091 | 16 DEPENDS="xz" |
pascal@20091 | 17 |
Hans-G?nter@22004 | 18 HOST_ARCH="i486 arm" |
Hans-G?nter@22004 | 19 |
pascal@24336 | 20 # What is the latest version available today? |
pascal@24336 | 21 current_version() |
pascal@24336 | 22 { |
pascal@24336 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 24 sed "/latest/d;/tar..z/!d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 25 } |
pascal@24336 | 26 |
pankso@455 | 27 # Rules to configure and make the package. |
pankso@455 | 28 compile_rules() |
pankso@455 | 29 { |
Hans-G?nter@25345 | 30 # this is needed since configure can't be run as root without it |
slaxemulator@7183 | 31 export FORCE_UNSAFE_CONFIGURE=1 |
Hans-G?nter@22004 | 32 |
Hans-G?nter@22004 | 33 ./configure \ |
Hans-G?nter@22004 | 34 --prefix=/usr \ |
Hans-G?nter@22004 | 35 --libexecdir=/usr/lib/$PACKAGE \ |
Hans-G?nter@22004 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@22004 | 37 make && |
Hans-G?nter@25345 | 38 make install DESTDIR=$DESTDIR |
pankso@455 | 39 } |
pankso@455 | 40 |
pankso@455 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@455 | 42 genpkg_rules() |
pankso@455 | 43 { |
Hans-G?nter@25345 | 44 cook_copy_folders bin |
pankso@455 | 45 } |
pankso@455 | 46 |
pankso@455 | 47 # Prevent erasing busybox... |
pankso@455 | 48 pre_install() |
pankso@455 | 49 { |
pascal@18730 | 50 rm -f "$1/bin/tar" |
pankso@455 | 51 } |
pankso@455 | 52 |
pankso@455 | 53 post_remove() |
pankso@455 | 54 { |
pascal@5014 | 55 ln -s /bin/busybox /bin/tar |
pankso@455 | 56 } |