wok rev 24076
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 08 13:19:25 2021 +0000 (2021-07-08) |
parents | 80d30b02c821 |
children | 00d2e2c46fc5 |
files | dbus-glib/receipt dmraid/receipt ecryptfs-simple/receipt ecryptfs-utils/receipt gdbm/receipt hashalot/receipt keyutils/receipt libaio/receipt lvm2/receipt lzo/receipt mbedtls/receipt mdadm/receipt nspr/receipt nss/receipt python/receipt readline/receipt syslinux/receipt |
line diff
1.1 --- a/dbus-glib/receipt Thu Jul 08 10:55:01 2021 +0000 1.2 +++ b/dbus-glib/receipt Thu Jul 08 13:19:25 2021 +0000 1.3 @@ -23,6 +23,12 @@ 1.4 export ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} ;; 1.5 esac 1.6 1.7 +current_version() 1.8 +{ 1.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 1.10 + sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.11 +} 1.12 + 1.13 # Rules to configure and make the package. 1.14 compile_rules() 1.15 {
2.1 --- a/dmraid/receipt Thu Jul 08 10:55:01 2021 +0000 2.2 +++ b/dmraid/receipt Thu Jul 08 13:19:25 2021 +0000 2.3 @@ -13,6 +13,12 @@ 2.4 DEPENDS="libdevmapper linux-md" 2.5 BUILD_DEPENDS="libdevmapper libdevmapper-dev" 2.6 2.7 +current_version() 2.8 +{ 2.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 2.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 2.11 +} 2.12 + 2.13 # Rules to configure and make the package. 2.14 compile_rules() 2.15 {
3.1 --- a/ecryptfs-simple/receipt Thu Jul 08 10:55:01 2021 +0000 3.2 +++ b/ecryptfs-simple/receipt Thu Jul 08 13:19:25 2021 +0000 3.3 @@ -16,6 +16,12 @@ 3.4 BUILD_DEPENDS="cmake libgcrypt-dev pkg-config \ 3.5 ecryptfs-utils-dev util-linux-mount-dev keyutils-dev" 3.6 3.7 +current_version() 3.8 +{ 3.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 3.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 3.11 +} 3.12 + 3.13 # Rules to configure and make the package. 3.14 compile_rules() 3.15 {
4.1 --- a/ecryptfs-utils/receipt Thu Jul 08 10:55:01 2021 +0000 4.2 +++ b/ecryptfs-utils/receipt Thu Jul 08 13:19:25 2021 +0000 4.3 @@ -25,6 +25,12 @@ 4.4 make DESTDIR=$DESTDIR install 4.5 } 4.6 4.7 +current_version() 4.8 +{ 4.9 + wget -O - $WEB_SITE 2>/dev/null | \ 4.10 + sed '/Latest version is/!d;s|.*is ||' 4.11 +} 4.12 + 4.13 # Rules to gen a SliTaz package suitable for Tazpkg. 4.14 genpkg_rules() 4.15 {
5.1 --- a/gdbm/receipt Thu Jul 08 10:55:01 2021 +0000 5.2 +++ b/gdbm/receipt Thu Jul 08 13:19:25 2021 +0000 5.3 @@ -15,6 +15,12 @@ 5.4 BUILD_DEPENDS="" 5.5 HOST_ARCH="i486 arm" 5.6 5.7 +current_version() 5.8 +{ 5.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 5.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 5.11 +} 5.12 + 5.13 # Rules to configure and make the package. 5.14 compile_rules() 5.15 {
6.1 --- a/hashalot/receipt Thu Jul 08 10:55:01 2021 +0000 6.2 +++ b/hashalot/receipt Thu Jul 08 13:19:25 2021 +0000 6.3 @@ -10,6 +10,12 @@ 6.4 WEB_SITE="https://web.archive.org/web/20191219002710/http://www.paranoiacs.org/~sluskyb/hacks/hashalot/" 6.5 WGET_URL="$WEB_SITE/$TARBALL" 6.6 6.7 +current_version() 6.8 +{ 6.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 6.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 6.11 +} 6.12 + 6.13 # Rules to configure and make the package. 6.14 compile_rules() 6.15 {
7.1 --- a/keyutils/receipt Thu Jul 08 10:55:01 2021 +0000 7.2 +++ b/keyutils/receipt Thu Jul 08 13:19:25 2021 +0000 7.3 @@ -16,6 +16,12 @@ 7.4 7.5 CONFIG_FILES="/etc/request-key.conf /etc/request-key.d" 7.6 7.7 +current_version() 7.8 +{ 7.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 7.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 7.11 +} 7.12 + 7.13 # Rules to configure and make the package. 7.14 compile_rules() 7.15 {
8.1 --- a/libaio/receipt Thu Jul 08 10:55:01 2021 +0000 8.2 +++ b/libaio/receipt Thu Jul 08 13:19:25 2021 +0000 8.3 @@ -14,6 +14,12 @@ 8.4 DEPENDS="" 8.5 BUILD_DEPENDS="" 8.6 8.7 +current_version() 8.8 +{ 8.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 8.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 8.11 +} 8.12 + 8.13 # Rules to configure and make the package. 8.14 compile_rules() 8.15 {
9.1 --- a/lvm2/receipt Thu Jul 08 10:55:01 2021 +0000 9.2 +++ b/lvm2/receipt Thu Jul 08 13:19:25 2021 +0000 9.3 @@ -10,12 +10,18 @@ 9.4 9.5 SOURCE="LVM2" 9.6 TARBALL="$SOURCE.$VERSION.tgz" 9.7 -WGET_URL="ftp://sourceware.org/pub/lvm2/old/$TARBALL" 9.8 +WGET_URL="http://sourceware.org/pub/lvm2/old/$TARBALL" 9.9 9.10 DEPENDS="libaio libdevmapper linux-md ncurses readline" 9.11 BUILD_DEPENDS="coreutils-file-format libaio-dev ncurses-dev readline-dev 9.12 udev-dev" 9.13 9.14 +current_version() 9.15 +{ 9.16 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 9.17 + sed "/$SOURCE.[0-9]/!d;s|.*$SOURCE.\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q 9.18 +} 9.19 + 9.20 # Rules to configure and make the package. 9.21 compile_rules() 9.22 {
10.1 --- a/lzo/receipt Thu Jul 08 10:55:01 2021 +0000 10.2 +++ b/lzo/receipt Thu Jul 08 13:19:25 2021 +0000 10.3 @@ -11,6 +11,12 @@ 10.4 WGET_URL="$WEB_SITE$TARBALL" 10.5 HOST_ARCH="i486 arm" 10.6 10.7 +current_version() 10.8 +{ 10.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 10.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 10.11 +} 10.12 + 10.13 # Rules to configure and make the package. 10.14 compile_rules() 10.15 {
11.1 --- a/mbedtls/receipt Thu Jul 08 10:55:01 2021 +0000 11.2 +++ b/mbedtls/receipt Thu Jul 08 13:19:25 2021 +0000 11.3 @@ -11,6 +11,12 @@ 11.4 TARBALL="$PACKAGE-$VERSION-gpl.tgz" 11.5 WGET_URL="https://tls.mbed.org/download/$TARBALL" 11.6 11.7 +current_version() 11.8 +{ 11.9 + wget -O - https://github.com/ARMmbed/mbedtls/releases 2>/dev/null | \ 11.10 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 11.11 +} 11.12 + 11.13 compile_rules() { 11.14 sed \ 11.15 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
12.1 --- a/mdadm/receipt Thu Jul 08 10:55:01 2021 +0000 12.2 +++ b/mdadm/receipt Thu Jul 08 13:19:25 2021 +0000 12.3 @@ -13,6 +13,12 @@ 12.4 12.5 BUILD_DEPENDS="" 12.6 12.7 +current_version() 12.8 +{ 12.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 12.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 12.11 +} 12.12 + 12.13 # Rules to configure and make the package. 12.14 compile_rules() 12.15 {
13.1 --- a/nspr/receipt Thu Jul 08 10:55:01 2021 +0000 13.2 +++ b/nspr/receipt Thu Jul 08 13:19:25 2021 +0000 13.3 @@ -14,6 +14,12 @@ 13.4 DEPENDS="glibc-base" 13.5 BUILD_DEPENDS="perl" 13.6 13.7 +current_version() 13.8 +{ 13.9 + wget -O - https://hg.mozilla.org/projects/nspr 2>/dev/null | \ 13.10 + sed '/_BRANCH/!d;s|.*NSPR_||;s|_BRANCH.*||;s|_|.|g;q' 13.11 +} 13.12 + 13.13 # Rules to configure and make the package. 13.14 compile_rules() 13.15 {
14.1 --- a/nss/receipt Thu Jul 08 10:55:01 2021 +0000 14.2 +++ b/nss/receipt Thu Jul 08 13:19:25 2021 +0000 14.3 @@ -13,6 +13,12 @@ 14.4 DEPENDS="nspr sqlite zlib" 14.5 BUILD_DEPENDS="nspr-dev sqlite-dev zlib-dev perl pkg-config" 14.6 14.7 +current_version() 14.8 +{ 14.9 + wget -O - https://hg.mozilla.org/projects/nss 2>/dev/null | \ 14.10 + sed '/_BRANCH/!d;s|.*NSS_||;s|_BRANCH.*||;s|_|.|g;q' 14.11 +} 14.12 + 14.13 # Rules to configure and make the package. 14.14 compile_rules() 14.15 {
15.1 --- a/python/receipt Thu Jul 08 10:55:01 2021 +0000 15.2 +++ b/python/receipt Thu Jul 08 13:19:25 2021 +0000 15.3 @@ -19,6 +19,12 @@ 15.4 15.5 HOST_ARCH="i486 arm" 15.6 15.7 +current_version() 15.8 +{ 15.9 + wget -O - https://www.python.org/ftp/python/ 2>/dev/null | \ 15.10 + sed "/=\"${VERSION%.*}/!d;s|.*\">\\(.*\\)/<.*|\\1|" | sort -Vr | sed q 15.11 +} 15.12 + 15.13 # @maintainer: Please update also: python-idle 15.14 15.15 # Rules to configure and make the package.
16.1 --- a/readline/receipt Thu Jul 08 10:55:01 2021 +0000 16.2 +++ b/readline/receipt Thu Jul 08 13:19:25 2021 +0000 16.3 @@ -16,6 +16,12 @@ 16.4 16.5 HOST_ARCH="i486 arm" 16.6 16.7 +current_version() 16.8 +{ 16.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 16.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 16.11 +} 16.12 + 16.13 # Rules to configure and make the package. 16.14 compile_rules() 16.15 {
17.1 --- a/syslinux/receipt Thu Jul 08 10:55:01 2021 +0000 17.2 +++ b/syslinux/receipt Thu Jul 08 13:19:25 2021 +0000 17.3 @@ -16,6 +16,12 @@ 17.4 BUILD_DEPENDS="wget kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \ 17.5 util-linux-uuid-dev advancecomp libidn linld" 17.6 17.7 +current_version() 17.8 +{ 17.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 17.10 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 17.11 +} 17.12 + 17.13 # Rules to gen a SliTaz package suitable for Tazpkg. 17.14 compile_rules() 17.15 {