mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] openvpn: allow use of iproute2
@ 2019-12-06 10:36 Ladislav Michl
  2020-01-06 10:59 ` Michael Olbrich
  0 siblings, 1 reply; 9+ messages in thread
From: Ladislav Michl @ 2019-12-06 10:36 UTC (permalink / raw)
  To: ptxdist

Let OpenVPN use ip command when BUSYBOX_IP is not selected. This
allows OpenVPN to be used in Busybox-less environments.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 rules/openvpn.in   | 10 +++++++---
 rules/openvpn.make |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/rules/openvpn.in b/rules/openvpn.in
index 6958e2940..af8cf1dda 100644
--- a/rules/openvpn.in
+++ b/rules/openvpn.in
@@ -11,9 +11,9 @@ menuconfig OPENVPN
 	select BRIDGE_UTILS		if OPENVPN_INSTALL_SAMPLE_SCRIPTS && RUNTIME
 	select IPROUTE2			if !BUSYBOX_IP && RUNTIME
 	select IPROUTE2_IP		if !BUSYBOX_IP && RUNTIME
-	select BUSYBOX_IFCONFIG		if RUNTIME
-	select BUSYBOX_NETSTAT		if RUNTIME
-	select BUSYBOX_ROUTE		if RUNTIME
+	select BUSYBOX_IFCONFIG		if BUSYBOX_IP && RUNTIME
+	select BUSYBOX_NETSTAT		if BUSYBOX_IP && RUNTIME
+	select BUSYBOX_ROUTE		if BUSYBOX_IP && RUNTIME
 	help
 	  virtual private network daemon
 
@@ -35,6 +35,10 @@ menuconfig OPENVPN
 
 if OPENVPN
 
+config OPENVPN_IPROUTE2
+	bool
+	default !BUSYBOX_IP
+
 config OPENVPN_SMALL
 	bool
 	prompt "Enable smaller executable size"
diff --git a/rules/openvpn.make b/rules/openvpn.make
index dc05384df..0c4f99ff2 100644
--- a/rules/openvpn.make
+++ b/rules/openvpn.make
@@ -67,7 +67,7 @@ OPENVPN_CONF_OPT	:= \
 	--enable-port-share \
 	--disable-debug \
 	--$(call ptx/endis, PTXCONF_OPENVPN_SMALL)-small \
-	--disable-iproute2 \
+	--$(call ptx/endis, PTXCONF_OPENVPN_IPROUTE2)-iproute2 \
 	--enable-def-auth \
 	--enable-pf \
 	--disable-plugin-auth-pam \
-- 
2.24.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-02 21:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-06 10:36 [ptxdist] [PATCH] openvpn: allow use of iproute2 Ladislav Michl
2020-01-06 10:59 ` Michael Olbrich
2020-05-13 10:39   ` Ladislav Michl
2020-05-26 12:01     ` Ladislav Michl
2020-05-27  8:24       ` Roland Hieber
2020-05-29  8:02     ` Michael Olbrich
2020-06-01  8:47       ` Ladislav Michl
2020-06-02  8:13         ` Michael Olbrich
2020-06-02 21:03           ` Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox