freebsd-ports/security/xinetd/Makefile
Renato Botelho 9d2e434521 Add a new option to conditionalize xconv installation
xconv is the only piece of xinetd written in perl, removing it from package
also removes perl dependency.

Add a new option, on by default to don't change current behavior, to select
to install or not xconv.

While here, re-generate patches using `make makepatch` to silence portlint

PR:		205661
Approved by:	maintainer timeout (> 30 days)
Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
2016-02-01 09:48:34 +00:00

43 lines
1.2 KiB
Makefile

# Created by: markm
# $FreeBSD$
PORTNAME= xinetd
PORTVERSION= 2.3.15
PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= GENTOO
MAINTAINER= sem@FreeBSD.org
COMMENT= Replacement for inetd with better control and logging
GNU_CONFIGURE= yes
USE_RC_SUBR= xinetd
ALL_TARGET= build
CONFIGURE_ARGS+= --with-loadavg
OPTIONS_SUB= yes
USES= cpe shebangfix
SHEBANG_FILES= ${WRKSRC}/xinetd/xconv.pl
OPTIONS_DEFINE= IPV6 LIBWRAP XCONV
OPTIONS_DEFAULT= LIBWRAP XCONV
XCONV_DESC= Install xconv utility (requires perl)
IPV6_CONFIGURE_WITH= ipv6
LIBWRAP_CONFIGURE_WITH= libwrap
XCONV_USES= perl5
XCONV_USE= PERL5=run
post-patch:
@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xinetd/xconfig.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xinetd/xinetd ${STAGEDIR}${PREFIX}/sbin/xinetd
${INSTALL_SCRIPT} ${WRKSRC}/xinetd/xconv.pl ${STAGEDIR}${PREFIX}/bin/xconv
${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.conf.man ${STAGEDIR}${PREFIX}/man/man5/xinetd.conf.5
${INSTALL_MAN} ${WRKSRC}/xinetd/xconv.pl.8 ${STAGEDIR}${PREFIX}/man/man8/xconv.8
${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.man ${STAGEDIR}${PREFIX}/man/man8/xinetd.8
${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.log.man ${STAGEDIR}${PREFIX}/man/man8/xinetd.log.8
.include <bsd.port.mk>