You are not logged in.
TIred of NetworkManager-openvpn spamming your logs with warnings about replay packets? This PKGBUILD will download NetworkManager-openvpn from git and patch in the --mute-replay-warnings argument
pkgname=networkmanager-openvpn-git+SRP
pkgver=1.10.3.dev.r32.g9d41292
pkgrel=1
pkgdesc="NetworkManager VPN plugin for OpenVPN + SRP"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch=(x86_64)
license=(GPL)
depends=(libnm libsecret openvpn)
makedepends=(libnma intltool python git)
optdepends=('libnma: GUI support')
conflicts=('networkmanager-openvpn')
provides=('networkmanager-openvpn')
source=("git+https://gitlab.gnome.org/GNOME/NetworkManager-openvpn.git")
sha256sums=('SKIP')
pkgver() {
cd ./NetworkManager-openvpn
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ./NetworkManager-openvpn
do_patch
intltoolize --automake --copy
autoreconf -fvi
}
build() {
cd ./NetworkManager-openvpn
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib --disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd ./NetworkManager-openvpn
make DESTDIR="$pkgdir" install dbusservicedir=/usr/share/dbus-1/system.d
echo 'u nm-openvpn - "NetworkManager OpenVPN"' |
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
}
do_patch() {
cat <<EOF >./srp.patch
+++ NetworkManager-openvpn/src/nm-openvpn-service.c 2024-04-14 20:51:04.417855420 -0500
@@ -1833,6 +1833,7 @@
if (gl.log_syslog) {
args_add_strv (args, "--syslog",
"nm-openvpn");
+ args_add_strv (args, "--mute-replay-warnings");
}
tmp = nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_TUNNEL_MTU);
EOF
patch -p1 <./srp.patch
}
# vim:set sw=2 et:
Enjoy
Last edited by Crunchbang (2024-04-25 03:19:27)
Offline