wok-current rev 25417

Openvpn/make-ovpn/client: multi server support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 05 07:39:58 2022 +0000 (2022-08-05)
parents 6f116ab3c078
children 0be8f2748172
files foo2xqx-data/receipt foo2xqx/receipt libstroke/receipt openvpn/stuff/usr/bin/make-ovpn othello/receipt sudo/receipt
line diff
     1.1 --- a/foo2xqx-data/receipt	Thu Aug 04 09:20:59 2022 +0100
     1.2 +++ b/foo2xqx-data/receipt	Fri Aug 05 07:39:58 2022 +0000
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="a linux printer driver for XQX stream protocol, firmware files."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  LICENSE="other"
     1.7 -WEB_SITE="http://foo2xqx.rkkda.com/"
     1.8 +WEB_SITE="https://github.com/koenkooi/foo2zjs/"
     1.9  WANTED="foo2xqx"
    1.10  
    1.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/foo2xqx/receipt	Thu Aug 04 09:20:59 2022 +0100
     2.2 +++ b/foo2xqx/receipt	Fri Aug 05 07:39:58 2022 +0000
     2.3 @@ -13,6 +13,13 @@
     2.4  DEPENDS="ghostscript foo2xqx-data"
     2.5  BUILD_DEPENDS="foomatic-db-engine bc"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - $WEB_SITE/commits/master 2>/dev/null | \
    2.11 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  #
    2.16  compile_rules()
     3.1 --- a/libstroke/receipt	Thu Aug 04 09:20:59 2022 +0100
     3.2 +++ b/libstroke/receipt	Fri Aug 05 07:39:58 2022 +0000
     3.3 @@ -13,6 +13,13 @@
     3.4  DEPENDS=""
     3.5  BUILD_DEPENDS="xorg-libX11-dev"
     3.6  
     3.7 +# What is the latest version available today?
     3.8 +current_version()
     3.9 +{
    3.10 +	wget -O - https://sources.archlinux.org/other/packages/libstroke/ 2>/dev/null | \
    3.11 +	sed '/tar/!d;s|.*libstroke-||;s|.tar.*||' | 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/openvpn/stuff/usr/bin/make-ovpn	Thu Aug 04 09:20:59 2022 +0100
     4.2 +++ b/openvpn/stuff/usr/bin/make-ovpn	Fri Aug 05 07:39:58 2022 +0000
     4.3 @@ -4,7 +4,7 @@
     4.4  [ -z "$1" ] && cat <<EOT && exit 0
     4.5  Usage:
     4.6  	$0 server name vpn-prefix [routes]... > config-server-name.ovpn
     4.7 -	$0 client name server-ip [port] > config-client-name.ovpn
     4.8 +	$0 client name server-ip[,server2...] [port] > config-client-name.ovpn
     4.9  
    4.10  Examples:
    4.11  	$0 server office 192.168.99 192.168.0.0/255.255.255.0 10.0.0.0/255.0.0.0
    4.12 @@ -80,9 +80,14 @@
    4.13  	fi
    4.14  fi
    4.15  
    4.16 +[ "$1" = "client" ] && case "$3" in
    4.17 +*,*)	echo "remote-random"
    4.18 +	for i in ${3//,/ }; do echo "remote $i ${4:-1194}"; done ;;
    4.19 +*)	echo "remote ${3:-my.office.com} ${4:-1194}"
    4.20 +esac
    4.21  [ "$1" = "client" ] && cat << EOT
    4.22  client
    4.23 -remote ${3:-my.office.com} ${4:-1194}
    4.24 +float
    4.25  
    4.26  $(common_conf)
    4.27  remote-cert-tls server
     5.1 --- a/othello/receipt	Thu Aug 04 09:20:59 2022 +0100
     5.2 +++ b/othello/receipt	Fri Aug 05 07:39:58 2022 +0000
     5.3 @@ -8,7 +8,7 @@
     5.4  WGET_URL="http://mirror.slitaz.org/sources/packages/o/$TARBALL"
     5.5  MAINTAINER="pascal.bellard@slitaz.org"
     5.6  LICENSE="MIT"
     5.7 -WEB_SITE="http://www.posi.net/software/othello/"
     5.8 +WEB_SITE="https://web.archive.org/web/20101231221346/http://www.posi.net/software/othello/"
     5.9  
    5.10  # Rules to configure and make the package.
    5.11  compile_rules()
     6.1 --- a/sudo/receipt	Thu Aug 04 09:20:59 2022 +0100
     6.2 +++ b/sudo/receipt	Fri Aug 05 07:39:58 2022 +0000
     6.3 @@ -9,10 +9,11 @@
     6.4  WEB_SITE="https://www.sudo.ws/"
     6.5  
     6.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     6.7 -WGET_URL="${WEB_SITE}sudo/dist/$TARBALL"
     6.8 +WGET_URL="${WEB_SITE}dist/$TARBALL"
     6.9  
    6.10  CONFIG_FILES="/etc/sudoers"
    6.11  
    6.12 +# What is the latest version available today?
    6.13  current_version()
    6.14  {
    6.15  	wget -O - $WEB_SITE 2>/dev/null | \