# HG changeset patch # User Pascal Bellard # Date 1659685198 0 # Node ID 1a6eb3793a9edd556f54ed181718585fb8edbea8 # Parent 6f116ab3c078114f780261dd379b6d9fbbc62921 Openvpn/make-ovpn/client: multi server support diff -r 6f116ab3c078 -r 1a6eb3793a9e foo2xqx-data/receipt --- a/foo2xqx-data/receipt Thu Aug 04 09:20:59 2022 +0100 +++ b/foo2xqx-data/receipt Fri Aug 05 07:39:58 2022 +0000 @@ -6,7 +6,7 @@ SHORT_DESC="a linux printer driver for XQX stream protocol, firmware files." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="other" -WEB_SITE="http://foo2xqx.rkkda.com/" +WEB_SITE="https://github.com/koenkooi/foo2zjs/" WANTED="foo2xqx" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 6f116ab3c078 -r 1a6eb3793a9e foo2xqx/receipt --- a/foo2xqx/receipt Thu Aug 04 09:20:59 2022 +0100 +++ b/foo2xqx/receipt Fri Aug 05 07:39:58 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="ghostscript foo2xqx-data" BUILD_DEPENDS="foomatic-db-engine bc" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE/commits/master 2>/dev/null | \ + sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d +} + # Rules to configure and make the package. # compile_rules() diff -r 6f116ab3c078 -r 1a6eb3793a9e libstroke/receipt --- a/libstroke/receipt Thu Aug 04 09:20:59 2022 +0100 +++ b/libstroke/receipt Fri Aug 05 07:39:58 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="" BUILD_DEPENDS="xorg-libX11-dev" +# What is the latest version available today? +current_version() +{ + wget -O - https://sources.archlinux.org/other/packages/libstroke/ 2>/dev/null | \ + sed '/tar/!d;s|.*libstroke-||;s|.tar.*||' | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 6f116ab3c078 -r 1a6eb3793a9e openvpn/stuff/usr/bin/make-ovpn --- a/openvpn/stuff/usr/bin/make-ovpn Thu Aug 04 09:20:59 2022 +0100 +++ b/openvpn/stuff/usr/bin/make-ovpn Fri Aug 05 07:39:58 2022 +0000 @@ -4,7 +4,7 @@ [ -z "$1" ] && cat < config-server-name.ovpn - $0 client name server-ip [port] > config-client-name.ovpn + $0 client name server-ip[,server2...] [port] > config-client-name.ovpn Examples: $0 server office 192.168.99 192.168.0.0/255.255.255.0 10.0.0.0/255.0.0.0 @@ -80,9 +80,14 @@ fi fi +[ "$1" = "client" ] && case "$3" in +*,*) echo "remote-random" + for i in ${3//,/ }; do echo "remote $i ${4:-1194}"; done ;; +*) echo "remote ${3:-my.office.com} ${4:-1194}" +esac [ "$1" = "client" ] && cat << EOT client -remote ${3:-my.office.com} ${4:-1194} +float $(common_conf) remote-cert-tls server diff -r 6f116ab3c078 -r 1a6eb3793a9e othello/receipt --- a/othello/receipt Thu Aug 04 09:20:59 2022 +0100 +++ b/othello/receipt Fri Aug 05 07:39:58 2022 +0000 @@ -8,7 +8,7 @@ WGET_URL="http://mirror.slitaz.org/sources/packages/o/$TARBALL" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" -WEB_SITE="http://www.posi.net/software/othello/" +WEB_SITE="https://web.archive.org/web/20101231221346/http://www.posi.net/software/othello/" # Rules to configure and make the package. compile_rules() diff -r 6f116ab3c078 -r 1a6eb3793a9e sudo/receipt --- a/sudo/receipt Thu Aug 04 09:20:59 2022 +0100 +++ b/sudo/receipt Fri Aug 05 07:39:58 2022 +0000 @@ -9,10 +9,11 @@ WEB_SITE="https://www.sudo.ws/" TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="${WEB_SITE}sudo/dist/$TARBALL" +WGET_URL="${WEB_SITE}dist/$TARBALL" CONFIG_FILES="/etc/sudoers" +# What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \