void-packages/srcpkgs/bird/template
2018-07-04 20:18:29 +02:00

51 lines
1 KiB
Bash

# Template file for 'bird'
pkgname=bird
version=1.6.4
revision=1
wrksrc="bird-v${version}"
build_style=gnu-configure
configure_args="--sbindir=/usr/bin"
hostmakedepends="flex autoconf"
makedepends="ncurses-devel readline-devel"
short_desc="The BIRD Internet Routing Daemon"
maintainer="Philipp Hirsch <itself@hanspolo.net>"
license="GPL-3.0-or-later"
homepage="http://bird.network.cz"
distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
conf_files="/etc/bird.conf /etc/bird6.conf"
checksum=cb7f3c8bb10e329dbe75251de50133aacd3b8ec25a18940c4a39ec3ac2490f73
pre_configure() {
mkdir -p /tmp/bird6
cp -a $wrksrc/* /tmp/bird6
mv /tmp/bird6 $wrksrc/bird6
}
do_configure() {
# bird
autoreconf
./configure ${configure_args}
# bird6
cd bird6
autoreconf
./configure ${configure_args} --enable-ipv6
}
do_build() {
# bird
make ${makejobs}
# bird6
cd bird6
make ${makejobs}
}
do_install() {
make DESTDIR=$DESTDIR install
vsv bird
cd bird6
make DESTDIR=$PKGDESTDIR install
vsv bird6
}