# Template file for 'lldpd'
pkgname=lldpd
version=1.0.22
revision=1
build_style=gnu-configure
configure_args="--with-privsep-chroot=/var/empty"
hostmakedepends="pkg-config"
makedepends="libpcap-devel libcap-devel libevent-devel readline-devel"
short_desc="Broadcast 802.1AB neighbor announcements"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://vincentbernat.github.io/lldpd/index.html"
changelog="https://raw.githubusercontent.com/lldpd/lldpd/refs/heads/master/NEWS"
distfiles="https://media.luffy.cx/files/lldpd/${pkgname}-${version}.tar.gz"
checksum=9587940ed2314a86774c5499f3dfb13a8eb86232a62d243a83a1f09886848e03

system_groups="_lldpd"
system_accounts="_lldpd"

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	makedepends+=" musl-legacy-compat"
fi

post_install() {
	vsv lldpd
	vlicense LICENSE
}
