wok-current rev 24500

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 19:01:32 2022 +0000 (2022-02-19)
parents f1a6bc62bdf4
children c444e37b547d
files ncurses-examples/receipt nrg2iso/receipt numlockx/receipt nvidia-173xx/receipt ode/receipt offlineimap/receipt openjdk-7-src/receipt openldap/receipt openvas-scanner/receipt otf-transcends-games/receipt pwsafe/receipt python-dateutil/receipt python-flask/receipt python-ldap/receipt python-mako/receipt python-pygame/receipt python-sphinx/receipt qcad/receipt qedit/receipt suricata/receipt
line diff
     1.1 --- a/ncurses-examples/receipt	Sat Feb 19 17:03:18 2022 +0100
     1.2 +++ b/ncurses-examples/receipt	Sat Feb 19 19:01:32 2022 +0000
     1.3 @@ -13,6 +13,13 @@
     1.4  DEPENDS="ncurses perl"
     1.5  BUILD_DEPENDS="ncurses-dev"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    1.11 +	sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {
     2.1 --- a/nrg2iso/receipt	Sat Feb 19 17:03:18 2022 +0100
     2.2 +++ b/nrg2iso/receipt	Sat Feb 19 19:01:32 2022 +0000
     2.3 @@ -11,6 +11,13 @@
     2.4  WGET_URL="http://gregory.kokanosky.free.fr/v4/linux/$TARBALL"
     2.5  TAGS="CD DVD ISO9660"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - $WEB_SITE 2>/dev/null | \
    2.11 +	sed "/latest/!d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  compile_rules()
    2.16  {
     3.1 --- a/numlockx/receipt	Sat Feb 19 17:03:18 2022 +0100
     3.2 +++ b/numlockx/receipt	Sat Feb 19 19:01:32 2022 +0000
     3.3 @@ -13,6 +13,13 @@
     3.4  DEPENDS="xorg-libXtst"
     3.5  BUILD_DEPENDS=""
     3.6  
     3.7 +# What is the latest version available today?
     3.8 +current_version()
     3.9 +{
    3.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    3.11 +	sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    3.12 +}
    3.13 +
    3.14  # Rules to configure and make the package.
    3.15  compile_rules()
    3.16  {
     4.1 --- a/nvidia-173xx/receipt	Sat Feb 19 17:03:18 2022 +0100
     4.2 +++ b/nvidia-173xx/receipt	Sat Feb 19 19:01:32 2022 +0000
     4.3 @@ -17,6 +17,13 @@
     4.4  DEPENDS="linux xorg-server gtk+ cairo linux-agp xorg-libXv"
     4.5  BUILD_DEPENDS="linux-module-headers coreutils-file-summarize xz"
     4.6  
     4.7 +# What is the latest version available today?
     4.8 +current_version()
     4.9 +{
    4.10 +	wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
    4.11 +	sed '/173.[0-9]/!d;s|.*>173|173|;s|/.*||' | sort -Vr | sed q
    4.12 +}
    4.13 +
    4.14  # Rules to configure and make the package.
    4.15  
    4.16  compile_rules()
     5.1 --- a/ode/receipt	Sat Feb 19 17:03:18 2022 +0100
     5.2 +++ b/ode/receipt	Sat Feb 19 19:01:32 2022 +0000
     5.3 @@ -14,6 +14,13 @@
     5.4  DEPENDS="gcc83-lib-base"
     5.5  BUILD_DEPENDS="gcc83 libtool"
     5.6  
     5.7 +# What is the latest version available today?
     5.8 +current_version()
     5.9 +{
    5.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    5.11 +	sed '/ode-[0-9]/!d;s|.*/ode-||;s|.tar.*||;q'
    5.12 +}
    5.13 +
    5.14  # Rules to configure and make the package.
    5.15  compile_rules()
    5.16  {
     6.1 --- a/offlineimap/receipt	Sat Feb 19 17:03:18 2022 +0100
     6.2 +++ b/offlineimap/receipt	Sat Feb 19 19:01:32 2022 +0000
     6.3 @@ -14,6 +14,13 @@
     6.4  DEPENDS="python"
     6.5  BUILD_DEPENDS="python-dev"
     6.6  
     6.7 +# What is the latest version available today?
     6.8 +current_version()
     6.9 +{
    6.10 +	wget -O - https://github.com/OfflineIMAP/offlineimap/tags 2>/dev/null | \
    6.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    6.12 +}
    6.13 +
    6.14  # Rules to configure and make the package.
    6.15  compile_rules()
    6.16  {
     7.1 --- a/openjdk-7-src/receipt	Sat Feb 19 17:03:18 2022 +0100
     7.2 +++ b/openjdk-7-src/receipt	Sat Feb 19 19:01:32 2022 +0000
     7.3 @@ -12,6 +12,13 @@
     7.4  WGET_URL="http://download.java.net/openjdk/jdk7/promoted/${VERSION%-*}/$TARBALL"
     7.5  COOK_OPT="!unpack !repack_src !fs"
     7.6  
     7.7 +# What is the latest version available today?
     7.8 +current_version()
     7.9 +{
    7.10 +	wget -O - http://hg.openjdk.java.net/jdk7/jdk7/tags 2>/dev/null | \
    7.11 +	sed '/jdk7-/!d;s|jdk7-||;q'
    7.12 +}
    7.13 +
    7.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    7.15  compile_rules()
    7.16  {
     8.1 --- a/openldap/receipt	Sat Feb 19 17:03:18 2022 +0100
     8.2 +++ b/openldap/receipt	Sat Feb 19 19:01:32 2022 +0000
     8.3 @@ -16,6 +16,13 @@
     8.4  DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap"
     8.5  BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
     8.6  
     8.7 +# What is the latest version available today?
     8.8 +current_version()
     8.9 +{
    8.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    8.11 +	sed "/latest/d;/stable/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
    8.12 +}
    8.13 +
    8.14  # Rules to configure and make the package.
    8.15  compile_rules()
    8.16  {
     9.1 --- a/openvas-scanner/receipt	Sat Feb 19 17:03:18 2022 +0100
     9.2 +++ b/openvas-scanner/receipt	Sat Feb 19 19:01:32 2022 +0000
     9.3 @@ -15,6 +15,13 @@
     9.4  BUILD_DEPENDS="libpcap libpcap-dev util-linux-uuid openvas-libraries \
     9.5  openvas-libraries-dev pkg-config gnutls-dev glib-dev libgnutls"
     9.6  
     9.7 +# What is the latest version available today?
     9.8 +current_version()
     9.9 +{
    9.10 +	wget -O - https://github.com/greenbone/openvas-scanner/releases 2>/dev/null | \
    9.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    9.12 +}
    9.13 +
    9.14  # Rules to configure and make the package.
    9.15  compile_rules()
    9.16  {
    10.1 --- a/otf-transcends-games/receipt	Sat Feb 19 17:03:18 2022 +0100
    10.2 +++ b/otf-transcends-games/receipt	Sat Feb 19 19:01:32 2022 +0000
    10.3 @@ -16,6 +16,13 @@
    10.4  DEPENDS=""
    10.5  BUILD_DEPENDS="wget"
    10.6  
    10.7 +# What is the latest version available today?
    10.8 +current_version()
    10.9 +{
   10.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   10.11 +	sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
   10.12 +}
   10.13 +
   10.14  # Rules to configure and make the package.
   10.15  compile_rules()
   10.16  {
    11.1 --- a/pwsafe/receipt	Sat Feb 19 17:03:18 2022 +0100
    11.2 +++ b/pwsafe/receipt	Sat Feb 19 19:01:32 2022 +0000
    11.3 @@ -14,6 +14,13 @@
    11.4  libcrypto gcc-lib-base xorg-libXt xorg-libXext xorg-libXau xorg-libXdmcp"
    11.5  BUILD_DEPENDS="openssl-dev readline-dev ncurses-dev"
    11.6  
    11.7 +# What is the latest version available today?
    11.8 +current_version()
    11.9 +{
   11.10 +	wget -O - https://github.com/pwsafe/pwsafe/releases 2>/dev/null | \
   11.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   11.12 +}
   11.13 +
   11.14  # Rules to configure and make the package.
   11.15  compile_rules()
   11.16  {
    12.1 --- a/python-dateutil/receipt	Sat Feb 19 17:03:18 2022 +0100
    12.2 +++ b/python-dateutil/receipt	Sat Feb 19 19:01:32 2022 +0000
    12.3 @@ -13,6 +13,13 @@
    12.4  DEPENDS="python"
    12.5  BUILD_DEPENDS="python python-dev python-setuptools"
    12.6  
    12.7 +# What is the latest version available today?
    12.8 +current_version()
    12.9 +{
   12.10 +	wget -O - $WEB_SITE 2>/dev/null | \
   12.11 +	sed "/Python .gt;= 3.0/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
   12.12 +}
   12.13 +
   12.14  # Rules to configure and make the package.
   12.15  compile_rules()
   12.16  {
    13.1 --- a/python-flask/receipt	Sat Feb 19 17:03:18 2022 +0100
    13.2 +++ b/python-flask/receipt	Sat Feb 19 19:01:32 2022 +0000
    13.3 @@ -15,6 +15,13 @@
    13.4  DEPENDS="python-click python-itsdangerous"
    13.5  BUILD_DEPENDS="python python-setuptools"
    13.6  
    13.7 +# What is the latest version available today?
    13.8 +current_version()
    13.9 +{
   13.10 +	wget -O - https://pypi.org/project/Flask/ 2>/dev/null | \
   13.11 +	sed '/Flask [0-9]/!d;s|.*Flask ||'
   13.12 +}
   13.13 +
   13.14  # Rules to configure and make the package.
   13.15  compile_rules()
   13.16  {
    14.1 --- a/python-ldap/receipt	Sat Feb 19 17:03:18 2022 +0100
    14.2 +++ b/python-ldap/receipt	Sat Feb 19 19:01:32 2022 +0000
    14.3 @@ -14,6 +14,13 @@
    14.4  DEPENDS="cyrus-sasl openldap openssl python"
    14.5  BUILD_DEPENDS="cyrus-sasl-dev openldap-dev openssl-dev python-dev python-setuptools"
    14.6  
    14.7 +# What is the latest version available today?
    14.8 +current_version()
    14.9 +{
   14.10 +	wget -O - https://github.com/python-ldap/python-ldap/releases 2>/dev/null | \
   14.11 +	sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
   14.12 +}
   14.13 +
   14.14  # Rules to configure and make the package.
   14.15  compile_rules()
   14.16  {
    15.1 --- a/python-mako/receipt	Sat Feb 19 17:03:18 2022 +0100
    15.2 +++ b/python-mako/receipt	Sat Feb 19 19:01:32 2022 +0000
    15.3 @@ -16,6 +16,13 @@
    15.4  DEPENDS="python"
    15.5  BUILD_DEPENDS="python python-dev python-setuptools"
    15.6  
    15.7 +# What is the latest version available today?
    15.8 +current_version()
    15.9 +{
   15.10 +	wget -O - https://pypi.org/project/Mako/ 2>/dev/null | \
   15.11 +	sed '/Mako [0-9]/!d;s|.*Mako ||;q'
   15.12 +}
   15.13 +
   15.14  # Rules to configure and make the package.
   15.15  compile_rules()
   15.16  {
    16.1 --- a/python-pygame/receipt	Sat Feb 19 17:03:18 2022 +0100
    16.2 +++ b/python-pygame/receipt	Sat Feb 19 19:01:32 2022 +0000
    16.3 @@ -16,6 +16,13 @@
    16.4  BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev libsdl-image-dev \
    16.5  libsdl-mixer-dev libsdl-ttf-dev libv4l-dev"
    16.6  
    16.7 +# What is the latest version available today?
    16.8 +current_version()
    16.9 +{
   16.10 +	wget -O - https://github.com/pygame/pygame/releases 2>/dev/null | \
   16.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   16.12 +}
   16.13 +
   16.14  # Rules to configure and make the package.
   16.15  compile_rules()
   16.16  {
    17.1 --- a/python-sphinx/receipt	Sat Feb 19 17:03:18 2022 +0100
    17.2 +++ b/python-sphinx/receipt	Sat Feb 19 19:01:32 2022 +0000
    17.3 @@ -15,6 +15,13 @@
    17.4  DEPENDS="python python-docutils python-jinja2 python-pygments python-setuptools"
    17.5  BUILD_DEPENDS="$DEPENDS python-dev"
    17.6  
    17.7 +# What is the latest version available today?
    17.8 +current_version()
    17.9 +{
   17.10 +	wget -O - https://github.com/sphinx-doc/sphinx/releases 2>/dev/null | \
   17.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   17.12 +}
   17.13 +
   17.14  # Rules to configure and make the package.
   17.15  compile_rules()
   17.16  {
    18.1 --- a/qcad/receipt	Sat Feb 19 17:03:18 2022 +0100
    18.2 +++ b/qcad/receipt	Sat Feb 19 19:01:32 2022 +0000
    18.3 @@ -11,6 +11,13 @@
    18.4  WGET_URL="http://www.qcad.org/archives/qcad/${TARBALL}"
    18.5  HOST_ARCH="i486"
    18.6  
    18.7 +# What is the latest version available today?
    18.8 +current_version()
    18.9 +{
   18.10 +	wget -O - https://github.com/qcad/qcad/tags 2>/dev/null | \
   18.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   18.12 +}
   18.13 +
   18.14  # Rules to configure and make the package.
   18.15  compile_rules()
   18.16  {
    19.1 --- a/qedit/receipt	Sat Feb 19 17:03:18 2022 +0100
    19.2 +++ b/qedit/receipt	Sat Feb 19 19:01:32 2022 +0000
    19.3 @@ -15,6 +15,13 @@
    19.4  DEPENDS="gcc83-lib-base libQtDBus libQtGui libQtNetwork xcb-util-keysyms"
    19.5  BUILD_DEPENDS="cmake gcc83 qmake Qt4-dev xcb-util-keysyms-dev"
    19.6  
    19.7 +# What is the latest version available today?
    19.8 +current_version()
    19.9 +{
   19.10 +	wget -O - 'http://hugo.pereira.free.fr/software/index.php?page=package&package_list=software_list_qt&package=qedit&full=' 2>/dev/null | \
   19.11 +	sed '/qedit-/!d;/tar/!d;s|.*qedit-||;s|.tar.*||;q'
   19.12 +}
   19.13 +
   19.14  # Rules to configure and make the package.
   19.15  compile_rules()
   19.16  {
    20.1 --- a/suricata/receipt	Sat Feb 19 17:03:18 2022 +0100
    20.2 +++ b/suricata/receipt	Sat Feb 19 19:01:32 2022 +0000
    20.3 @@ -12,10 +12,10 @@
    20.4  WGET_URL="https://www.openinfosecfoundation.org/download/$TARBALL"
    20.5  
    20.6  DEPENDS="jansson libcap-ng libhtp libnetfilter_queue libnfnetlink 
    20.7 -	libpcap pcre yaml"
    20.8 +	libpcap pcre yaml lz4-lib"
    20.9  BUILD_DEPENDS="jansson-dev libcap-ng-dev libhtp-dev libmnl libnet-dev 
   20.10  	libnfnetlink-dev libnetfilter_queue libnetfilter_queue-dev 
   20.11 -	libpcap-dev rust-cargo yaml-dev zlib-dev"
   20.12 +	libpcap-dev rust-cargo yaml-dev zlib-dev lz4-dev"
   20.13  
   20.14  # What is the latest version available today?
   20.15  current_version()