Hello,
this patch adds support to build openvpn rpms with iproute2 support. It's a
rather simple change, which defaults to off. Please review.
Cheers,
Adam
Date: Fri, 12 May 2017 12:00:50 +0200
Subject: [PATCH] Add option to enable iproute2 support
---
distro/rpm/openvpn.spec.in | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/distro/rpm/openvpn.spec.in b/distro/rpm/openvpn.spec.in
index 20a8c890..eca39257 100644
--- a/distro/rpm/openvpn.spec.in
+++ b/distro/rpm/openvpn.spec.in
@@ -10,6 +10,10 @@
#
# Allow passwords to be read from files
# rpmbuild -tb [openvpn.x.tar.gz] --define 'with_password_save 1'
+#
+# Enable iproute2 support
+# rpmbuild -tb [openvpn.x.tar.gz] --define 'with_iproute2 1'
+#
Summary: OpenVPN is a robust and highly flexible VPN daemon by James Yonan.
Name: @PACKAGE@
@@ -52,6 +56,9 @@ Requires: openssl >= 0.9.7
%{?with_pkcs11:BuildRequires: pkcs11-helper-devel}
%{?with_pkcs11:Requires: pkcs11-helper}
+%{?with_iproute2:BuildRequires: iputils}
+%{?with_iproute2:Requires: iputils}
+
#
# Description
#
@@ -102,7 +109,8 @@ Development support for OpenVPN.
%{?with_password_save:--enable-password-save} \
%{!?without_lzo:--enable-lzo} \
%{?with_pkcs11:--enable-pkcs11} \
- %{?without_pam:--disable-plugin-auth-pam}
+ %{?without_pam:--disable-plugin-auth-pam} \
+ %{?with_iproute2:--enable-iproute2}
%__make
#
--
2.13.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel