blob: 7ac31a4bef4b3f4a8ddb20b8fcdfd90f5bea9be4 (
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
72
73
74
75
76
77
78
79
80
|
# Contributor: Francesco Zanini <francesco@zanini.me>
# Maintainer: Francesco Zanini <francesco@zanini.me>
pkgname=bird
pkgver=1.6.0
pkgrel=1
pkgdesc="BIRD Internet Routing Daemon"
url="http://bird.network.cz/"
arch="all"
license="GPLv2+"
depends=""
makedepends="bison flex ncurses-dev readline-dev linux-headers"
install=""
subpackages="bird6"
source="ftp://bird.network.cz/pub/bird/bird-$pkgver.tar.gz
fix-msghdr.patch
bird.initd"
builddir="$srcdir"/bird-$pkgver
prepare() {
cd "$builddir"
default_prepare || return 1
update_config_guess || return 1
# generate bird6.initd
cd "$srcdir"
sed -e 's/^name=.*/name=bird6/' bird.initd > bird6.initd
}
_build() {
../configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
$@ \
|| return 1
make || return 1
}
build() {
cd "$builddir"
mkdir -p ipv6 ipv4
cd "$builddir"/ipv6
_build --enable-ipv6 || return 1
cd "$builddir"/ipv4
_build || return 1
}
package() {
cd "$builddir"/ipv4
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"/ipv6
make DESTDIR="$pkgdir" install || return 1
for i in bird bird6; do
install -Dm755 "$srcdir"/$i.initd "$pkgdir"/etc/init.d/$i \
|| return 1
done
}
bird6() {
pkgdesc="BIRD Internet Routing Daemon for IPv6"
mkdir -p "$subpkgdir"/etc \
"$subpkgdir"/etc/init.d \
"$subpkgdir"/usr/sbin || return 1
mv "$pkgdir"/etc/*6.conf "$subpkgdir"/etc/ || return 1
for i in etc/init.d usr/sbin; do
mv "$pkgdir"/$i/*6 "$subpkgdir"/$i/ || return 1
done
}
md5sums="4c92ec3548a2a120243879b6ef7046dd bird-1.6.0.tar.gz
88aa02acc313db1fc1a4debbd2679c6c fix-msghdr.patch
47e25c48363125156e8b61680685c1bc bird.initd"
sha256sums="db3dfe37deac73b38b7d6966e577985f7b8e23f246760cb095ad13b0d8010e13 bird-1.6.0.tar.gz
a96a3a13d18bc889f320efb17ec5283e811707184e5344c6b7709c8c6ba73c8a fix-msghdr.patch
f32612cfb938b9c634163f1c0177ccd664b77661eb41c978a4a5a4e2941c63ef bird.initd"
sha512sums="3b73c5aa26ac725547d8ff67c35008b6793ef4dc9f22940bacc3871f60abb77e41d93bef0e493d5808eea455e17a04bbba837f16665d726a0a80e73270fed67a bird-1.6.0.tar.gz
1c3ab14afaae70d320ac8021a47091a0ed7a0745bedd616b39d9cec8855f294e0cbff437588b856c8e58e476b72d661c33bf3c726a520ab7c3dbe274788e9993 fix-msghdr.patch
0ac7aadd9ed5d736aa39f586002c0ccdaa71817abba09789fd36c773a029e98aee37b449a9c6917836ed495c3838356cdd871e7b1d4ad3dc8e68f18fdf6c3aab bird.initd"
|