X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id BF1631DEA372 for ; Fri, 28 Oct 2011 08:34:35 +0000 (UTC) Received: by qadz32 with SMTP id z32so4704859qad.13 for ; Fri, 28 Oct 2011 01:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=eW5Aw+aBwF1JuuUkmzwUTsDOuIdKmde8ORJtMDF6wQw=; b=gpLOJa/ifToU/FfMtI3zjNZFbdkjvHGSvKpmNra/4qaQalmaYxHWEES5Qa96daxvND u0Mv2GRf0m1ycwQMwStTIF3lJIKNsdq2SmjA9XPbMFooN1/69TvSsfTIfggEqLLcvQ7z G8OLnbehjVFhza8ablks3v8cx+u+g8zZtseiM= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.182.217.105 with SMTP id ox9mr343480obc.45.1319790874530; Fri, 28 Oct 2011 01:34:34 -0700 (PDT) Received: by 10.182.144.9 with HTTP; Fri, 28 Oct 2011 01:34:34 -0700 (PDT) In-Reply-To: <1319751176-9658-2-git-send-email-jlyo@jlyo.org> References: <1319751176-9658-1-git-send-email-jlyo@jlyo.org> <1319751176-9658-2-git-send-email-jlyo@jlyo.org> Date: Fri, 28 Oct 2011 10:34:34 +0200 Message-ID: Subject: Re: [alpine-devel] [PATCH 2/4] testing/strongswan: new aport From: Carlo Landmeter To: Jesse Young Cc: Alpine Development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I have commited it but modified it a little bit. Checksums are not up to date, .la files need to be removed, and did a little cleanup. Thx! On Thu, Oct 27, 2011 at 11:32 PM, Jesse Young wrote: > An OpenSource IPsec implementation for the Linux operating system > http://www.strongswan.org/ > > Signed-off-by: Jesse Young > --- > =A0testing/strongswan/APKBUILD =A0 =A0 =A0 =A0 | =A0 54 +++++++++++++++++= ++++++++++++++++++ > =A0testing/strongswan/adns.patch =A0 =A0 =A0 | =A0 10 ++++++ > =A0testing/strongswan/strongswan.initd | =A0 31 ++++++++++++++++++++ > =A03 files changed, 95 insertions(+), 0 deletions(-) > =A0create mode 100644 testing/strongswan/APKBUILD > =A0create mode 100644 testing/strongswan/adns.patch > =A0create mode 100644 testing/strongswan/strongswan.initd > > diff --git a/testing/strongswan/APKBUILD b/testing/strongswan/APKBUILD > new file mode 100644 > index 0000000..4f7cede > --- /dev/null > +++ b/testing/strongswan/APKBUILD > @@ -0,0 +1,54 @@ > +# Contributor: > +# Maintainer: > +pkgname=3Dstrongswan > +pkgver=3D4.5.2 > +pkgrel=3D0 > +pkgdesc=3D"IPsec-based VPN solution focused on security and ease of use,= supporting IKEv1/IKEv2 and MOBIKE" > +url=3D"http://www.strongswan.org/" > +arch=3D"all" > +license=3D"GPL-2 RSA-MD5 RSA-PKCS11 DES" > +depends=3D"iproute2 openssl" > +depends_dev=3D > +makedepends=3D"sqlite-dev openssl-dev curl-dev gmp-dev $depends_dev" > +install=3D"" > +subpackages=3D"$pkgname-dev $pkgname-doc" > +source=3D"http://download.strongswan.org/$pkgname-$pkgver.tar.bz2 adns.p= atch strongswan.initd" > + > +_builddir=3D > +prepare() { > + =A0 =A0 =A0 local i > + =A0 =A0 =A0 cd "$srcdir/$pkgname-$pkgver" > + =A0 =A0 =A0 for i in $source; do > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 case $i in > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 *.patch) msg $i; patch -Np1 -i "$srcdir"/$i= || return 1;; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 esac > + =A0 =A0 =A0 done > +} > + > +build() { > + =A0 =A0 =A0 cd "$srcdir/$pkgname-$pkgver" > + =A0 =A0 =A0 =A0./configure =A0 =A0--prefix=3D/usr --sysconfdir=3D/etc -= -libexecdir=3D/usr/lib --with-ipsecdir=3D/usr/lib/strongswan \ > + =A0 =A0 =A0 =A0 --enable-pluto \ > + =A0 =A0 =A0 =A0 --enable-sqlite --enable-smartcard --enable-cisco-quirk= s \ > + =A0 =A0 =A0 =A0 --enable-openssl --enable-curl \ > + =A0 =A0 =A0 =A0 --enable-sql --enable-attr-sql \ > + =A0 =A0 =A0 =A0 --enable-farp --enable-dhcp \ > + =A0 =A0 =A0 =A0 --enable-eap-sim --enable-eap-sim-file --enable-eap-sim= aka-pseudonym \ > + =A0 =A0 =A0 =A0 --enable-eap-simaka-reauth --enable-eap-identity --enab= le-eap-md5 \ > + =A0 =A0 =A0 =A0 --disable-eap-gtc --enable-eap-aka --enable-eap-aka-3gp= p2 \ > + =A0 =A0 =A0 =A0 --enable-eap-mschapv2 --enable-eap-radius \ > + =A0 =A0 =A0 =A0 --enable-ha \ > + =A0 =A0 =A0 =A0 --disable-mysql --disable-ldap \ > + =A0 =A0 =A0 =A0 --disable-static --enable-shared || return 1 > + =A0 =A0 =A0 make || return 1 > +} > + > +package() { > + =A0 =A0 =A0 cd "$srcdir/$pkgname-$pkgver" > + =A0 =A0 =A0 make DESTDIR=3D"$pkgdir" install || return 1 > + =A0 =A0 =A0 install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init= .d/$pkgname" > +} > + > +md5sums=3D"ac33b8f849a274127f84df0838cae953 =A0strongswan-4.5.2.tar.bz2 > +64e8242e866ff9a99bdfae17d5d81e2a =A0adns.patch > +fb9822512d02f521af8812db22a5175e =A0strongswan.initd" > diff --git a/testing/strongswan/adns.patch b/testing/strongswan/adns.patc= h > new file mode 100644 > index 0000000..52c1852 > --- /dev/null > +++ b/testing/strongswan/adns.patch > @@ -0,0 +1,10 @@ > +--- a/src/pluto/adns.c > ++++ b/src/pluto/adns.c > +@@ -179,7 +179,7 @@ > + =A0 =A0 =A0 res_query(dname, class, type, answer, anslen) > + # define res_nclose(statp) res_close() > + > +-static struct __res_state *statp =3D &_res; > ++#define statp (&(_res)) > + > + #else /* !OLD_RESOLVER */ > diff --git a/testing/strongswan/strongswan.initd b/testing/strongswan/str= ongswan.initd > new file mode 100644 > index 0000000..156883f > --- /dev/null > +++ b/testing/strongswan/strongswan.initd > @@ -0,0 +1,31 @@ > +#!/sbin/runscript > + > +depend() { > + =A0 =A0 =A0 need net > + =A0 =A0 =A0 after firewall > +} > + > +start() { > + =A0 =A0 =A0 ebegin "Starting StrongSwan" > + =A0 =A0 =A0 ipsec start > + =A0 =A0 =A0 eend $? > +} > + > +stop () { > + =A0 =A0 =A0 ebegin "Stopping StrongSwan" > + =A0 =A0 =A0 ipsec stop > + =A0 =A0 =A0 eend $? > +} > +restart() { > + =A0 =A0 =A0 ebegin "Restarting StrongSwan" > + =A0 =A0 =A0 svc_stop > + =A0 =A0 =A0 sleep 2 > + =A0 =A0 =A0 svc_start > + =A0 =A0 =A0 eend $? > +} > + > +status() { > + =A0 =A0 =A0 ebegin "StrongSwan Status (verbose):" > + =A0 =A0 =A0 ipsec statusall > + =A0 =A0 =A0 eend $? > +} > -- > 1.7.4.5 > > > > --- > Unsubscribe: =A0alpine-devel+unsubscribe@lists.alpinelinux.org > Help: =A0 =A0 =A0 =A0 alpine-devel+help@lists.alpinelinux.org > --- > > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---