vp-build/srcpkgs/xinetd/template

30 lines
913 B
Bash

# Template file for 'xinetd'
pkgname=xinetd
version=2.3.15
revision=7
build_style=gnu-configure
configure_args="--without-libwrap"
short_desc="A secure replacement for inetd"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="xinetd"
homepage="http://www.xinetd.org/"
distfiles="http://ponce.cc/slackware/sources/repo/xinetd-${version}.tar.gz"
checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) export CFLAGS+=" -DNO_RPC"; configure_args+=" xinetd_cv_type_rlim_t=yes";;
esac
}
do_install() {
make prefix=${DESTDIR}/usr DAEMONDIR=${DESTDIR}/usr/bin MANDIR=${DESTDIR}/usr/share/man install
vconf ${FILESDIR}/xinetd.conf
vinstall ${FILESDIR}/servers 644 etc/xinetd.d
vinstall ${FILESDIR}/services 644 etc/xinetd.d
vlicense COPYRIGHT
vsv xinetd
}