[ptxdist] [PATCH] openvpn: enable iproute2

2020-06-03 Thread Ladislav Michl
Use (rt)netlink interface provided by 'ip' tool by default.

Signed-off-by: Ladislav Michl 
---
 rules/openvpn.in   | 13 +++--
 rules/openvpn.make |  2 +-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/rules/openvpn.in b/rules/openvpn.in
index 6958e2940..afa124e10 100644
--- a/rules/openvpn.in
+++ b/rules/openvpn.in
@@ -9,11 +9,10 @@ menuconfig OPENVPN
select IPTABLES if OPENVPN_INSTALL_SAMPLE_CONFIGS && 
RUNTIME
select IPTABLES_INSTALL_TOOLS   if OPENVPN_INSTALL_SAMPLE_CONFIGS && 
RUNTIME
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_ROUTEif RUNTIME
+   select BUSYBOX_FEATURE_IP_LINK  if BUSYBOX_IP && RUNTIME
+   select BUSYBOX_FEATURE_IP_ROUTE if BUSYBOX_IP && RUNTIME
+   select IPROUTE2 if !BUSYBOX && RUNTIME
+   select IPROUTE2_IP  if !BUSYBOX && RUNTIME
help
  virtual private network daemon
 
@@ -22,7 +21,6 @@ menuconfig OPENVPN
  remote sites, make secure point-to-point connections,
  enhance wireless security, etc.
 
-
  OpenVPN uses all of the encryption, authentication, and
  certification features provided by the OpenSSL library (any
  cipher, key size, or HMAC digest).
@@ -35,6 +33,9 @@ menuconfig OPENVPN
 
 if OPENVPN
 
+comment "openvpn requires 'ip'!"
+   depends on !BUSYBOX_IP && !IPROUTE2_IP
+
 config OPENVPN_SMALL
bool
prompt "Enable smaller executable size"
diff --git a/rules/openvpn.make b/rules/openvpn.make
index dc05384df..46cca64ca 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 \
+   --enable-iproute2 \
--enable-def-auth \
--enable-pf \
--disable-plugin-auth-pam \
-- 
2.27.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 1/3] host-gengetopt: add package

2020-06-03 Thread Michael Olbrich
On Wed, Jun 03, 2020 at 10:30:51AM +0200, Marian Cichy wrote:
> 
> 
> On 6/2/20 3:18 PM, Michael Olbrich wrote:
> > On Mon, Jun 01, 2020 at 11:49:39AM +0200, Marian Cichy wrote:
> > > this package is a dependency for bayer2rgb3,
> > > which is a dependency for gst-bayer2rgb-neon
> > > ---
> > 
> > This is a v2 patch, so it should be marked as such.
> > 
> > 
> 
> I did use git format-patch -v 2 to mark it. Should I also mention v2 in the
> commit message?

Sorry, I am blind. You did the right thing here.

Michael

> > >   configs/ptxconfig |  1 +
> > >   rules/host-gengetopt.in   |  9 +
> > >   rules/host-gengetopt.make | 26 ++
> > >   3 files changed, 36 insertions(+)
> > >   create mode 100644 rules/host-gengetopt.in
> > >   create mode 100644 rules/host-gengetopt.make
> > > 
> > > diff --git a/configs/ptxconfig b/configs/ptxconfig
> > > index 972e7615..67200af3 100644
> > > --- a/configs/ptxconfig
> > > +++ b/configs/ptxconfig
> > 
> > This file does not exist. I guess you created the patch from a BSP?
> > 
> > Michael
> > 
> 
> Yes. I thought that we need to update the ptxconfig entries with every new
> package.
> 
> > > @@ -105,6 +105,7 @@ PTXCONF__ptxconfig_MAGIC__=y
> > >   PTXCONF_HOST_BSDIFF=y
> > >   # PTXCONF_HOST_DFU_UTIL is not set
> > >   PTXCONF_HOST_FILE_STACK=y
> > > +# PTXCONF_HOST_GENGETOPT is not set
> > >   # PTXCONF_HOST_OPENOCD is not set
> > >   # PTXCONF_HOST_QEMU is not set
> > >   # PTXCONF_HOST_TESTFRAMEWORK is not set
> > > diff --git a/rules/host-gengetopt.in b/rules/host-gengetopt.in
> > > new file mode 100644
> > > index ..f6855ab5
> > > --- /dev/null
> > > +++ b/rules/host-gengetopt.in
> > > @@ -0,0 +1,9 @@
> > > +## SECTION=hosttools
> > > +
> > > +config HOST_GENGETOPT
> > > + tristate
> > > + prompt "gengetopt"
> > > + help
> > > +   Gengetopt is a tool to write command line option
> > > +   parsing code for C programs.
> > > +
> > > diff --git a/rules/host-gengetopt.make b/rules/host-gengetopt.make
> > > new file mode 100644
> > > index ..2c1b3bb0
> > > --- /dev/null
> > > +++ b/rules/host-gengetopt.make
> > > @@ -0,0 +1,26 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2020 by Marian Cichy 
> > > +#
> > > +# For further information about the PTXdist project and license 
> > > conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +HOST_PACKAGES-$(PTXCONF_HOST_GENGETOPT) += host-gengetopt
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +HOST_GENGETOPT_VERSION   := 2.23
> > > +HOST_GENGETOPT_MD5   := ea165d618640dbdecb42ae4491337965
> > > +HOST_GENGETOPT   := gengetopt-$(HOST_GENGETOPT_VERSION)
> > > +HOST_GENGETOPT_SUFFIX:= tar.xz
> > > +HOST_GENGETOPT_URL   := 
> > > https://ftp.gnu.org/gnu/gengetopt/$(HOST_GENGETOPT).$(HOST_GENGETOPT_SUFFIX)
> > > +HOST_GENGETOPT_SOURCE:= 
> > > $(SRCDIR)/$(HOST_GENGETOPT).$(HOST_GENGETOPT_SUFFIX)
> > > +HOST_GENGETOPT_DIR   := $(HOST_BUILDDIR)/$(HOST_GENGETOPT)
> > > +HOST_GENGETOPT_LICENSE   := GPL-3.0-only
> > > +HOST_GENGETOPT_LICENSE_FILES := 
> > > file://COPYING;md5=ff95bfe019feaf92f524b73dd79e76eb
> > > +# vim: syntax=make
> > > -- 
> > > 2.20.1
> > > 
> > > 
> > > ___
> > > ptxdist mailing list
> > > ptxdist@pengutronix.de
> > > To unsubscribe, send a mail with subject "unsubscribe" to 
> > > ptxdist-requ...@pengutronix.de
> > > 
> > 
> 
> mci
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 1/3] host-gengetopt: add package

