summaryrefslogtreecommitdiff
path: root/community/bird/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-07 10:52:21 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-07 10:52:21 -0300
commit404b7ff94ece6bb2ce0e9df042ac1fe798137c83 (patch)
tree240322ee16b033bd3b85f15b553bea0526d0b16e /community/bird/PKGBUILD
parent01b1bb8751b4819c5024328a206d6962b9ee30fb (diff)
parent99165f43e38ff3f1729388dcc261a152103d6f8d (diff)
Merge branch 'master' of ssh://gparabola/abslibre-mips64el
Diffstat (limited to 'community/bird/PKGBUILD')
-rw-r--r--community/bird/PKGBUILD75
1 files changed, 75 insertions, 0 deletions
diff --git a/community/bird/PKGBUILD b/community/bird/PKGBUILD
new file mode 100644
index 000000000..4fdea4990
--- /dev/null
+++ b/community/bird/PKGBUILD
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
+
+pkgbase=bird
+pkgname=('bird' 'bird6')
+pkgver=1.3.4
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://bird.network.cz/'
+license=('GPL2')
+depends=('readline' 'ncurses')
+source=("ftp://bird.network.cz/pub/bird/${pkgname}-${pkgver}.tar.gz"
+ 'bird.rc'
+ 'bird.conf'
+ 'bird.service'
+ 'bird6.service')
+md5sums=('20f5aa9d3f853d2c922438dc9d922ecc'
+ '1a4b98756d64f52333a83eff2e95d233'
+ '25241a4d7ef639506e0080431b2c1690'
+ 'e82a0519dca0b289685fda44787f5911'
+ 'c32e7f6cf1be6ed6f9aa98feea25176d')
+
+build() {
+ # different directory to build seprate version of bird
+ cp -a ${pkgbase}-${pkgver} ${pkgbase}6-${pkgver}
+
+ # build classic bird
+ cd ${pkgbase}-${pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+ make
+
+ # build ipv6 bird
+ cd "$srcdir/${pkgbase}6-${pkgver}"
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
+ make
+}
+
+package_bird () {
+ pkgdesc='RIP, OSPFv2 and BGP daemon'
+ backup=('etc/bird.conf')
+
+ # iniscripts files
+ install -D -m 755 bird.rc "${pkgdir}/etc/rc.d/bird"
+ install -D -m 644 bird.conf "${pkgdir}/etc/conf.d/bird"
+ # systemd file
+ install -D -m 644 bird.service "${pkgdir}/lib/systemd/system/bird.service"
+
+ cd ${pkgname}-${pkgver}
+ make prefix="${pkgdir}/usr" sysconfdir="${pkgdir}/etc" localstatedir="${pkgdir}/var" install
+ make docdir="${pkgdir}/usr/share/doc/${pkgname}" install-docs
+
+ # no /var inside pkg
+ rm -r "$pkgdir/var"
+}
+
+package_bird6 () {
+ pkgdesc='RIP, OSPFv3, RADV and BGP daemon (ipv6 version)'
+ backup=('etc/bird6.conf')
+
+ # iniscripts files
+ install -D -m 755 bird.rc "${pkgdir}/etc/rc.d/bird6"
+ install -D -m 644 bird.conf "${pkgdir}/etc/conf.d/bird6"
+ sed -ri 's/bird/bird6/' "${pkgdir}/etc/rc.d/bird6"
+ # systemd config file
+ install -D -m 644 bird6.service "${pkgdir}/lib/systemd/system/bird6.service"
+
+ cd ${pkgname}-${pkgver}
+ make prefix="${pkgdir}/usr" sysconfdir="${pkgdir}/etc" localstatedir="${pkgdir}/var" install
+ make docdir="${pkgdir}/usr/share/doc/${pkgname}" install-docs
+
+ # no /var inside pkg
+ rm -r "$pkgdir/var"
+}
+
+# vim:set ts=2 sw=2 ft=sh et: