blob: 0ab9337a415799845e46c7b9946d159655d4331f (
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
|
# Contributor: Francesco Zanini <francesco@zanini.me>
# Maintainer: Francesco Zanini <francesco@zanini.me>
pkgname=bird
pkgver=1.5.0
pkgrel=2
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
bird.initd"
_builddir="$srcdir"/bird-$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
# 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="330bde6372afa106abfe5a9737e471c1 bird-1.5.0.tar.gz
47e25c48363125156e8b61680685c1bc bird.initd"
sha256sums="79d5c4254e25f5890626830ca42aae03735716bdf152ddd8368473d2b3c17b5d bird-1.5.0.tar.gz
f32612cfb938b9c634163f1c0177ccd664b77661eb41c978a4a5a4e2941c63ef bird.initd"
sha512sums="6814a1393d192083bc9807fd9c56e4bfe169aa34b70811f10da61c79d2fd4b18827bd4f3ea70d9ceba32125e54afb3f8df388416bff619c6f7e838a171f70ae8 bird-1.5.0.tar.gz
0ac7aadd9ed5d736aa39f586002c0ccdaa71817abba09789fd36c773a029e98aee37b449a9c6917836ed495c3838356cdd871e7b1d4ad3dc8e68f18fdf6c3aab bird.initd"
|