aboutsummaryrefslogtreecommitdiffstats
path: root/main/xl2tpd/APKBUILD
blob: 16b31158df8ab36d0010144f21ddb584068d9e8c (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
60
61
62
63
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xl2tpd
pkgver=1.3.7
pkgrel=2
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
	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.xl2tpd "$pkgdir"/etc/ppp/options.xl2tpd
	install -dm755 "$pkgdir"/var/run/xl2tpd
}

md5sums="740b3b59209c59a181cebae55468355a  xl2tpd-1.3.7.tar.gz
0032d104bd2d993b8a514c2f898d1dd9  xl2tpd.confd
b711d36939e26bc382411a871d5950d7  xl2tpd.initd
46ebd6ac6ba0e9e86230eb120428fefb  options.xl2tpd
1bdd15a5eb68077abc2b9803358b1e00  xl2tpd-compile.patch"
sha256sums="4159e28ac66bf1849f1586828aee0b7bc64820ac8ebb8923c264b91ff532ddf0  xl2tpd-1.3.7.tar.gz
26865d5ddf660cbba6c0e7a640512745497c89ec233658326699ebb44607e53d  xl2tpd.confd
7a7204cfe9c0ef7108ce12d12ec133dc9288fda68303b0da47c96d541d9e7256  xl2tpd.initd
49d4149e75de07bf58c716848e31e4c96d977ed7a77303489fec91b69a0484b0  options.xl2tpd
d9f9917a9ab4b536b95ecc04e6c282035717ad6fec4b0e8ab69d4155aadf494f  xl2tpd-compile.patch"
sha512sums="4a000e47943d524f421693fc78962460680bc3dfb6ce95212e6a0776d4264f0038385d63de97ec19c9768133e08cc2648c8ca223ed52efe0e61c021a5da50094  xl2tpd-1.3.7.tar.gz
1d0924d71b96b6bbaccbdcb11468047d02126d01650b7379923489a39976559e10f0167848608586de689fbbf5ba7d8c584f5443f9b4731501f7bf54b1142b44  xl2tpd.confd
35155e758fe0404d7850600c9c0bcdd17e74cd2b95dea3d21761fbb3032757dccde42a9e34d68822c96f3c0fca475223e2f842e9067a99293f3668d99e858084  xl2tpd.initd
04b1c4bf07ef5e74efa49d627bb085ee76d2543f6e69312aab4d183297210831f2d9da66dd8ad7ec75d69ada1f30e4faf4c4b275d2fe9f75e4b496cf55426198  options.xl2tpd
513fc2b7ccbf271aecec182ed41dea7ebb6eea1551e77aef672d737c8ecb043a12feee39804ee63d55841d045d087cbb79ca4ddcd5e5509f63b2d26e8f9e55d3  xl2tpd-compile.patch"