# Contributor: Francesco Zanini # Maintainer: Francesco Zanini pkgname=bird pkgver=1.5.0 pkgrel=0 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"