# Template file for 'bird'
pkgname=bird
version=2.0.8
revision=1
wrksrc=bird-v$version
build_style=gnu-configure
hostmakedepends="flex autoconf"
makedepends="ncurses-devel readline-devel libssh-devel"
short_desc="BIRD Internet Routing Daemon"
maintainer="Philipp Hirsch <itself@hanspolo.net>"
license="GPL-2.0-or-later"
homepage="https://bird.network.cz"
distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c

conf_files="/etc/bird.conf"
system_accounts="_bird"

CFLAGS="-fcommon"

pre_configure() {
	autoreconf
}

post_install() {
	vsv bird
}
