PKGBUILDs/extra/bird/PKGBUILD

96 lines
2.2 KiB
Bash
Raw Normal View History

2013-11-10 20:04:32 +00:00
# $Id$
# Maintainer: Sébastien Luttringer
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - Use -fno-strict-aliasing in flags
pkgbase=bird
pkgname=('bird' 'bird6')
2016-10-09 15:09:20 +00:00
pkgver=1.6.2
2016-05-01 00:49:22 +00:00
pkgrel=1
2013-11-10 20:04:32 +00:00
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.service'
'bird6.service')
2016-10-09 15:09:20 +00:00
md5sums=('36bc84db93ae7a2fe10194075331e1b9'
2013-11-10 20:04:32 +00:00
'69221e063a3f07dcad519d5eeacaae75'
'5b172bd052b523efd95ee018e891e181')
build() {
cd $pkgbase-$pkgver
[[ -e _build4 ]] && rm -rf _build4
[[ -e _build6 ]] && rm -rf _build6
mkdir _build4 _build6
CFLAGS="${CFLAGS} -fno-strict-aliasing"
CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
# build ipv4 bird
cd _build4
../configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--docdir=/usr/share/doc/$pkgname
make
# build ipv6 bird
cd ../_build6
../configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--docdir=/usr/share/doc/$pkgname \
--enable-ipv6
make
}
package_bird () {
pkgdesc='RIP, OSPFv2 and BGP daemon (ipv4 version)'
backup=('etc/bird.conf')
cd $pkgbase-$pkgver/_build4
make \
prefix="$pkgdir/usr" \
sysconfdir="$pkgdir/etc" \
sbindir="$pkgdir/usr/bin" \
localstatedir="$pkgdir/var" \
docdir="$pkgdir/usr/share/doc/$pkgname" \
install
#make docdir="$pkgdir/usr/share/doc/$pkgname" install-docs
# no /var inside pkg
rm -r "$pkgdir/var"
# systemd
install -D -m 644 "$srcdir/bird.service" "$pkgdir/usr/lib/systemd/system/bird.service"
}
package_bird6 () {
pkgdesc='RIP, OSPFv3, RADV and BGP daemon (ipv6 version)'
backup=('etc/bird6.conf')
cd $pkgbase-$pkgver/_build6
make \
prefix="$pkgdir/usr" \
sysconfdir="$pkgdir/etc" \
sbindir="$pkgdir/usr/bin" \
localstatedir="$pkgdir/var" \
docdir="$pkgdir/usr/share/doc/$pkgname" \
install
#make docdir="$pkgdir/usr/share/doc/$pkgname" install-docs
# no /var inside pkg
rm -r "$pkgdir/var"
# systemd
install -D -m 644 "$srcdir/bird6.service" "$pkgdir/usr/lib/systemd/system/bird6.service"
}
# vim:set ts=2 sw=2 et: