aboutsummaryrefslogtreecommitdiffstats
path: root/main/radvd/APKBUILD
blob: e7dd83876bda0dddaa44c478098a9cbb8fe0eb0f (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
64
65
66
67
68
69
70
71
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=radvd
pkgver=2.11
pkgrel=0
pkgdesc="A Router Advertisement daemon"
url="http://www.litech.org/radvd/"
arch="all"
license="BSD with advertising"
depends=""
depends_dev=""
makedepends="flex bison libdaemon-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://www.litech.org/radvd/dist/radvd-$pkgver.tar.gz
	radvd-1.1-gnu-source.patch
	fix-arp-hardware-identifiers.patch
	radvd.initd
	radvd.confd
	"

_builddir="$srcdir"/radvd-$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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/ \
		--with-pidfile=/var/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
	mkdir -p "$pkgdir"/var/run/radvd

	install -Dm755 "$srcdir"/radvd.initd "$pkgdir"/etc/init.d/radvd \
		|| return 1
	install -Dm644 "$srcdir"/radvd.confd "$pkgdir"/etc/conf.d/radvd \
		|| return 1
}

md5sums="57fc6021f6a5e5472e455937685472a3  radvd-2.11.tar.gz
c0297515f242d8e8e890d4cdc38bc5b4  radvd-1.1-gnu-source.patch
412b6661e6aad46a9182d377411b0077  fix-arp-hardware-identifiers.patch
f5e68a53b65c11c220edf741f348c38d  radvd.initd
7593b61c3198d961cc86dd5b85b9f44a  radvd.confd"
sha256sums="80ad60b15689e9591a5af393a57a1d93304deeff2e46482f0fd98046c00622f8  radvd-2.11.tar.gz
32fd5d866c895928448fe489dc078633eb994216cd4d4df5ff7a17e37bfba447  radvd-1.1-gnu-source.patch
c7fb2c498905f85f49d6243827aa95ac179c0fa924a7fa20bb41fdbccf125b31  fix-arp-hardware-identifiers.patch
00456f27ab7240fc6f2b8ae16a3790f5b90dbf509c49ceea46c75a9040bf55b9  radvd.initd
a9c704a481fc7c24d4ed3e21aa6bf8979fca6e81b93d86a86b40e4433d03809c  radvd.confd"
sha512sums="35fc641b81cc76de677c8e55a61c8b28d9167d8f40a3fa7adf2a254293ca2d7856ca2c8f6d3bdba391bf873345d3019c0f572ee166eaba011ae874b176c85d4b  radvd-2.11.tar.gz
bf81eb28cc1960b79235f4d1524f27c81a0a1b6a552a750be537ce9a74134b01d0928f37039da278426cb79cff0c9a65517ce68913a2e4d3833d912e04448db2  radvd-1.1-gnu-source.patch
d554ef79974ef8a9caedb5410f43ce04d8136020c4d268d3ab13dadf8d58f00940f294c487c8c971801e6b57791de9056ff9769f8cceaaf22b3c460913c25904  fix-arp-hardware-identifiers.patch
41d9702464c8c992b06ca85993ba921001a33835c37d4c30077084957a7b87e27eec8a50b903c696e95252c8e6bea79483694b8a3ef06b124d3935a462ba2f1a  radvd.initd
386a6cdee43a0aa157760a590b9daa52e06e2c344a8d191a188c6174281734df95b82121e92d3c01e6c0fe76658dbdf6467dee2b30e2e010fc57dc8e0666b2cc  radvd.confd"