aboutsummaryrefslogtreecommitdiffstats
path: root/main/radvd/APKBUILD
blob: 08a117045ad185d74790bd466707e0835b793278 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=radvd
pkgver=2.15
pkgrel=0
pkgdesc="A Router Advertisement daemon"
url="http://www.litech.org/radvd/"
arch="all"
license="BSD with advertising"
depends=""
makedepends="flex bison libdaemon-dev linux-headers"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="http://www.litech.org/radvd/dist/radvd-$pkgver.tar.gz
	radvd-1.1-gnu-source.patch
	radvd.initd
	radvd.confd
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/ \
		--with-pidfile=/run/radvd/radvd.pid \
		|| return 1
	# work around parallel build issue
	make gram.h && make || return 1
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
	install -Dm755 "$srcdir"/radvd.initd "$pkgdir"/etc/init.d/radvd \
		|| return 1
	install -Dm644 "$srcdir"/radvd.confd "$pkgdir"/etc/conf.d/radvd \
		|| return 1
	install -Dm644 radvd.conf.example \
		"$pkgdir"/usr/share/doc/radvd/radvd.conf.example || return 1
}

md5sums="2f9b0881e6f987b6525005bb1ceaa2fc  radvd-2.15.tar.gz
c0297515f242d8e8e890d4cdc38bc5b4  radvd-1.1-gnu-source.patch
ad743581b31f4e6df57a94aa60de92c5  radvd.initd
7593b61c3198d961cc86dd5b85b9f44a  radvd.confd"
sha256sums="83dd770595e6182757fd652cfc46ee462b73d8d34ba0848a1d481c4d51143607  radvd-2.15.tar.gz
32fd5d866c895928448fe489dc078633eb994216cd4d4df5ff7a17e37bfba447  radvd-1.1-gnu-source.patch
2a5dd73066cf5bf1f3e318f3ff49a3ecdd801579feab70fa96ff1dfbfc8d9b2c  radvd.initd
a9c704a481fc7c24d4ed3e21aa6bf8979fca6e81b93d86a86b40e4433d03809c  radvd.confd"
sha512sums="51ed457814f32750f915e22556c739d0a574af6318d469ae77c42fb7dfce8752edc2b70e3dd910d46c6198a5a81e4be4611dd4e379920488f4d4427cda0a7ea0  radvd-2.15.tar.gz
bf81eb28cc1960b79235f4d1524f27c81a0a1b6a552a750be537ce9a74134b01d0928f37039da278426cb79cff0c9a65517ce68913a2e4d3833d912e04448db2  radvd-1.1-gnu-source.patch
5f96261f3914ff10966828231d1c8df0d7b0e432d5e075eb6405f923a25f1218e647ec8a2c5b7fa995cf44cc521fd226b4bacfe86920d108130852f00623d8c5  radvd.initd
386a6cdee43a0aa157760a590b9daa52e06e2c344a8d191a188c6174281734df95b82121e92d3c01e6c0fe76658dbdf6467dee2b30e2e010fc57dc8e0666b2cc  radvd.confd"