[packages/openvpn] Up to 2.7.1; (incompatible changes in 2.7 - see https://github.com/OpenVPN/openvpn/blob/v2.7.1/Chang

arekm arekm at pld-linux.org
Wed Apr 8 21:49:31 CEST 2026


commit 547a2fc0593fb6537db2f1d6fa6eb696697f9e12
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 8 21:49:15 2026 +0200

    Up to 2.7.1; (incompatible changes in 2.7 - see https://github.com/OpenVPN/openvpn/blob/v2.7.1/Changes.rst)

 openvpn.spec     | 29 ++++++++++++++---------------
 openvpn.tmpfiles |  2 ++
 2 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/openvpn.spec b/openvpn.spec
index 543f345..3519682 100644
--- a/openvpn.spec
+++ b/openvpn.spec
@@ -1,5 +1,3 @@
-# TODO: compare PLD vs upstream provided systemd support, maybe we can switch? (see also files section)
-#
 # Conditional build:
 %bcond_without	pkcs11		# PKCS#11 support
 %bcond_without	tests
@@ -7,12 +5,12 @@
 Summary:	VPN Daemon
 Summary(pl.UTF-8):	Serwer VPN
 Name:		openvpn
-Version:	2.6.17
+Version:	2.7.1
 Release:	1
 License:	GPL v2
 Group:		Networking/Daemons
 Source0:        https://swupdate.openvpn.org/community/releases/%{name}-%{version}.tar.gz
-# Source0-md5:	710ffb55140ba892ea88325701ac7fd6
+# Source0-md5:	bec8a86a22304fa70ca6edb5b27c531c
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 Source3:	%{name}.tmpfiles
@@ -24,12 +22,13 @@ Patch0:		%{name}-pam.patch
 URL:		https://www.openvpn.net/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake >= 1:1.9
+BuildRequires:	libnl-devel >= 1:3.4.0
 BuildRequires:	libselinux-devel
 BuildRequires:	libtool
 BuildRequires:	lz4-devel >= 1:1.7.1
 BuildRequires:	lzo-devel
-# or mbedtls-devel >= 2
-BuildRequires:	openssl-devel >= 1.0.2
+# or mbedtls-devel >= 3.2.1
+BuildRequires:	openssl-devel >= 1.1.0
 %{?with_pkcs11:BuildRequires:	p11-kit-devel}
 BuildRequires:	pam-devel
 %{?with_pkcs11:BuildRequires:	pkcs11-helper-devel >= 1.11}
@@ -42,7 +41,7 @@ Requires(post,preun):	/sbin/chkconfig
 Requires(post,preun,postun):	systemd-units >= 38
 Requires:	/sbin/ip
 Requires:	lz4 >= 1:1.7.1
-Requires:	openssl >= 1.0.2
+Requires:	openssl >= 1.1.0
 %{?with_pkcs11:Requires:	pkcs11-helper >= 1.11}
 Requires:	rc-scripts >= 0.4.3.0
 Requires:	systemd-libs >= 1:217
@@ -160,12 +159,11 @@ CPPFLAGS="%{rpmcppflags} $(pkg-config --cflags liblz4)"
 	ac_cv_nsl_inet_ntoa=no \
 	ac_cv_socket_socket=no \
 	ac_cv_resolv_gethostbyname=no \
-	--enable-iproute2 \
 	%{?with_pkcs11:--enable-pkcs11} \
 	--enable-async-push \
+	--enable-dco \
 	--enable-selinux \
 	--enable-systemd \
-	--enable-x509-alt-username \
 	--with-crypto-library=openssl
 
 %{__make}
@@ -178,6 +176,7 @@ CPPFLAGS="%{rpmcppflags} $(pkg-config --cflags liblz4)"
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/openvpn,%{_sbindir},%{_mandir}/man8} \
 	$RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/run/openvpn,%{_includedir}} \
+	$RPM_BUILD_ROOT{/var/run/openvpn-client,/var/run/openvpn-server} \
 	$RPM_BUILD_ROOT{%{_libdir}/%{name}/plugins,%{systemdtmpfilesdir},%{systemdunitdir}} \
 	$RPM_BUILD_ROOT%{systemdunitdir}-generators
 
@@ -194,8 +193,6 @@ install -p %{SOURCE6} $RPM_BUILD_ROOT%{systemdunitdir}/openvpn at .service
 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/openvpn.service
 
 # we use "cp", not "install", not to pull /bin/bash dependency
-cp -p contrib/pull-resolv-conf/client.down $RPM_BUILD_ROOT%{_libdir}/%{name}
-cp -p contrib/pull-resolv-conf/client.up $RPM_BUILD_ROOT%{_libdir}/%{name}
 cp -p contrib/update-resolv-conf $RPM_BUILD_ROOT%{_libdir}/%{name}
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la
@@ -240,16 +237,18 @@ exit 0
 %{systemdunitdir}/openvpn.target
 %{systemdunitdir}/openvpn at .service
 # upstream provided
-#%{systemdunitdir}/openvpn-client at .service
-#%{systemdunitdir}/openvpn-server at .service
+%{systemdunitdir}/openvpn-client at .service
+%{systemdunitdir}/openvpn-server at .service
 %dir %{_libdir}/%{name}
-%attr(755,root,root) %{_libdir}/%{name}/client.down
-%attr(755,root,root) %{_libdir}/%{name}/client.up
 %attr(755,root,root) %{_libdir}/%{name}/update-resolv-conf
 %dir %{_libdir}/%{name}/plugins
+%dir %{_libexecdir}/%{name}
+%attr(755,root,root) %{_libexecdir}/%{name}/dns-updown
 %{_mandir}/man5/openvpn-examples.5*
 %{_mandir}/man8/openvpn.8*
 %dir /var/run/openvpn
+%dir /var/run/openvpn-client
+%dir /var/run/openvpn-server
 %{systemdtmpfilesdir}/%{name}.conf
 
 %files plugin-auth-pam
diff --git a/openvpn.tmpfiles b/openvpn.tmpfiles
index 4a3dc4a..bb8d3bb 100644
--- a/openvpn.tmpfiles
+++ b/openvpn.tmpfiles
@@ -1 +1,3 @@
 d /var/run/openvpn 0755 root root -
+d /var/run/openvpn-client 0710 root root -
+d /var/run/openvpn-server 0710 root root -
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openvpn.git/commitdiff/547a2fc0593fb6537db2f1d6fa6eb696697f9e12



More information about the pld-cvs-commit mailing list