X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from tux29.hoststar.ch (tux29.hoststar.ch [85.10.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E92BF140D5E5 for ; Sat, 2 Jul 2011 15:58:04 +0000 (UTC) Received: from localhost.localdomain (77-56-73-198.dclient.hispeed.ch [77.56.73.198]) (authenticated bits=0) by tux29.hoststar.ch (8.13.8/8.12.11) with ESMTP id p62Fvx8e024940 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 2 Jul 2011 17:58:00 +0200 From: Fabian Affolter To: alpine-devel@lists.alpinelinux.org Cc: Fabian Affolter Subject: [alpine-devel] [PATCH] Initial APKBUILD file for xl2tpd Date: Sat, 2 Jul 2011 15:57:48 +0000 Message-Id: <1309622268-9378-1-git-send-email-fabian@affolter-engineering.ch> X-Mailer: git-send-email 1.7.4.5 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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. --- testing/xl2tpd/APKBUILD | 46 +++++++++++++++++++++++++++++++++++++++++++ testing/xl2tpd/xl2tpd.confd | 7 ++++++ testing/xl2tpd/xl2tpd.initd | 31 +++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 0 deletions(-) create mode 100644 testing/xl2tpd/APKBUILD create mode 100644 testing/xl2tpd/xl2tpd.confd create 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=xl2tpd +pkgver=1.2.8 +pkgrel=0 +pkgdesc="A layer 2 tunneling protocol daemon" +url="http://www.xelerance.com/services/software/xl2tpd/" +arch="all" +license="GPL2" +depends="ppp" +depends_dev="" +makedepends="libpcap-dev" +install="" +subpackages="$pkgname-doc" +source="ftp://ftp.xelerance.com/xl2tpd/$pkgname-$pkgver.tar.gz + $pkgname.initd + $pkgname.confd + " + +_builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + make \ + DESTDIR="$pkgdir" \ + PREFIX=/usr \ + MANDIR="$pkgdir"/usr/share/man \ + install || return 1 + + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + install -m644 -D "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/$pkgname || return 1 + # Install sample configuration file + install -m755 -D "$srcdir"/$pkgname-$pkgver/examples/$pkgname.conf \ + "$pkgdir"/etc/$pkgname/$pkgname.conf || return 1 +} + +md5sums="8748ac5e2f5289963d9a908eede546b5 xl2tpd-1.2.8.tar.gz +a6228e5a9894209ba3b0e7ca063fe722 xl2tpd.initd +cbcac88f5b728b1441891947a4babbcb xl2tpd.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="" 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. + +name=xl2tpd +daemon=/usr/sbin/$name +user=nobody +group=nobody + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --pidfile /var/run/${name}.pid \ + --chuid ${user}:${group} \ + --exec ${daemon} -- ${sample_opts} + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/$name.pid \ + --exec ${daemon} + eend $? +} + -- 1.7.4.5 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---