blob: a7ae2d34f707e3b9efffe803ebbd2c40ec232d28 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=radvd
pkgver=1.12
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"
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"/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="6ba08c7fbd4b11df0957f6a0f756663b radvd-1.12.tar.gz
c0297515f242d8e8e890d4cdc38bc5b4 radvd-1.1-gnu-source.patch
ed1e493b9cd46b705886b8934ebc988f radvd.initd
7593b61c3198d961cc86dd5b85b9f44a radvd.confd"
sha256sums="286afd51612811a36c05876c46ccdcdcf4eae4ef5332a235b13f42bdc6301951 radvd-1.12.tar.gz
32fd5d866c895928448fe489dc078633eb994216cd4d4df5ff7a17e37bfba447 radvd-1.1-gnu-source.patch
382d0f02240b73fd6dc1e77a7dad0b355b83a643edb34aa44a1bd1ab6c6c9852 radvd.initd
a9c704a481fc7c24d4ed3e21aa6bf8979fca6e81b93d86a86b40e4433d03809c radvd.confd"
sha512sums="f74c3e5f0019b0700141238363a0abd9c0ed108a6c2efaed0a50445d9a6b4f7a3fdf3e75c2ca3903418de3feff72d12d4e40412dc086342e57a0bde8650b69e0 radvd-1.12.tar.gz
bf81eb28cc1960b79235f4d1524f27c81a0a1b6a552a750be537ce9a74134b01d0928f37039da278426cb79cff0c9a65517ce68913a2e4d3833d912e04448db2 radvd-1.1-gnu-source.patch
8b6342c11be3aa631b6f1a083c13bbc8d4fcc8a8ec3b47bae0a84b4f6be7e66fc877d657eab8af44e783b4bf3d99b2e4417e4a83117bdd09ba8bd68a5f04f35b radvd.initd
386a6cdee43a0aa157760a590b9daa52e06e2c344a8d191a188c6174281734df95b82121e92d3c01e6c0fe76658dbdf6467dee2b30e2e010fc57dc8e0666b2cc radvd.confd"
|