[gentoo-commits] repo/proj/libressl:master commit in: net-vpn/openvpn/

2024-02-24 Thread orbea
commit: e551eb8414076630c6ec67771fb08353076f4505
Author: orbea  riseup  net>
AuthorDate: Sun Feb 25 02:02:52 2024 +
Commit: orbea  riseup  net>
CommitDate: Sun Feb 25 02:02:52 2024 +
URL:https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=e551eb84

net-vpn/openvpn: stabilize 2.6.4 for ppc

Signed-off-by: orbea  riseup.net>

 net-vpn/openvpn/openvpn-2.6.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-vpn/openvpn/openvpn-2.6.4.ebuild 
b/net-vpn/openvpn/openvpn-2.6.4.ebuild
index 3b110f6..8d454f2 100644
--- a/net-vpn/openvpn/openvpn-2.6.4.ebuild
+++ b/net-vpn/openvpn/openvpn-2.6.4.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]]; then
inherit git-r3
 else
SRC_URI="https://build.openvpn.net/downloads/releases/${P}.tar.gz;
-   KEYWORDS="amd64 arm arm64 ~loong ~ppc ppc64 ~riscv x86"
+   KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/proj/libressl:master commit in: net-vpn/openvpn/

2024-01-14 Thread orbea
commit: 276a2249d6f96d094ea3928a61848573fcaf242b
Author: orbea  riseup  net>
AuthorDate: Sun Jan 14 21:21:33 2024 +
Commit: orbea  riseup  net>
CommitDate: Sun Jan 14 21:21:56 2024 +
URL:https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=276a2249

net-vpn/openvpn: stabilize 2.6.4 for arm

Signed-off-by: orbea  riseup.net>

 net-vpn/openvpn/openvpn-2.6.4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-vpn/openvpn/openvpn-2.6.4.ebuild 
b/net-vpn/openvpn/openvpn-2.6.4.ebuild
index 052a21c..3b110f6 100644
--- a/net-vpn/openvpn/openvpn-2.6.4.ebuild
+++ b/net-vpn/openvpn/openvpn-2.6.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]]; then
inherit git-r3
 else
SRC_URI="https://build.openvpn.net/downloads/releases/${P}.tar.gz;
-   KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv x86"
+   KEYWORDS="amd64 arm arm64 ~loong ~ppc ppc64 ~riscv x86"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/proj/libressl:master commit in: net-vpn/openvpn/

2023-12-29 Thread orbea
commit: edd93d7250ce7c4bcee8e91632c021dc74d85390
Author: orbea  riseup  net>
AuthorDate: Fri Dec 29 14:20:29 2023 +
Commit: orbea  riseup  net>
CommitDate: Fri Dec 29 14:20:29 2023 +
URL:https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=edd93d72

net-vpn/openvpn: stabilize 2.6.4 for arm64

Signed-off-by: orbea  riseup.net>

 net-vpn/openvpn/openvpn-2.6.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-vpn/openvpn/openvpn-2.6.4.ebuild 
b/net-vpn/openvpn/openvpn-2.6.4.ebuild
index 170b907..052a21c 100644
--- a/net-vpn/openvpn/openvpn-2.6.4.ebuild
+++ b/net-vpn/openvpn/openvpn-2.6.4.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]]; then
inherit git-r3
 else
SRC_URI="https://build.openvpn.net/downloads/releases/${P}.tar.gz;
-   KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc ppc64 ~riscv x86"
+   KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv x86"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/proj/libressl:master commit in: net-vpn/openvpn/files/, net-vpn/openvpn/

2023-09-03 Thread orbea
commit: 296b6c10efa3a16e29b6d895dcda15f06776bbe2
Author: orbea  riseup  net>
AuthorDate: Sun Sep  3 17:10:30 2023 +
Commit: orbea  riseup  net>
CommitDate: Sun Sep  3 17:10:30 2023 +
URL:https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=296b6c10

net-vpn/openvpn: new package

Signed-off-by: orbea  riseup.net>

 net-vpn/openvpn/Manifest   |   4 +
 net-vpn/openvpn/files/down.sh  |  33 
 net-vpn/openvpn/files/openvpn-2.1.conf |  18 ++
 net-vpn/openvpn/files/openvpn-2.1.init | 134 ++
 .../openvpn-2.5.0-auth-pam-missing-header.patch|  12 ++
 .../openvpn-2.5.2-detect-python-rst2man.patch  |  14 ++
 net-vpn/openvpn/files/openvpn-2.5.2-libressl.patch | 147 +++
 net-vpn/openvpn/files/openvpn-2.5.7-libressl.patch |  37 
 net-vpn/openvpn/files/up.sh| 100 +++
 net-vpn/openvpn/metadata.xml   |  28 +++
 net-vpn/openvpn/openvpn-2.5.2-r3.ebuild| 199 +
 net-vpn/openvpn/openvpn-2.5.6-r1.ebuild| 198 
 net-vpn/openvpn/openvpn-2.5.7-r1.ebuild| 195 
 net-vpn/openvpn/openvpn-2.6.4.ebuild   | 197 
 14 files changed, 1316 insertions(+)

