From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH bluetooth-next 4/4] openvpn: rework and version bump
Date: Mon, 12 Jan 2015 15:38:47 +0100 [thread overview]
Message-ID: <20150112143846.GB26436@pengutronix.de> (raw)
In-Reply-To: <1419701935-28132-5-git-send-email-alex.aring@gmail.com>
On Sat, Dec 27, 2014 at 06:38:55PM +0100, Alexander Aring wrote:
> This patch reworks the openvpn rules. Some points which are new now:
>
> - systemd support if OPENVPN_SYSTEMD
> - install openvpn sample configs as reference for /etc/openvpn/
> - install openvpn sample scripts (ethernet bridging)
> - add required environemnt for networking utilities while configure
> - add several missed autoconf configure options
>
> Additional this patch do a version bump to 2.3.6
>
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> ---
> rules/openvpn.in | 26 ++++++++++++++++++++++++
> rules/openvpn.make | 59 +++++++++++++++++++++++++++++++++++++++++++-----------
> 2 files changed, 73 insertions(+), 12 deletions(-)
>
> diff --git a/rules/openvpn.in b/rules/openvpn.in
> index 3649968..d68dc7a 100644
> --- a/rules/openvpn.in
> +++ b/rules/openvpn.in
> @@ -5,6 +5,10 @@ menuconfig OPENVPN
> prompt "openvpn "
> select OPENSSL
> select LIBLZO if OPENVPN_LZO
> + depends on IPROUTE2_IP || BUSYBOX_IP
> + depends on BUSYBOX_IFCONFIG
> + depends on BUSYBOX_NETSTAT
> + depends on BUSYBOX_ROUTE
no 'depends' here:
select IPROUTE2 if !BUSYBOX_IP && RUNTIME
select IPROUTE2_IP if !BUSYBOX_IP && RUNTIME
select BUSYBOX_IFCONFIG
[...]
I think.
Michael
> help
> virtual private network daemon
>
> @@ -34,4 +38,26 @@ config OPENVPN_LZO
> will select the LZO library as well.
> If unsure, say N.
>
> +config OPENVPN_SYSTEMD
> + bool
> + prompt "Enable systemd support"
> + depends on SYSTEMD
> + help
> + This enables systemd support for openvpn.
> +
> +config OPENVPN_INSTALL_SAMPLE_CONFIGS
> + bool
> + prompt "Install sample configs"
> + select IPTABLES
> + select IPTABLES_INSTALL_TOOLS
> + help
> + Install sample configs into /usr/share/openvpn/sample-config-files.
> +
> +config OPENVPN_INSTALL_SAMPLE_SCRIPTS
> + bool
> + prompt "Install sample scripts"
> + select BRIDGE_UTILS
> + help
> + Install sample scripts into /usr/share/openvpn/sample-scripts.
> +
> endif
> diff --git a/rules/openvpn.make b/rules/openvpn.make
> index d288d43..7cfa427 100644
> --- a/rules/openvpn.make
> +++ b/rules/openvpn.make
> @@ -16,11 +16,11 @@ PACKAGES-$(PTXCONF_OPENVPN) += openvpn
> #
> # Paths and names
> #
> -OPENVPN_VERSION := 2.1.1
> -OPENVPN_MD5 := b273ed2b5ec8616fb9834cde8634bce7
> +OPENVPN_VERSION := 2.3.6
> +OPENVPN_MD5 := 6ca03fe0fd093e0d01601abee808835c
> OPENVPN := openvpn-$(OPENVPN_VERSION)
> OPENVPN_SUFFIX := tar.gz
> -OPENVPN_URL := http://openvpn.net/release/$(OPENVPN).$(OPENVPN_SUFFIX)
> +OPENVPN_URL := http://swupdate.openvpn.org/community/releases/$(OPENVPN).$(OPENVPN_SUFFIX)
> OPENVPN_SOURCE := $(SRCDIR)/$(OPENVPN).$(OPENVPN_SUFFIX)
> OPENVPN_DIR := $(BUILDDIR)/$(OPENVPN)
>
> @@ -29,18 +29,36 @@ OPENVPN_DIR := $(BUILDDIR)/$(OPENVPN)
> # ----------------------------------------------------------------------------
>
> OPENVPN_PATH := PATH=$(CROSS_PATH)
> -OPENVPN_ENV := $(CROSS_ENV)
> +OPENVPN_ENV := \
> + $(CROSS_ENV) \
> + IFCONFIG=/sbin/ifconfig \
> + ROUTE=/sbin/route \
> + IPROUTE=/sbin/ip \
> + NETSTAT=/bin/netstat
>
> #
> # autoconf
> #
> -OPENVPN_AUTOCONF := $(CROSS_AUTOCONF_USR)
> +OPENVPN_AUTOCONF := \
> + $(CROSS_AUTOCONF_USR) \
> + --$(call ptx/endis, PTXCONF_OPENVPN_LZO)-lzo \
> + --disable-plugins \
> + --disable-debug \
> + --enable-small \
> + --disable-iproute2 \
> + --disable-selinux \
> + --$(call ptx/endis, PTXCONF_OPENVPN_SYSTEMD)-systemd \
> + --with-crypto-library=openssl
>
> -ifdef PTXCONF_OPENVPN_LZO
> -OPENVPN_AUTOCONF += --enable-lzo
> -else
> -OPENVPN_AUTOCONF += --disable-lzo
> -endif
> +OPENVPN_INSTALL_SAMPLE_CONFIG_FILES := \
> + client.conf loopback-client loopback-server README server.conf \
> + static-home.conf static-office.conf tls-home.conf tls-office.conf \
> + xinetd-client-config xinetd-server-config
> +
> +OPENVPN_INSTALL_SAMPLE_CONFIG_SCRIPTS := \
> + firewall.sh home.up office.up openvpn-shutdown.sh openvpn-startup.sh
> +
> +OPENVPN_INSTALL_SAMPLE_SCRIPTS := bridge-start bridge-stop
>
> # ----------------------------------------------------------------------------
> # Target-Install
> @@ -55,9 +73,26 @@ $(STATEDIR)/openvpn.targetinstall:
> @$(call install_fixup, openvpn,AUTHOR,"Carsten Schlote <c.schlote@konzeptpark.de>")
> @$(call install_fixup, openvpn,DESCRIPTION,missing)
>
> - @$(call install_copy, openvpn, 0, 0, 0755, -, /usr/sbin/openvpn)
> +ifdef PTXCONF_OPENVPN_INSTALL_SAMPLE_CONFIGS
> + @$(foreach file,$(OPENVPN_INSTALL_SAMPLE_CONFIG_FILES), \
> + $(call install_copy, openvpn, 0, 0, 0644, \
> + $(OPENVPN_DIR)/sample/sample-config-files/$(file), \
> + /usr/share/openvpn/sample-config-files/$(file));)
>
> - @$(call install_copy, openvpn, 0, 0, 0755, /etc/openvpn)
> + @$(foreach script,$(OPENVPN_INSTALL_SAMPLE_CONFIG_SCRIPTS), \
> + $(call install_copy, openvpn, 0, 0, 0755, \
> + $(OPENVPN_DIR)/sample/sample-config-files/$(script), \
> + /usr/share/openvpn/sample-config-files/$(script));)
> +endif
> +
> +ifdef PTXCONF_OPENVPN_INSTALL_SAMPLE_SCRIPTS
> + @$(foreach script,$(OPENVPN_INSTALL_SAMPLE_SCRIPTS), \
> + $(call install_copy, openvpn, 0, 0, 0755, \
> + $(OPENVPN_DIR)/sample/sample-scripts/$(script), \
> + /usr/share/openvpn/sample-scripts/$(script));)
> +endif
> +
> + @$(call install_copy, openvpn, 0, 0, 0755, -, /usr/sbin/openvpn)
>
> @$(call install_finish, openvpn)
>
> --
> 2.2.0
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2015-01-12 14:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-27 17:38 [ptxdist] [PATCH bluetooth-next 0/4] openvpn: cleanups, extras and version bumps Alexander Aring
2014-12-27 17:38 ` [ptxdist] [PATCH bluetooth-next 1/4] liblzo: rework and version bump Alexander Aring
2014-12-27 17:38 ` [ptxdist] [PATCH bluetooth-next 2/4] openssl: allow to install openssl.cnf Alexander Aring
2015-01-12 14:36 ` Michael Olbrich
2015-01-18 18:43 ` Alexander Aring
2014-12-27 17:38 ` [ptxdist] [PATCH bluetooth-next 3/4] easy-rsa: initial commit Alexander Aring
2014-12-27 17:38 ` [ptxdist] [PATCH bluetooth-next 4/4] openvpn: rework and version bump Alexander Aring
2015-01-12 14:38 ` Michael Olbrich [this message]
2015-01-18 19:12 ` Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150112143846.GB26436@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox