aboutsummaryrefslogtreecommitdiffstats
path: root/main/xl2tpd/APKBUILD
blob: 1c07cba970cd8fe45a3f9f93d5f9edc45945b99e (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.15
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="f65c7f2f1c03728d825b8857baa0c2297e9d5dbd97a2375484a32851326db5951deb9bf3598cbec860f0787d1bb577b4f0a47372e3244fd92c8bad7ce684889b  xl2tpd-1.3.15.tar.gz
1d0924d71b96b6bbaccbdcb11468047d02126d01650b7379923489a39976559e10f0167848608586de689fbbf5ba7d8c584f5443f9b4731501f7bf54b1142b44  xl2tpd.confd
35155e758fe0404d7850600c9c0bcdd17e74cd2b95dea3d21761fbb3032757dccde42a9e34d68822c96f3c0fca475223e2f842e9067a99293f3668d99e858084  xl2tpd.initd
04b1c4bf07ef5e74efa49d627bb085ee76d2543f6e69312aab4d183297210831f2d9da66dd8ad7ec75d69ada1f30e4faf4c4b275d2fe9f75e4b496cf55426198  options.xl2tpd"