Package Details: openvpn3 18_beta-4

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: 5
Popularity: 1.11
First Submitted: 2020-07-04 06:51 (UTC)
Last Updated: 2022-09-20 00:24 (UTC)

Latest Comments

1 2 3 Next › Last »

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!.

eathtespagheti commented on 2022-04-26 09:06 (UTC)

@bhyoo just tested, it still uses pushd and therefore fails when launching commands via dash, maybe the solution could be to add bash as a build dependency and run all the commands with bash -c

bhyoo commented on 2022-04-25 14:29 (UTC)

@ribugent @pkulak @eathtespagheti @rahulmb Updated dependencies and build script. Thanks for notification!

@eathtespagheti Could you test dash compatibility?

campanari commented on 2022-04-25 11:49 (UTC)

thanks @ribugent

That worked for me too.

ribugent commented on 2022-03-29 11:12 (UTC)

In my case, I've fixed it by patching the source code via pkgbuild

diff --git a/PKGBUILD b/PKGBUILD
index 13702e4..d97724c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,6 +25,7 @@ sha256sums=('SKIP')

 build() {
   cd "$_pkgname"
+  sed -i 's:gio-unix-2.0/gio/gunixconnection.h:glib-2.0/gio/gunixsocketaddress.h:g' src/netcfg/netcfg-device.hpp
   ./bootstrap.sh
   ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --enable-bash-completion --enable-dco
   make -j $(nproc)

Hope this helps