Carsten Schlote wrote: > From: Carsten Schlote <c.schl...@konzeptpark.de> > > Added simple to use VPN packet. > > Signed-off-by: Carsten Schlote <c.schl...@konzeptpark.de> > --- > rules/openvpn.in | 21 ++++++++++++ > rules/openvpn.make | 87 > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 108 insertions(+), 0 deletions(-) > create mode 100644 rules/openvpn.in > create mode 100644 rules/openvpn.make
I've fixed these things.... > > diff --git a/rules/openvpn.in b/rules/openvpn.in > new file mode 100644 > index 0000000..2c69338 > --- /dev/null > +++ b/rules/openvpn.in > @@ -0,0 +1,21 @@ > +## SECTION=networking empty line here, please > +menuconfig OPENVPN > + tristate > + prompt "openvpn " > + select OPENSSL > + select LIBLZO if OPENVPN_LZO > + help > + This adds OpenVPN to your root filesystem. Plain vanilla > + packet. > + > +if OPENVPN > + > +config OPENVPN_LZO > + bool > + prompt "Enable LZO compression" > + help > + This enables the LZO compression code. Selecting this option > + will select the LZO library as well. > + If unsure, say N. > + > +endif > diff --git a/rules/openvpn.make b/rules/openvpn.make > new file mode 100644 > index 0000000..da79d5f > --- /dev/null > +++ b/rules/openvpn.make > @@ -0,0 +1,87 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2007 by Carsten Schlote <c.schl...@konzeptpark.de> > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_OPENVPN) += openvpn > + > +# > +# Paths and names > +# > +OPENVPN_VERSION := 2.0.9 > +OPENVPN := openvpn-$(OPENVPN_VERSION) > +OPENVPN_SUFFIX := tar.gz > +OPENVPN_URL := > http://openvpn.net/release/$(OPENVPN).$(OPENVPN_SUFFIX) > +OPENVPN_SOURCE := $(SRCDIR)/$(OPENVPN).$(OPENVPN_SUFFIX) > +OPENVPN_DIR := $(BUILDDIR)/$(OPENVPN) > + > + > +# > ---------------------------------------------------------------------------- > +# Get > +# > ---------------------------------------------------------------------------- > + > +$(OPENVPN_SOURCE): > + @$(call targetinfo, $@) ^^^^ please remove > + @$(call get, OPENVPN) > + > +# > ---------------------------------------------------------------------------- > +# Prepare > +# > ---------------------------------------------------------------------------- > + > +OPENVPN_PATH := PATH=$(CROSS_PATH) > +OPENVPN_ENV := $(CROSS_ENV) > + > +# > +# autoconf > +# > +OPENVPN_AUTOCONF := $(CROSS_AUTOCONF_USR) > + > +ifdef PTXCONF_OPENVPN_LZO > +OPENVPN_LZO := --enable-lzo > +else > +OPENVPN_LZO := --disable-lzo you probably want to write "OPENVPN_AUTOCONF +=" here > +endif > + > +# > ---------------------------------------------------------------------------- > +# Target-Install > +# > ---------------------------------------------------------------------------- > + > +$(STATEDIR)/openvpn.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, openvpn) > + @$(call install_fixup, openvpn,PACKAGE,openvpn) > + @$(call install_fixup, openvpn,PRIORITY,optional) > + @$(call install_fixup, openvpn,VERSION,$(OPENVPN_VERSION)) > + @$(call install_fixup, openvpn,SECTION,base) > + @$(call install_fixup, openvpn,AUTHOR,"Carsten Schlote > <c.schl...@konzeptpark.de>") > + @$(call install_fixup, openvpn,DEPENDS,) > + @$(call install_fixup, openvpn,DESCRIPTION,missing) > + > + @$(call install_copy, openvpn, 0, 0, 0755, -, /usr/sbin/openvpn) > + > + @$(call install_copy, openvpn, 0, 0, 0755, /etc/openvpn) > + > + @$(call install_finish, openvpn) > + > + @$(call touch) > + > +# > ---------------------------------------------------------------------------- > +# Clean > +# > ---------------------------------------------------------------------------- > + > +openvpn_clean: > + rm -rf $(STATEDIR)/openvpn.* > + rm -rf $(OPENVPN_PKGDIR)/* > + rm -rf $(OPENVPN_DIR) > + > +# vim: syntax=make > + and applied it. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
-- ptxdist mailing list ptxdist@pengutronix.de