Package Details: openvpn3 21-3

Git Clone URL: https://aur.archlinux.org/openvpn3.git (read-only, click to copy)
Package Base: openvpn3
Description: OpenVPN 3 Linux client
Upstream URL: https://github.com/OpenVPN/openvpn3-linux
Licenses: AGPL3
Submitter: bhyoo
Maintainer: bhyoo
Last Packager: bhyoo
Votes: 14
Popularity: 0.64
First Submitted: 2020-07-04 06:51 (UTC)
Last Updated: 2023-11-24 00:02 (UTC)

Pinned Comments

bhyoo commented on 2023-11-04 09:27 (UTC)

Because the origin source code does not support upstream glib2, this package delivers statically compiled glib2 2.74.6 within binary starting from 21-1. Please give any feedback if it does not work.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

Pierre commented on 2022-11-13 07:31 (UTC)

@bhyoo: the package itself works. It just its meta data that are wrong.

arch=(any) does not mean that you can compile the PKGBUILD on any architecture. It does mean that the compiled package can be used on any architecture as-is. This is usually the case when a package only includes scripts or assets. The openvpn3 package however includes binaries compiled for a specific architecture. So the aarch64 version will not work on amd64.

bhyoo commented on 2022-11-09 14:24 (UTC)

@Pierre Do you have any problem using it on arm64? I used it on raspberry pi 4 several month ago and had no issue.

Pierre commented on 2022-10-25 18:49 (UTC)

The PKGBUILD lists arch as "any" which wrongly results in a package that is architecture independent. You should set it to e.g. arch=('i686' 'x86_64')

bhyoo commented on 2022-10-04 10:53 (UTC)

Hi @snake.scaly, Thanks for your work. Just patched!

snake.scaly commented on 2022-09-29 01:19 (UTC)

I overlooked one thing. You may also want to add another line to tmpfiles-openvpn3.conf to explicitly create the /var/lib/openvpn3 directory before creating /var/lib/openvpn3/configs. If you use my patch as is, the /var/lib/openvpn3/configs is created with 0755 permissions as expected, but the /var/lib/openvpn3 is 0750 for some reason, so not world-readable. In a Debian installation using the project's official APT source these directories are created with 0755 permissions.

tmpfiles-openvpn3.conf should look like this:

d /var/lib/openvpn3 0755 openvpn openvpn
d /var/lib/openvpn3/configs 0755 openvpn openvpn

snake.scaly commented on 2022-09-29 00:59 (UTC)

Hi @bhyoo, I had to modify this AUR to make it work on my machine. Maybe it was a user error but somehow the /var/lib/openvpn3 directory got created by the root user instead of openvpn so openvpn-service-configmgr and openvpn-service-sessionmgr couldn't start, ultimately crashing with DBusProxyAccessDeniedException.

To fix this I've added a configuration for /usr/lib/tmpfiles.d to create this directory with the correct ownership beforehand. Below is the full patch, hopefully it's not too much for a comment.

diff --git a/PKGBUILD b/PKGBUILD
index 1bf2a1a..a1f67f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 _pkgname=openvpn3-linux
 pkgname=openvpn3
 pkgver=18_beta
-pkgrel=4
+pkgrel=5
 pkgdesc='OpenVPN 3 Linux client'
 arch=('any')
 url="https://github.com/OpenVPN/$_pkgname"
@@ -23,12 +23,14 @@ makedepends=(
 source=(
   "git+https://github.com/OpenVPN/$_pkgname.git#tag=v${pkgver}"
   'openvpn3.rule'
-  'openvpn3.conf'
+  'sysusers-openvpn3.conf'
+  'tmpfiles-openvpn3.conf'
 )
 sha256sums=(
   'SKIP'
   'ec0b8e28ae77b4b074d3eb8a084626e6dcfc587a07bef5d53fe1c6e160c0fc01'
-  'a2361bb4060aa351c33bda56f40c470420da64b922d7795ab6ddb19fab16b9c5'
+  'f977f1bf263c513c6ae20e8ba780a15e0ac19326e21f5ec5d5acc0efb82048fd'
+  'ff6c83e9f2d01b0102b0928d75019056f124de4dfad9156af518db05f3111649'
 )

 build() {
@@ -51,5 +53,6 @@ package() {
   make DESTDIR="$pkgdir" install
   install -Dm644 "$srcdir/$_pkgname/src/shell/bash-completion/openvpn3" "$pkgdir/usr/share/bash-completion/completions/openvpn3"
   install -Dm644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
-  install -Dm644 "../$pkgname.conf"  "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+  install -Dm644 "../sysusers-$pkgname.conf"  "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+  install -Dm644 "../tmpfiles-$pkgname.conf"  "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
 }
diff --git a/openvpn3.conf b/openvpn3.conf
deleted file mode 100644
index 99c619f..0000000
--- a/openvpn3.conf
+++ /dev/null
@@ -1 +0,0 @@
-u openvpn - "OpenVPN"
\ No newline at end of file
diff --git a/sysusers-openvpn3.conf b/sysusers-openvpn3.conf
new file mode 100644
index 0000000..3196708
--- /dev/null
+++ b/sysusers-openvpn3.conf
@@ -0,0 +1,2 @@
+u openvpn - "OpenVPN"
+g openvpn - "OpenVPN"
diff --git a/tmpfiles-openvpn3.conf b/tmpfiles-openvpn3.conf
new file mode 100644
index 0000000..91ad337
--- /dev/null
+++ b/tmpfiles-openvpn3.conf
@@ -0,0 +1 @@
+d /var/lib/openvpn3/configs 0755 openvpn openvpn

bhyoo commented on 2022-07-30 04:21 (UTC)

@campfireman You should not include base-devel into makedepends. https://wiki.archlinux.org/title/PKGBUILD#makedepends

remanifest commented on 2022-07-25 14:00 (UTC) (edited on 2022-07-25 14:04 (UTC) by remanifest)

After upgrading to kernel 5.18.14, I had to rebuild this package. It was throwing an error for me when trying to initiate a session: ERROR Failed preparing proxy: Error calling StartServiceByName for net.openvpn.v3.sessions: Launch helper exited with unknown return code 127

The solution (for me) was to remove the source directory with rm -rf ~/.cache/paru/clone/openvpn3

Next, paru -S openvpn3 got me back in business. Hope this can help someone else if they run into the same.

campfireman commented on 2022-06-24 20:11 (UTC)

Had to install automake and pkg-config to make compilation work. Is the problem on my side or do these need to be added as dependencies?

tuxiano commented on 2022-05-11 13:27 (UTC)

Thanks @ribugent that fix totally worked!.