1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- Switch to options helpers

- Silence stripping
- Remove LARGEFILES option - it does nothing on FreeBSD and is not in fact needed
This commit is contained in:
Dmitry Marakasov 2016-02-04 16:39:59 +00:00
parent 1bbc8b4b34
commit f727c78179
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408056

View File

@ -30,20 +30,10 @@ ETCFILES= rwhoisd.allow rwhoisd.auth_area rwhoisd.conf rwhoisd.deny \
rwhoisd.dir rwhoisd.root rwhoisd.x.dir
PLIST_SUB+= ETCFILES="${ETCFILES}"
OPTIONS_DEFINE= IPV6 LARGEFILE DOCS
OPTIONS_DEFAULT= IPV6
OPTIONS_DEFINE= IPV6 DOCS
OPTIONS_DEFAULT=IPV6
IPV6_DESC= Enable IPV6 support
LARGEFILE_DESC= Enable largefile support (> 2Gb)
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MIPV6)
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${PORT_OPTIONS:MLARGEFILE}
CONFIGURE_ARGS+= --enable-largefile
.endif
IPV6_CONFIGURE_OFF= --disable-ipv6
post-patch:
@${REINPLACE_CMD} -e 's,userid: rwhoisd,userid: nobody,' \
@ -53,13 +43,15 @@ post-patch:
${WRKSRC}/common/conf.h
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
${INSTALL_MAN} ${WRKSRC}/doc/rwhois_indexer.8 ${STAGEDIR}${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/rwhoisd.8 ${STAGEDIR}${PREFIX}/man/man8
${MKDIR} ${STAGEDIR}${DOCSDIR}
. for f in ${PORTDOCS}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
. endfor
.endfor
.include <bsd.port.mk>