2022-11-30 09:51:28 +00:00
|
|
|
#!/bin/bash
|
2024-07-31 15:29:58 +00:00
|
|
|
##makedesc: Install openvpn v2.6.3 (src)
|
|
|
|
source `dirname $0`/../helpers || exit 255
|
2022-11-30 09:51:28 +00:00
|
|
|
|
|
|
|
# https://openvpn.net/community-downloads/
|
|
|
|
# https://openvpn.net/community-resources/installing-openvpn/
|
|
|
|
|
2024-07-31 15:29:58 +00:00
|
|
|
[ "$1" ] && OVPNVER="$1" || OVPNVER='2.6.3'
|
2022-11-30 09:51:28 +00:00
|
|
|
|
2024-07-31 15:29:58 +00:00
|
|
|
title "Installing openvpn v${OVPNVER} (src)..."
|
2022-11-30 09:51:28 +00:00
|
|
|
|
2024-07-31 15:29:58 +00:00
|
|
|
require libssl-dev \
|
2022-11-30 09:51:28 +00:00
|
|
|
liblzo2-dev \
|
|
|
|
libpam0g-dev
|
|
|
|
|
2024-07-31 15:29:58 +00:00
|
|
|
mkdir -p "$HOME/install/"
|
|
|
|
download "https://swupdate.openvpn.org/community/releases/openvpn-${OVPNVER}.tar.gz" "$HOME/install/openvpn-${OVPNVER}.tar.gz" && \
|
2024-11-24 13:13:37 +00:00
|
|
|
unpack_targz "$HOME/install/openvpn-${OVPNVER}.tar.gz" "$HOME/install/" && \
|
2024-07-31 15:29:58 +00:00
|
|
|
cd "$HOME/install/openvpn-${OVPNVER}" && \
|
|
|
|
sudo ./configure && \
|
2022-11-30 09:51:28 +00:00
|
|
|
sudo make && \
|
|
|
|
sudo make install &&
|
2024-07-31 15:29:58 +00:00
|
|
|
apt_install network-manager-openvpn \
|
2023-04-11 15:43:14 +00:00
|
|
|
network-manager-openvpn-gnome
|
|
|
|
|
2024-07-31 15:29:58 +00:00
|
|
|
[ $? = 0 ] && {
|
|
|
|
echo
|
|
|
|
success "openvpn installed!"
|
|
|
|
openvpn --version
|
|
|
|
echo
|
|
|
|
}
|