From e6411438c5e8c39b83d2b6f2f0841c91fe5b18a0 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Wed, 30 Nov 2022 17:51:28 +0800 Subject: [PATCH] openvpn --- Makefile | 14 +++++++++++--- install/openvpn | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100755 install/openvpn diff --git a/Makefile b/Makefile index e190775..0abf9d3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Autogenerated at 09.10.2022 12:57 using ./gen-makefile +# Autogenerated at 30.11.2022 17:50 using ./gen-makefile .DEFAULT_GOAL := help #=============================================== @@ -98,7 +98,7 @@ kde-portal: libreoffice: @./install/libreoffice -# Install lite-xl v2.0.5 (draft) +# Install lite-xl lite-xl: @./install/lite-xl @@ -126,6 +126,10 @@ omz-clean: omz-fancy: @./install/omz-fancy +# Install openvpn v2.5.8 (src) +openvpn: + @./install/openvpn + # Install papirus-icon-theme (latest) papirus: @./install/papirus @@ -174,7 +178,7 @@ vivaldi: wine: @./install/wine -# Install youtube-dl + ytdlcue +# Install youtube-dl youtube-dl: @./install/youtube-dl @@ -206,6 +210,10 @@ zsh: /docker: @./uninstall/docker +# Uninstall lite-xl +/lite-xl: + @./uninstall/lite-xl + # Uninstall omz /omz: @./uninstall/omz diff --git a/install/openvpn b/install/openvpn new file mode 100755 index 0000000..f5327a7 --- /dev/null +++ b/install/openvpn @@ -0,0 +1,33 @@ +#!/bin/bash +##makedesc: Install openvpn v2.5.8 (src) + +# https://openvpn.net/community-downloads/ +# https://openvpn.net/community-resources/installing-openvpn/ + +[ $1 ] && OVPNVER="$1" || OVPNVER='2.5.8' + +echo +echo "===============================================" +echo "Installing openvpn v${OVPNVER} (src)..." +echo "===============================================" +echo + +set -ex + +sudo apt install -y \ + libssl-dev \ + liblzo2-dev \ + libpam0g-dev + +mkdir -p "${HOME}/install/" +wget "https://swupdate.openvpn.org/community/releases/openvpn-${OVPNVER}.tar.gz" \ + -O "/tmp/openvpn-${OVPNVER}.tar.gz" +tar -xzf "/tmp/openvpn-${OVPNVER}.tar.gz" -C "${HOME}/install/" +cd "${HOME}/install/openvpn-${OVPNVER}" +sudo ./configure && \ + sudo make && \ + sudo make install && + sudo apt install -y \ + network-manager-openvpn \ + network-manager-openvpn-gnome && \ + openvpn --version