diff options
author | Danilo Godec <danilo.godec@agenda.si> | 2011-08-10 14:33:35 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-10 12:46:50 +0000 |
commit | 42f4081808f74b2a05472cc10db272b783e97180 (patch) | |
tree | 007feb0e336a3ae138d7dcf8c749d8ce0d1933a1 /testing/xl2tpd/APKBUILD | |
parent | c9cbb91fa817542d5d03c165dfa072dcc11bc6c8 (diff) | |
download | aports-42f4081808f74b2a05472cc10db272b783e97180.tar.bz2 aports-42f4081808f74b2a05472cc10db272b783e97180.tar.xz |
testing/xl2tpd
xl2tpd is a Layer 2 Tunnelling Protocol Daemon (RFC 2661)
Diffstat (limited to 'testing/xl2tpd/APKBUILD')
-rw-r--r-- | testing/xl2tpd/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/xl2tpd/APKBUILD b/testing/xl2tpd/APKBUILD new file mode 100644 index 0000000000..a548c72fc3 --- /dev/null +++ b/testing/xl2tpd/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Danilo Godec <danilo.godec@agenda.si> +# Maintainer: +pkgname=xl2tpd +pkgver=1.3.0 +pkgrel=0 +pkgdesc="Layer 2 Tunnelling Protocol Daemon (RFC 2661)" +url="http://www.xelerance.com/services/software/xl2tpd/" +arch="all" +license="GPL" +depends="" +depends_dev="libpcap-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://www.xelerance.com/wp-content/uploads/software/$pkgname/$pkgname-$pkgver.tar.gz xl2tpd.confd xl2tpd.initd options.l2tp" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make PREFIX=/usr || return 1 +} + +package() { + cd "$_builddir" + make PREFIX=/usr DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -Dm644 examples/xl2tpd.conf "$pkgdir"/etc/xl2tpd/xl2tpd.conf + install -Dm755 "$srcdir"/xl2tpd.initd "$pkgdir"/etc/init.d/xl2tpd + install -Dm644 "$srcdir"/xl2tpd.confd "$pkgdir"/etc/conf.d/xl2tpd + install -Dm644 "$srcdir"/options.l2tp "$pkgdir"/etc/ppp/options.l2tp + install -dm755 "$pkgdir"/var/run/xl2tpd +} + +md5sums="28264284552c442b24cf421755a2bb48 xl2tpd-1.3.0.tar.gz +0032d104bd2d993b8a514c2f898d1dd9 xl2tpd.confd +77e4364f4e726549b6e74aec2b1ccd39 xl2tpd.initd +8f1a2896d08b6353424013cf7247dc7d options.l2tp" |