void-packages/srcpkgs/ngircd/template

26 lines
855 B
Bash

# Template build file for 'ngircd'
pkgname=ngircd
version=22.1
revision=1
build_style=gnu-configure
build_options="systemd"
configure_args="--enable-ipv6 --with-openssl --without-ident ac_cv_func_getaddrinfo=yes"
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel"
conf_files="/etc/ngircd.conf"
homepage="http://ngircd.barton.de/"
short_desc="Free, portable and lightweight Internet Relay Chat server"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
distfiles="http://ngircd.barton.de/pub/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=cbe76d63fa919b2eaa87c5942f587f9fa95291e6fa4d7490d71bc94fa69b4956
post_configure() {
echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h
}
post_install() {
vsv ngircd
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
fi
}