2020-06-03 Thread Marian Cichy




On 6/2/20 3:18 PM, Michael Olbrich wrote:

On Mon, Jun 01, 2020 at 11:49:39AM +0200, Marian Cichy wrote:

this package is a dependency for bayer2rgb3,
which is a dependency for gst-bayer2rgb-neon
---


This is a v2 patch, so it should be marked as such.




I did use git format-patch -v 2 to mark it. Should I also mention v2 in 
the commit message?



  configs/ptxconfig |  1 +
  rules/host-gengetopt.in   |  9 +
  rules/host-gengetopt.make | 26 ++
  3 files changed, 36 insertions(+)
  create mode 100644 rules/host-gengetopt.in
  create mode 100644 rules/host-gengetopt.make

diff --git a/configs/ptxconfig b/configs/ptxconfig
index 972e7615..67200af3 100644
--- a/configs/ptxconfig
+++ b/configs/ptxconfig


This file does not exist. I guess you created the patch from a BSP?

Michael



Yes. I thought that we need to update the ptxconfig entries with every 
new package.



@@ -105,6 +105,7 @@ PTXCONF__ptxconfig_MAGIC__=y
  PTXCONF_HOST_BSDIFF=y
  # PTXCONF_HOST_DFU_UTIL is not set
  PTXCONF_HOST_FILE_STACK=y
+# PTXCONF_HOST_GENGETOPT is not set
  # PTXCONF_HOST_OPENOCD is not set
  # PTXCONF_HOST_QEMU is not set
  # PTXCONF_HOST_TESTFRAMEWORK is not set
diff --git a/rules/host-gengetopt.in b/rules/host-gengetopt.in
new file mode 100644
index ..f6855ab5
--- /dev/null
+++ b/rules/host-gengetopt.in
@@ -0,0 +1,9 @@
+## SECTION=hosttools
+
+config HOST_GENGETOPT
+   tristate
+   prompt "gengetopt"
+   help
+ Gengetopt is a tool to write command line option
+ parsing code for C programs.
+
diff --git a/rules/host-gengetopt.make b/rules/host-gengetopt.make
new file mode 100644
index ..2c1b3bb0
--- /dev/null
+++ b/rules/host-gengetopt.make
@@ -0,0 +1,26 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Marian Cichy 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_GENGETOPT) += host-gengetopt
+
+#
+# Paths and names
+#
+HOST_GENGETOPT_VERSION := 2.23
+HOST_GENGETOPT_MD5 := ea165d618640dbdecb42ae4491337965
+HOST_GENGETOPT := gengetopt-$(HOST_GENGETOPT_VERSION)
+HOST_GENGETOPT_SUFFIX  := tar.xz
+HOST_GENGETOPT_URL := 
https://ftp.gnu.org/gnu/gengetopt/$(HOST_GENGETOPT).$(HOST_GENGETOPT_SUFFIX)
+HOST_GENGETOPT_SOURCE  := $(SRCDIR)/$(HOST_GENGETOPT).$(HOST_GENGETOPT_SUFFIX)
+HOST_GENGETOPT_DIR := $(HOST_BUILDDIR)/$(HOST_GENGETOPT)
+HOST_GENGETOPT_LICENSE := GPL-3.0-only
+HOST_GENGETOPT_LICENSE_FILES := 
file://COPYING;md5=ff95bfe019feaf92f524b73dd79e76eb
+# vim: syntax=make
--
2.20.1


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de





mci

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de