# Template file for 'ngircd'
pkgname=ngircd
version=27
revision=1
build_style=gnu-configure
configure_args="--enable-ipv6 --with-openssl --without-ident ac_cv_func_getaddrinfo=yes --with-pam --with-iconv"
hostmakedepends="pkg-config"
makedepends="zlib-devel openssl-devel pam-devel libticonv-devel"
checkdepends="procps-ng expect inetutils-telnet"
conf_files="/etc/ngircd.conf"
short_desc="Free, portable and lightweight Internet Relay Chat server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://ngircd.barton.de/"
distfiles="https://ngircd.barton.de/pub/ngircd/ngircd-${version}.tar.xz"
checksum=6897880319dd5e2e73c1c9019613509f88eb5b8daa5821a36fbca3d785c247b8
make_check="ci-skip" # Stopping the integration test servers fails in CI

post_configure() {
	echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h
}
post_install() {
	vsv ngircd
}
