# HG changeset patch # User Pascal Bellard # Date 1642098545 0 # Node ID 1df6fa5554140979cef52f758f8d1db2c66bf127 # Parent fd1929b14bba147356dbf4c6bcdecc5fe0a3ad66 fail2ban: add log4j-jndi.conf diff -r fd1929b14bba -r 1df6fa555414 fail2ban/stuff/etc/fail2ban/filter.d/log4j-jndi.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fail2ban/stuff/etc/fail2ban/filter.d/log4j-jndi.conf Thu Jan 13 18:29:05 2022 +0000 @@ -0,0 +1,21 @@ +# log4j jndi exploit CVE-2021-44228 filter +# +# jay@gooby.org +# https://jay.gooby.org/2021/12/13/a-fail2ban-filter-for-the-log4j-cve-2021-44228 +# https://gist.github.com/jaygooby/3502143639e09bb694e9c0f3c6203949 +# Thanks to https://gist.github.com/kocour for a better regex +# +# Bad actors trying to exploit log4j - instaban them with +# this in your /etc/fail2ban/jail.local +# +# We're using maxretry = 1 +# because we know that they're a bad actor... +# +# [log4j-jndi] +# maxretry = 1 +# enabled = true +# port = 80,443 +# logpath = /path/to/your/*access.log + +[Definition] +failregex = (?i)^ .* ".*\$.*(7B|\{).*(lower:)?.*j.*n.*d.*i.*:.*".*?$ diff -r fd1929b14bba -r 1df6fa555414 lmms/receipt --- a/lmms/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/lmms/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -17,6 +17,12 @@ libsndfile-dev libsamplerate-dev Qt4-dev phonon-dev qmake cmake pkg-config \ freetype-dev" +current_version() +{ + wget -O - https://github.com/LMMS/lmms/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-asterisk/receipt --- a/python-asterisk/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-asterisk/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,12 @@ DEPENDS="python" BUILD_DEPENDS="python-dev python" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-backports_abc/receipt --- a/python-backports_abc/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-backports_abc/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-barcode/receipt --- a/python-barcode/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-barcode/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools wget" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-bcrypt/receipt --- a/python-bcrypt/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-bcrypt/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python-cffi" BUILD_DEPENDS="libffi-dev python-cffi python-cparser python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-bpython/receipt --- a/python-bpython/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-bpython/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python python-pygments python-setuptools" BUILD_DEPENDS="$DEPENDS python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-caldav/receipt --- a/python-caldav/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-caldav/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-click/receipt --- a/python-click/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-click/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-docutils/receipt --- a/python-docutils/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-docutils/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-flup/receipt --- a/python-flup/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-flup/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-distribute python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-formalchemy/receipt --- a/python-formalchemy/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-formalchemy/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ python-webhelpers python-webob" BUILD_DEPENDS="python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-futures/receipt --- a/python-futures/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-futures/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-gdata/receipt --- a/python-gdata/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-gdata/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-gevent/receipt --- a/python-gevent/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-gevent/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="file libevent-dev python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-ipy/receipt --- a/python-ipy/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-ipy/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-itsdangerous/receipt --- a/python-itsdangerous/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-itsdangerous/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-jedi/receipt --- a/python-jedi/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-jedi/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-jinja2/receipt --- a/python-jinja2/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-jinja2/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python python-markupsafe" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-llfuse/receipt --- a/python-llfuse/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-llfuse/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ BUILD_DEPENDS="attr-dev fuse-dev openssl python python-dev python-distribute python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-lxml/receipt --- a/python-lxml/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-lxml/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="libxml2 libxslt python zlib" BUILD_DEPENDS="libxml2 libxml2-dev libxslt libxslt-dev python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-mechanize/receipt --- a/python-mechanize/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-mechanize/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -17,6 +17,11 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-mygpoclient/receipt --- a/python-mygpoclient/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-mygpoclient/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python python-simplejson" BUILD_DEPENDS="python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-netaddr/receipt --- a/python-netaddr/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-netaddr/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -17,6 +17,11 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-netifaces/receipt --- a/python-netifaces/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-netifaces/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-nose/receipt --- a/python-nose/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-nose/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-opengl-accelerate/receipt --- a/python-opengl-accelerate/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-opengl-accelerate/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python python-opengl" BUILD_DEPENDS="python python-dev python-opengl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-opengl/receipt --- a/python-opengl/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-opengl/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="freeglut python python-numpy python-pil" BUILD_DEPENDS="freeglut-dev python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-openid/receipt --- a/python-openid/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-openid/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-paste/receipt --- a/python-paste/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-paste/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -18,6 +18,11 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pastedeploy/receipt --- a/python-pastedeploy/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pastedeploy/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python python-paste" BUILD_DEPENDS="$DEPENDS python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pastescript/receipt --- a/python-pastescript/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pastescript/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python python-paste python-pastedeploy" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pbr/receipt --- a/python-pbr/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pbr/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pdfkit/receipt --- a/python-pdfkit/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pdfkit/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -13,6 +13,11 @@ DEPENDS="python wkhtmltopdf" BUILD_DEPENDS="python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-phonenumbers/receipt --- a/python-phonenumbers/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-phonenumbers/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pil/receipt --- a/python-pil/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pil/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="freetype jpeg python tk zlib" BUILD_DEPENDS="jpeg-dev python python-dev zlib-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-ply/receipt --- a/python-ply/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-ply/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -18,6 +18,11 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-psutil/receipt --- a/python-psutil/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-psutil/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -17,6 +17,11 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-ptyprocess/receipt --- a/python-ptyprocess/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-ptyprocess/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pyalsaaudio/receipt --- a/python-pyalsaaudio/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pyalsaaudio/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="alsa-lib python" BUILD_DEPENDS="alsa-lib-dev python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pybluez/receipt --- a/python-pybluez/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pybluez/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="bluez python" BUILD_DEPENDS="$DEPENDS bluez-dev python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pychart/receipt --- a/python-pychart/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pychart/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pydot/receipt --- a/python-pydot/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pydot/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="graphviz python python-pyparsing" BUILD_DEPENDS="python" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pygments/receipt --- a/python-pygments/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pygments/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pylons/receipt --- a/python-pylons/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pylons/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pyparsing/receipt --- a/python-pyparsing/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pyparsing/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pysol-cards/receipt --- a/python-pysol-cards/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pysol-cards/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python" BUILD_DEPENDS="python python-pbr python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pysqlite/receipt --- a/python-pysqlite/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pysqlite/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python sqlite" BUILD_DEPENDS="python python-dev sqlite-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pytz/receipt --- a/python-pytz/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pytz/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-pywebdav/receipt --- a/python-pywebdav/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-pywebdav/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,12 @@ DEPENDS="python" BUILD_DEPENDS="python-dev python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-random2/receipt --- a/python-random2/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-random2/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python" BUILD_DEPENDS="python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-reportlab/receipt --- a/python-reportlab/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-reportlab/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="freetype python" BUILD_DEPENDS="python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-requests/receipt --- a/python-requests/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-requests/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-restclient/receipt --- a/python-restclient/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-restclient/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python python-httplib2" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-restkit/receipt --- a/python-restkit/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-restkit/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,12 @@ DEPENDS="python python-http-parser python-socketpool" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-routes/receipt --- a/python-routes/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-routes/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -18,6 +18,12 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-serial/receipt --- a/python-serial/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-serial/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -17,6 +17,12 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + +# Rules to configure and make the package. # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-setproctitle/receipt --- a/python-setproctitle/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-setproctitle/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-shapely/receipt --- a/python-shapely/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-shapely/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="geos python" BUILD_DEPENDS="geos-dev python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-singledispatch/receipt --- a/python-singledispatch/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-singledispatch/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-six/receipt --- a/python-six/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-six/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -17,6 +17,11 @@ HOST_ARCH="i486 arm" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-smspdu/receipt --- a/python-smspdu/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-smspdu/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,11 @@ DEPENDS="python" BUILD_DEPENDS="python" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-sqlalchemy/receipt --- a/python-sqlalchemy/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-sqlalchemy/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-terminado/receipt --- a/python-terminado/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-terminado/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python python-ptyprocess python-tornado" BUILD_DEPENDS="python" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-turbogears/receipt --- a/python-turbogears/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-turbogears/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,12 @@ python-decoratortools python-extremes python-simplejson python-peak-rules" BUILD_DEPENDS="$DEPENDS python-dev python-setuptools" +current_version() +{ + wget -O - https://github.com/TurboGears/tg2/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/tg\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-tweepy/receipt --- a/python-tweepy/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-tweepy/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-twodict/receipt --- a/python-twodict/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-twodict/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -16,6 +16,11 @@ DEPENDS="python" BUILD_DEPENDS="python" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-urwid/receipt --- a/python-urwid/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-urwid/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-usb/receipt --- a/python-usb/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-usb/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="libusb python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-vatnumber/receipt --- a/python-vatnumber/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-vatnumber/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-vobject/receipt --- a/python-vobject/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-vobject/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python python-dateutil" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-wcwidth/receipt --- a/python-wcwidth/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-wcwidth/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-websocket-client/receipt --- a/python-websocket-client/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-websocket-client/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python" BUILD_DEPENDS="python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 python-xlwt/receipt --- a/python-xlwt/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/python-xlwt/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -15,6 +15,11 @@ DEPENDS="python python-antlr" BUILD_DEPENDS="python python-dev python-setuptools" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 qutim/receipt --- a/qutim/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/qutim/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -13,6 +13,12 @@ DEPENDS="qt4 qca qt4-phonon xorg-libXss libjreen Qt4-qca-ossl" BUILD_DEPENDS="Qt4-dev qmake cmake qca-dev xorg-libXss-dev dbus-dev libjreen-dev mesa-dev" +current_version() +{ + wget -O - $WEB_SITE/download 2>/dev/null | \ + sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 scummvm/receipt --- a/scummvm/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/scummvm/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -17,6 +17,12 @@ CROSS="bug: Doesn't support --build." +current_version() +{ + wget -O - ${WEB_SITE}downloads/ 2>/dev/null | \ + sed '/version/!d;s|.*version ||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 slurm/receipt --- a/slurm/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/slurm/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -13,6 +13,12 @@ DEPENDS="ncurses" BUILD_DEPENDS="ncurses-dev cmake" +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 smartmontools/receipt --- a/smartmontools/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/smartmontools/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,12 @@ DEPENDS="gcc83-lib-base" BUILD_DEPENDS="gcc83" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/version/!d;s|.*version ||;s| .*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 smtube/receipt --- a/smtube/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/smtube/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -14,6 +14,12 @@ DEPENDS="cacerts libQtGui libQtScript libQtWebkit libQtXml smplayer" BUILD_DEPENDS="qmake Qt4-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed "/tar/!d;/$PACKAGE/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" +} + # Rules to configure and make the package. compile_rules() { diff -r fd1929b14bba -r 1df6fa555414 sqlite3-ruby/receipt --- a/sqlite3-ruby/receipt Thu Jan 13 14:17:04 2022 +0100 +++ b/sqlite3-ruby/receipt Thu Jan 13 18:29:05 2022 +0000 @@ -13,6 +13,12 @@ DEPENDS="ruby sqlite" BUILD_DEPENDS="ruby ruby-dev sqlite-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/\/versions\//!d;s|.*versions.||;s|".*||;q' +} + # Rules to configure and make the package. compile_rules() {