From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UCYoq-00050m-3F for ptxdist@pengutronix.de; Mon, 04 Mar 2013 18:04:56 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UCYoq-0006oO-35 for ptxdist@pengutronix.de; Mon, 04 Mar 2013 18:04:56 +0100 Date: Mon, 4 Mar 2013 18:04:56 +0100 From: Michael Olbrich Message-ID: <20130304170456.GY5360@pengutronix.de> References: <1361395347.22777.1.camel@mars> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1361395347.22777.1.camel@mars> Subject: Re: [ptxdist] [PATCH] strongswan: add package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Wed, Feb 20, 2013 at 10:22:27PM +0100, Christoph Fritz wrote: > > Signed-off-by: Christoph Fritz > --- > rules/strongswan.in | 9 ++++ > rules/strongswan.make | 123 +++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 132 insertions(+) > create mode 100644 rules/strongswan.in > create mode 100644 rules/strongswan.make > > diff --git a/rules/strongswan.in b/rules/strongswan.in > new file mode 100644 > index 0000000..34ad948 > --- /dev/null > +++ b/rules/strongswan.in > @@ -0,0 +1,9 @@ > +## SECTION=networking > + > +config STRONGSWAN > + bool > + prompt "strongswan" > + select LIBGMP > + select LIBCURL > + help > + strongSwan is a complete IPsec implementation. > diff --git a/rules/strongswan.make b/rules/strongswan.make > new file mode 100644 > index 0000000..9127ea9 > --- /dev/null > +++ b/rules/strongswan.make > @@ -0,0 +1,123 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2013 by Christoph Fritz > +# > +# > +# 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. > +# > +# preliminary testing version for strongswan > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_STRONGSWAN) += strongswan > + > +# > +# Paths and names > +# > +STRONGSWAN_VERSION := 5.0.2 > +STRONGSWAN_MD5 := 77dc16443fd141f46183d3a4f60986ef > +STRONGSWAN := strongswan-$(STRONGSWAN_VERSION) > +STRONGSWAN_SUFFIX := tar.bz2 > +STRONGSWAN_URL := http://download.strongswan.org/$(STRONGSWAN).$(STRONGSWAN_SUFFIX) > +STRONGSWAN_SOURCE := $(SRCDIR)/$(STRONGSWAN).$(STRONGSWAN_SUFFIX) > +STRONGSWAN_DIR := $(BUILDDIR)/$(STRONGSWAN) > +STRONGSWAN_LICENSE := GPL > + > +# ---------------------------------------------------------------------------- > +# Get > +# ---------------------------------------------------------------------------- > + > +#$(STRONGSWAN_SOURCE): > +# @$(call targetinfo) > +# @$(call get, STRONGSWAN) remove the whole section. > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +#STRONGSWAN_CONF_ENV := $(CROSS_ENV) remove. > + > +# > +# autoconf > +# > +STRONGSWAN_CONF_TOOL := autoconf > +STRONGSWAN_CONF_OPT := \ $(CROSS_AUTOCONF_USR) \ break. > + --enable-monolithic \ > + --enable-curl \ > + --enable-blowfish \ > + --enable-xauth-eap \ > + --enable-mediation \ > + --enable-ccm \ > + --enable-gcm \ > + --enable-addrblock \ > + --enable-unity \ > + --enable-whitelist \ > + --enable-error-notify \ > + --enable-certexpire \ > + --enable-coupling \ > + --enable-md4 \ > + --enable-eap-md5 \ > + --enable-eap-mschapv2 \ > + --enable-eap-identity \ > + --enable-eap-dynamic \ > + --enable-eap-gtc > + remove from here ... > +#$(STATEDIR)/strongswan.prepare: > +# @$(call targetinfo) > +# @$(call clean, $(STRONGSWAN_DIR)/config.cache) > +# cd $(STRONGSWAN_DIR) && \ > +# $(STRONGSWAN_PATH) $(STRONGSWAN_ENV) \ > +# ./configure $(STRONGSWAN_CONF_OPT) > +# @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Compile > +# ---------------------------------------------------------------------------- > + > +#$(STATEDIR)/strongswan.compile: > +# @$(call targetinfo) > +# @$(call world/compile, STRONGSWAN) > +# @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Install > +# ---------------------------------------------------------------------------- > + > +#$(STATEDIR)/strongswan.install: > +# @$(call targetinfo) > +# @$(call world/install, STRONGSWAN) > +# @$(call touch) > + ... to here > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/strongswan.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, strongswan) > + @$(call install_fixup, strongswan,PRIORITY,optional) > + @$(call install_fixup, strongswan,SECTION,base) > + @$(call install_fixup, strongswan,AUTHOR,"Christoph Fritz ") > + @$(call install_fixup, strongswan,DESCRIPTION,missing) > + > + @$(call install_tree, strongswan, 0, 0, $(STRONGSWAN_PKGDIR)/, /) I havn't tested this yet, but I very much doubt, that you need all files. So please install the individual programs, libs, etc. with install_copy/install_lib/etc. > + > + @$(call install_finish, strongswan) > + > + @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Clean > +# ---------------------------------------------------------------------------- > + > +#$(STATEDIR)/strongswan.clean: > +# @$(call targetinfo) > +# @$(call clean_pkg, STRONGSWAN) remove. Michael > + > +# vim: syntax=make > -- > 1.7.10.4 > > > > > -- > 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