aboutsummaryrefslogtreecommitdiffstats
path: root/main/xl2tpd/APKBUILD
blob: 0dd0a02cfb6abfc3369065ff651832555c4bca36 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xl2tpd
pkgver=1.3.9
pkgrel=0
pkgdesc="Layer 2 Tunnelling Protocol Daemon (RFC 2661)"
url="http://www.xelerance.com/services/software/xl2tpd/"
arch="all"
license="GPL"
depends="ppp-l2tp"
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.xl2tpd
	"

_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.xl2tpd "$pkgdir"/etc/ppp/options.xl2tpd
	install -dm755 "$pkgdir"/var/run/xl2tpd
}

md5sums="63cf72f01cfdba3e5220384ae959844b  xl2tpd-1.3.9.tar.gz
0032d104bd2d993b8a514c2f898d1dd9  xl2tpd.confd
b711d36939e26bc382411a871d5950d7  xl2tpd.initd
46ebd6ac6ba0e9e86230eb120428fefb  options.xl2tpd"
sha256sums="62f683ab4cda2941261e37828f2939b5a2e85b437e9a3cd86bbd660c26e04a1e  xl2tpd-1.3.9.tar.gz
26865d5ddf660cbba6c0e7a640512745497c89ec233658326699ebb44607e53d  xl2tpd.confd
7a7204cfe9c0ef7108ce12d12ec133dc9288fda68303b0da47c96d541d9e7256  xl2tpd.initd
49d4149e75de07bf58c716848e31e4c96d977ed7a77303489fec91b69a0484b0  options.xl2tpd"
sha512sums="858e342e3f5b9c460c8fd041cb2873c79dbb9fbef1e5caf8c367a6c74ca175c2a020a4b152757892c24950eebf701324c0ba682eafd23cd370d36da7118cb3d9  xl2tpd-1.3.9.tar.gz
1d0924d71b96b6bbaccbdcb11468047d02126d01650b7379923489a39976559e10f0167848608586de689fbbf5ba7d8c584f5443f9b4731501f7bf54b1142b44  xl2tpd.confd
35155e758fe0404d7850600c9c0bcdd17e74cd2b95dea3d21761fbb3032757dccde42a9e34d68822c96f3c0fca475223e2f842e9067a99293f3668d99e858084  xl2tpd.initd
04b1c4bf07ef5e74efa49d627bb085ee76d2543f6e69312aab4d183297210831f2d9da66dd8ad7ec75d69ada1f30e4faf4c4b275d2fe9f75e4b496cf55426198  options.xl2tpd"