blob: d9460a0c1bfbf5081d5371709b48d2e134289f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xl2tpd
pkgver=1.3.14
pkgrel=0
pkgdesc="Layer 2 Tunnelling Protocol Daemon (RFC 2661)"
url="https://github.com/xelerance/xl2tpd/releases/tag/v1.3.14"
arch="all"
license="GPL-2.0-or-later"
depends="ppp-l2tp"
makedepends="libpcap-dev linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xelerance/xl2tpd/archive/v$pkgver.tar.gz
xl2tpd.confd
xl2tpd.initd
options.xl2tpd
"
build() {
cd "$builddir"
make PREFIX=/usr
}
package() {
cd "$builddir"
make PREFIX=/usr DESTDIR="$pkgdir" install
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.xl2tpd "$pkgdir"/etc/ppp/options.xl2tpd
install -dm755 "$pkgdir"/var/run/xl2tpd
}
sha512sums="a0c007b5a2d45f4c73d8651c8ca2525cd46b779e4b8cfabebd2c7905770d128f25edea5665c25828c53788083fda73896faccb49f4da9a38a2042b5f957a3327 xl2tpd-1.3.14.tar.gz
1d0924d71b96b6bbaccbdcb11468047d02126d01650b7379923489a39976559e10f0167848608586de689fbbf5ba7d8c584f5443f9b4731501f7bf54b1142b44 xl2tpd.confd
35155e758fe0404d7850600c9c0bcdd17e74cd2b95dea3d21761fbb3032757dccde42a9e34d68822c96f3c0fca475223e2f842e9067a99293f3668d99e858084 xl2tpd.initd
04b1c4bf07ef5e74efa49d627bb085ee76d2543f6e69312aab4d183297210831f2d9da66dd8ad7ec75d69ada1f30e4faf4c4b275d2fe9f75e4b496cf55426198 options.xl2tpd"
|