diff options
Diffstat (limited to 'community/xl2tpd/PKGBUILD')
-rw-r--r-- | community/xl2tpd/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community/xl2tpd/PKGBUILD b/community/xl2tpd/PKGBUILD new file mode 100644 index 000000000..ab66948f0 --- /dev/null +++ b/community/xl2tpd/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 44028 2011-04-01 16:50:43Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Hengfu <rhfcaesar@gmail.com> + +pkgname=xl2tpd +pkgver=1.2.8 +pkgrel=2 +pkgdesc="an open source implementation of the L2TP maintained by Xelerance Corporation" +arch=('i686' 'x86_64') +url="http://www.xelerance.com" +license=('GPL') +depends=('ppp') +options=(emptydirs zipman docs) +backup=(etc/ppp/options.l2tpd) +source=(ftp://ftp.xelerance.com/$pkgname/$pkgname-$pkgver.tar.gz + xl2tpd.rc + xl2tpd.conf.client-example + xl2tpd.conf.server-example + options.l2tpd + as-needed.patch + ipparam.patch) +md5sums=('8748ac5e2f5289963d9a908eede546b5' + '1439d13084fc09c2a19c97b24a834345' + '5f0ae07026e61a3dd15a76fd4144a6d5' + '16ed0886115d4dcc21072cfb847250bb' + 'ed57eb67335cdf246251285dad502cc7' + '867ec7085f61ae129748325a08561776' + '4d258a58cc109d5c4d96af8f81d481cf') + +build() { + cd "$srcdir/$pkgname-$pkgver" + +# patch -p0 <$srcdir/as-needed.patch + patch -p1 <$srcdir/ipparam.patch + + make KERNELSRC=/usr/src/linux-`uname -r` PREFIX=/usr + make KERNELSRC=/usr/src/linux-`uname -r` PREFIX=/usr DESTDIR=$pkgdir install + + install -D -m0755 $srcdir/xl2tpd.rc $pkgdir/etc/rc.d/xl2tpd + install -D -m0644 $srcdir/xl2tpd.conf.client-example $pkgdir/etc/xl2tpd/xl2tpd.conf.client-example + install -D -m0644 $srcdir/xl2tpd.conf.server-example $pkgdir/etc/xl2tpd/xl2tpd.conf.server-example + install -D -m0644 $srcdir/options.l2tpd $pkgdir/etc/ppp/options.l2tpd +} |