# Contributor: Danilo Godec # Maintainer: Natanael Copa pkgname=xl2tpd pkgver=1.3.6 pkgrel=1 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 linux-headers" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/xelerance/xl2tpd/archive/v$pkgver.tar.gz xl2tpd.confd xl2tpd.initd options.l2tp xl2tpd-compile.patch" _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="2f526cc0c36cf6d8a74f1fb2e08c18ec xl2tpd-1.3.6.tar.gz 0032d104bd2d993b8a514c2f898d1dd9 xl2tpd.confd b711d36939e26bc382411a871d5950d7 xl2tpd.initd 8f1a2896d08b6353424013cf7247dc7d options.l2tp 603a366ded106e7a38c269fd7f2ac84e xl2tpd-compile.patch" sha256sums="49b069aa8d873e1d8f615ccc4212351e427bf681ba453fdd211256a8345bb7fb xl2tpd-1.3.6.tar.gz 26865d5ddf660cbba6c0e7a640512745497c89ec233658326699ebb44607e53d xl2tpd.confd 7a7204cfe9c0ef7108ce12d12ec133dc9288fda68303b0da47c96d541d9e7256 xl2tpd.initd 5efe8fc378b3fd435961c510d2dc416d775672b9531fe9c713be9024fa852063 options.l2tp 7c73a130132912a0f8ad3feca4b2c75d6e77f0a10e2e5077a6bbedb2fd6e8b3a xl2tpd-compile.patch" sha512sums="868c65660e6a45fb8dc22b95542e9d6ca0dc8e5033cc9df04171a651ef273bc5d711a85f61d4a971d714089f7a10ee67460d8ab9f3c007fcffe0e11e81ae0bfd xl2tpd-1.3.6.tar.gz 1d0924d71b96b6bbaccbdcb11468047d02126d01650b7379923489a39976559e10f0167848608586de689fbbf5ba7d8c584f5443f9b4731501f7bf54b1142b44 xl2tpd.confd 35155e758fe0404d7850600c9c0bcdd17e74cd2b95dea3d21761fbb3032757dccde42a9e34d68822c96f3c0fca475223e2f842e9067a99293f3668d99e858084 xl2tpd.initd 50e01a2e6b397a210789a2b782a4fca01d950ebe41bc5cbb1d185c2e216b722e89b9bc7affc0194089d4c54c90a49f1a773519cc96d83f2dbd8f64c49e565109 options.l2tp 1b965771f796e05a561e417555cd09b64629ecab56e93e1459560b00e5367d0e9cd2135182817e6a7f38c944290bdbd0e10fa864a2d83127a8a6cdace11cec57 xl2tpd-compile.patch"