diff options
Diffstat (limited to 'community/xl2tpd/PKGBUILD')
-rw-r--r-- | community/xl2tpd/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/xl2tpd/PKGBUILD b/community/xl2tpd/PKGBUILD new file mode 100644 index 000000000..2c513c4fb --- /dev/null +++ b/community/xl2tpd/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 91508 2013-05-23 10:16:34Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Hengfu <rhfcaesar@gmail.com> + +pkgname=xl2tpd +pkgver=1.3.1 +pkgrel=3 +pkgdesc="an open source implementation of the L2TP maintained by Xelerance Corporation" +arch=('i686' 'x86_64') +url="http://www.xelerance.com/services/software/xl2tpd/" +license=('GPL') +depends=('ppp') +options=(emptydirs zipman docs) +backup=(etc/ppp/options.l2tpd) +source=($pkgname-$pkgver.tar.gz::https://github.com/xelerance/xl2tpd/archive/v$pkgver.tar.gz + xl2tpd.conf.client-example + xl2tpd.conf.server-example + options.l2tpd + xl2tpd.service + xl2tpd.tmpfiles + ipparam.patch) +md5sums=('38c2461d3562f98b08454ca403706886' + '5f0ae07026e61a3dd15a76fd4144a6d5' + '16ed0886115d4dcc21072cfb847250bb' + 'ed57eb67335cdf246251285dad502cc7' + '219942dd098ce4fdba37d1db327baf57' + '2e95e4fc03e1521ab20fd7e249efab5a' + '4d258a58cc109d5c4d96af8f81d481cf') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + patch -p1 <$srcdir/ipparam.patch + + make KERNELSRC=/usr/src/linux-`uname -r` PREFIX=/usr SBINDIR=/usr/bin +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make KERNELSRC=/usr/src/linux-`uname -r` PREFIX=/usr DESTDIR=$pkgdir SBINDIR=$pkgdir/usr/bin install + + 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 + + install -Dm0644 $srcdir/xl2tpd.service $pkgdir/usr/lib/systemd/system/xl2tpd.service + install -Dm0644 $srcdir/xl2tpd.tmpfiles $pkgdir/usr/lib/tmpfiles.d/xl2tpd.conf +} |