diff --git a/net-vpn/openvpn/Manifest b/net-vpn/openvpn/Manifest
new file mode 100644
index 000..00d1421
--- /dev/null
+++ b/net-vpn/openvpn/Manifest
@@ -0,0 +1,4 @@
+DIST openvpn-2.5.2.tar.xz 1134644 BLAKE2B 
59aa0c540894de4cfb37ad4c3139eb69a35d317e3de490f71b185a979989c1253221091a30bfb2ee5243fcfae190605e9787051de079eee79e57bd63392c42d5
 SHA512 
ae2cac00ae4b9e06e7e70b268ed47d36bbb45409650175e507d5bfa12b0a4f24bccc64f2494d1563f9269c8076d0f753a492f01ea33ce376ba00b7cdcb5c7bd0
+DIST openvpn-2.5.6.tar.xz 1150352 BLAKE2B 
509821eca9d40c5579700e05e560b906ddee5abb0c51a9a210e2e998cdd9606f734d43d3bec8c473cc4f0aaa1e265e7f05202aa606247ebde8844c0243165fac
 SHA512 
f0f0600df013431af804ace70ea86ac064917acdeaad3759b5d5eaa4a8dc3738d6da6df4c16bbb23443e3493487541cb8b10b89f9f0b40a17caa6e6fc46e0adb
+DIST openvpn-2.5.7.tar.xz 1150476 BLAKE2B 
e8d24a8be8ff97072ef3b76dbec15cd6e7097ebe99f680d759f213cb5643d7b4a29664d2a96e6efe1d6ee858a6d6b3f23c6d12cf74f202fbe8cc48642f18dba6
 SHA512 
9a3234b479f5bab12b8c3af7691f175f8cd32f2929dd27efc16e96e14dbb8e07421e623869ad5ffc2d7e65f2266817d1583723033f3646b9913b10ec6d014b44
+DIST openvpn-2.6.4.tar.gz 1861178 BLAKE2B 
584fc3950732d6a1db417811f6e330a154537207f6c9543ab03b1c1a886a98a0aee7d1649055a9f7944555ae8865602be15fd8e23b67258917f1adebde050099
 SHA512 
903ac41691c26e8e4ad65c9b6fb5e75db2caf2e4079d3c4cb61a44e51be9991508f53a1dd8b4b863b4ac86088ad1a705d22131df1e25612560c9f4276d8190ec

diff --git a/net-vpn/openvpn/files/down.sh b/net-vpn/openvpn/files/down.sh
new file mode 100644
index 000..1c70db0
--- /dev/null
+++ b/net-vpn/openvpn/files/down.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Copyright (c) 2006-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# Contributed by Roy Marples (uberl...@gentoo.org)
+
+# If we have a service specific script, run this now
+if [ -x /etc/openvpn/"${SVCNAME}"-down.sh ] ; then
+   /etc/openvpn/"${SVCNAME}"-down.sh "$@"
+fi
+
+# Restore resolv.conf to how it was
+if [ "${PEER_DNS}" != "no" ]; then
+   if [ -x /sbin/resolvconf ] ; then
+   /sbin/resolvconf -d "${dev}"
+   elif [ -e /etc/resolv.conf-"${dev}".sv ] ; then
+   # Important that we copy instead of move incase resolv.conf is
+   # a symlink and not an actual file
+   cp /etc/resolv.conf-"${dev}".sv /etc/resolv.conf
+   rm -f /etc/resolv.conf-"${dev}".sv
+   fi
+fi
+
+if [ -n "${SVCNAME}" ]; then
+   # Re-enter the init script to start any dependant services
+   if /etc/init.d/"${SVCNAME}" --quiet status ; then
+   export IN_BACKGROUND=true
+   /etc/init.d/"${SVCNAME}" --quiet stop
+   fi
+fi
+
+exit 0
+
+# vim: ts=4 :

diff --git a/net-vpn/openvpn/files/openvpn-2.1.conf 
b/net-vpn/openvpn/files/openvpn-2.1.conf
new file mode 100644
index 000..72510c3
--- /dev/null
+++ b/net-vpn/openvpn/files/openvpn-2.1.conf
@@ -0,0 +1,18 @@
+# OpenVPN automatically creates an /etc/resolv.conf (or sends it to
+# resolvconf) if given DNS information by the OpenVPN server.
+# Set PEER_DNS="no" to stop this.
+PEER_DNS="yes"
+
+# OpenVPN can run in many modes. Most people will want the init script
+# to automatically detect the mode and try and apply a good default
+# configuration and setup scripts. However, there are cases where the
+# OpenVPN configuration looks like a client, but it's really a peer or
+# something else. DETECT_CLIENT controls this behaviour.
+DETECT_CLIENT="yes"
+
+# If DETECT_CLIENT is no and you have your own scripts to re-enter the openvpn
+# init script (ie, it first becomes "inactive" and the script then starts the
+# script