# Template file for 'radvd'
pkgname=radvd
version=2.21
revision=1
build_style=gnu-configure
hostmakedepends="flex pkg-config"
checkdepends="check-devel"
short_desc="IPv6 Router Advertisement Daemon"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="radvd"
homepage="http://www.litech.org/radvd/"
distfiles="https://github.com/radvd-project/radvd/releases/download/v${version}/radvd-${version}.tar.xz"
checksum=91df2ed7faca0716bbd726a17d6467ed92fcb2b6e45b57d9e619f9686ab99e1b
conf_files="/etc/radvd.conf"

if [ "$XBPS_CHECK_PKGS" ]; then
	configure_args+=" --with-check"
fi

post_install() {
	vsv radvd
	vconf radvd.conf.example radvd.conf
	vlicense COPYRIGHT LICENSE
}
