New Libreswan version
- New Libreswan version 3.20 - Use GitHub as primary download source
This commit is contained in:
parent
6d9eb9a2fa
commit
222acbf5ae
@ -11,7 +11,7 @@
|
|||||||
# know how you have improved it!
|
# know how you have improved it!
|
||||||
|
|
||||||
# Check https://libreswan.org for the latest version
|
# Check https://libreswan.org for the latest version
|
||||||
swan_ver=3.19
|
swan_ver=3.20
|
||||||
|
|
||||||
### DO NOT edit below this line ###
|
### DO NOT edit below this line ###
|
||||||
|
|
||||||
@ -139,8 +139,8 @@ apt-get -yq --no-install-recommends install xmlto || exiterr2
|
|||||||
|
|
||||||
# Compile and install Libreswan
|
# Compile and install Libreswan
|
||||||
swan_file="libreswan-$swan_ver.tar.gz"
|
swan_file="libreswan-$swan_ver.tar.gz"
|
||||||
swan_url1="https://download.libreswan.org/$swan_file"
|
swan_url1="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
||||||
swan_url2="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
swan_url2="https://download.libreswan.org/$swan_file"
|
||||||
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
||||||
exiterr "Cannot download Libreswan source."
|
exiterr "Cannot download Libreswan source."
|
||||||
fi
|
fi
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# know how you have improved it!
|
# know how you have improved it!
|
||||||
|
|
||||||
# Check https://libreswan.org for the latest version
|
# Check https://libreswan.org for the latest version
|
||||||
swan_ver=3.19
|
swan_ver=3.20
|
||||||
|
|
||||||
### DO NOT edit below this line ###
|
### DO NOT edit below this line ###
|
||||||
|
|
||||||
@ -131,8 +131,8 @@ fi
|
|||||||
|
|
||||||
# Compile and install Libreswan
|
# Compile and install Libreswan
|
||||||
swan_file="libreswan-$swan_ver.tar.gz"
|
swan_file="libreswan-$swan_ver.tar.gz"
|
||||||
swan_url1="https://download.libreswan.org/$swan_file"
|
swan_url1="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
||||||
swan_url2="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
swan_url2="https://download.libreswan.org/$swan_file"
|
||||||
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
||||||
exiterr "Cannot download Libreswan source."
|
exiterr "Cannot download Libreswan source."
|
||||||
fi
|
fi
|
||||||
|
@ -167,10 +167,10 @@ apt-get -yq install fail2ban || exiterr2
|
|||||||
|
|
||||||
bigecho "Compiling and installing Libreswan..."
|
bigecho "Compiling and installing Libreswan..."
|
||||||
|
|
||||||
swan_ver=3.19
|
swan_ver=3.20
|
||||||
swan_file="libreswan-$swan_ver.tar.gz"
|
swan_file="libreswan-$swan_ver.tar.gz"
|
||||||
swan_url1="https://download.libreswan.org/$swan_file"
|
swan_url1="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
||||||
swan_url2="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
swan_url2="https://download.libreswan.org/$swan_file"
|
||||||
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
||||||
exiterr "Cannot download Libreswan source."
|
exiterr "Cannot download Libreswan source."
|
||||||
fi
|
fi
|
||||||
|
@ -154,10 +154,10 @@ yum -y install fail2ban || exiterr2
|
|||||||
|
|
||||||
bigecho "Compiling and installing Libreswan..."
|
bigecho "Compiling and installing Libreswan..."
|
||||||
|
|
||||||
swan_ver=3.19
|
swan_ver=3.20
|
||||||
swan_file="libreswan-$swan_ver.tar.gz"
|
swan_file="libreswan-$swan_ver.tar.gz"
|
||||||
swan_url1="https://download.libreswan.org/$swan_file"
|
swan_url1="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
||||||
swan_url2="https://github.com/libreswan/libreswan/archive/v$swan_ver.tar.gz"
|
swan_url2="https://download.libreswan.org/$swan_file"
|
||||||
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
if ! { wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url2"; }; then
|
||||||
exiterr "Cannot download Libreswan source."
|
exiterr "Cannot download Libreswan source."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user