X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 3C609142396B for ; Sun, 3 Jul 2011 18:12:22 +0000 (UTC) Received: by ywf7 with SMTP id 7so2293527ywf.13 for ; Sun, 03 Jul 2011 11:12:16 -0700 (PDT) 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.236.115.163 with SMTP id e23mr5994573yhh.287.1309716736179; Sun, 03 Jul 2011 11:12:16 -0700 (PDT) Received: by 10.236.176.74 with HTTP; Sun, 3 Jul 2011 11:12:16 -0700 (PDT) In-Reply-To: <1309622268-9378-1-git-send-email-fabian@affolter-engineering.ch> References: <1309622268-9378-1-git-send-email-fabian@affolter-engineering.ch> Date: Sun, 3 Jul 2011 13:12:16 -0500 Message-ID: Subject: Re: [alpine-devel] [PATCH] Initial APKBUILD file for xl2tpd From: William Pitcock To: Fabian Affolter Cc: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi, On Sat, Jul 2, 2011 at 10:57 AM, Fabian Affolter wrote: > > This package was requested in ticket #699. > > Package description > xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661)= . > L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user > sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP > servers. Another important application is Virtual Private Networks where > the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec, > RFC 3193). The L2TP/IPsec protocol is mainly used by Windows and > Mac OS X clients. On Linux, xl2tpd can be used in combination with IPsec > implementations such as Openswan. > --- > =A0testing/xl2tpd/APKBUILD =A0 =A0 | =A0 46 +++++++++++++++++++++++++++++= ++++++++++++++ > =A0testing/xl2tpd/xl2tpd.confd | =A0 =A07 ++++++ > =A0testing/xl2tpd/xl2tpd.initd | =A0 31 +++++++++++++++++++++++++++++ > =A03 files changed, 84 insertions(+), 0 deletions(-) > =A0create mode 100644 testing/xl2tpd/APKBUILD > =A0create mode 100644 testing/xl2tpd/xl2tpd.confd > =A0create mode 100644 testing/xl2tpd/xl2tpd.initd > > diff --git a/testing/xl2tpd/APKBUILD b/testing/xl2tpd/APKBUILD > new file mode 100644 > index 0000000..80adeb8 > --- /dev/null > +++ b/testing/xl2tpd/APKBUILD > @@ -0,0 +1,46 @@ > +# Contributor: Fabian Affolter > +# Maintainer: > +pkgname=3Dxl2tpd > +pkgver=3D1.2.8 > +pkgrel=3D0 > +pkgdesc=3D"A layer 2 tunneling protocol daemon" > +url=3D"http://www.xelerance.com/services/software/xl2tpd/" > +arch=3D"all" > +license=3D"GPL2" > +depends=3D"ppp" > +depends_dev=3D"" > +makedepends=3D"libpcap-dev" > +install=3D"" > +subpackages=3D"$pkgname-doc" > +source=3D"ftp://ftp.xelerance.com/xl2tpd/$pkgname-$pkgver.tar.gz > + =A0 =A0 =A0 $pkgname.initd > + =A0 =A0 =A0 $pkgname.confd > + =A0 =A0 =A0 " > + > +_builddir=3D"$srcdir"/$pkgname-$pkgver > + > +build() { > + =A0 =A0 =A0 cd "$_builddir" > + =A0 =A0 =A0 make || return 1 > +} > + > +package() { > + =A0 =A0 =A0 cd "$_builddir" > + =A0 =A0 =A0 make \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 DESTDIR=3D"$pkgdir" \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 PREFIX=3D/usr \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 MANDIR=3D"$pkgdir"/usr/share/man \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 install || return 1 > + > + =A0 =A0 =A0 install -m755 -D "$srcdir"/$pkgname.initd \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 "$pkgdir"/etc/init.d/$pkgname || return 1 > + =A0 =A0 =A0 install -m644 -D "$srcdir"/$pkgname.confd \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 "$pkgdir"/etc/conf.d/$pkgname || return 1 > + =A0 =A0 =A0 # Install sample configuration file > + =A0 =A0 =A0 install -m755 -D "$srcdir"/$pkgname-$pkgver/examples/$pkgna= me.conf \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 "$pkgdir"/etc/$pkgname/$pkgname.conf || ret= urn 1 if the package example configuration is useful, then you should install it as a default configuration. > > +} > + > +md5sums=3D"8748ac5e2f5289963d9a908eede546b5 =A0xl2tpd-1.2.8.tar.gz > +a6228e5a9894209ba3b0e7ca063fe722 =A0xl2tpd.initd > +cbcac88f5b728b1441891947a4babbcb =A0xl2tpd.confd" > diff --git a/testing/xl2tpd/xl2tpd.confd b/testing/xl2tpd/xl2tpd.confd > new file mode 100644 > index 0000000..486252b > --- /dev/null > +++ b/testing/xl2tpd/xl2tpd.confd > @@ -0,0 +1,7 @@ > +# Sample conf.d file for alpine linux > + > +# > +# Specify daemon options here. > +# > + > +sample_opts=3D"" this should be renamed to either 'opts' or 'xl2tpd_opts'.=A0 it may be additionally helpful to list commonly used options. > > diff --git a/testing/xl2tpd/xl2tpd.initd b/testing/xl2tpd/xl2tpd.initd > new file mode 100644 > index 0000000..4b338c6 > --- /dev/null > +++ b/testing/xl2tpd/xl2tpd.initd > @@ -0,0 +1,31 @@ > +#!/sbin/runscript > + > +# Sample init.d file for alpine linux. please remove this comment. > + > +name=3Dxl2tpd > +daemon=3D/usr/sbin/$name > +user=3Dnobody > +group=3Dnobody > + > +depend() { > + =A0 =A0 =A0 need net > + =A0 =A0 =A0 after firewall > +} > + > +start() { > + =A0 =A0 =A0 ebegin "Starting ${name}" > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 start-stop-daemon --start --quiet \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 --pidfile /var/run/${name}.= pid \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 --chuid ${user}:${group} \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 --exec ${daemon} -- ${sampl= e_opts} ${sample_opts} needs to be renamed to ${xl2tpd_opts} as mentioned above. > + =A0 =A0 =A0 eend $? > +} > + > +stop() { > + =A0 =A0 =A0 ebegin "Stopping ${name}" > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 start-stop-daemon --stop --quiet \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 --pidfile /var/run/$name.pi= d \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 --exec ${daemon} > + =A0 =A0 =A0 eend $? > +} > + > -- > 1.7.4.5 > otherwise it looks fine. however, maintainer field is blank, so it won't be able to leave testing without a maintainer. william --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---