freebsd-ports/net/whois/Makefile
Kurt Jaeger 95bf149eee net/whois: 5.1.4 -> 5.1.5
Upstream:
- Updated the list of new gTLDs.
- Added some disclaimer suppression strings for the new gTLDs' servers.
- Updated one or more translations. (Closes: #756231)

Port:
- Pull source from github, not from the Debian pool
- Fix build error in QAT

PR:		190799
Submitted by:	Marco Steinbach <coco@executive-computing.de>
2014-09-05 21:26:33 +00:00

48 lines
1.3 KiB
Makefile

# Created by: Filippo Natali <filippo@widestore.net>
# $FreeBSD$
PORTNAME= whois
PORTVERSION= 5.1.5
CATEGORIES= net
MAINTAINER= coco@executive-computing.de
COMMENT= Marco d'Itri whois client
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= iconv gmake perl5
USE_PERL5= build
MAKE_ARGS= BASEDIR="${STAGEDIR}"
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
USE_GITHUB= yes
GH_ACCOUNT= rfc1036
GH_COMMIT= d346ca6
GH_TAGNAME= ${GH_COMMIT}
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/whois.1
@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.1
@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.1
@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.conf.5
@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.conf.5
@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/whois.conf.5
@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/config.h
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e "s| pos||" -e "s| install-pos||" \
-e "s|-lintl||" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|# define ENABLE_NLS||" ${WRKSRC}/config.h
.endif
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mwhois
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mkpasswd
.include <bsd.port.mk>