Files
ports/net/whois/Makefile
T
Rainer Hurling 452cdd454d net/whois: Update to 5.5.7
Changes for 5.5.7[1]:
  * Implemented support for CIDR queries to whois.arin.net
    The old behaviour caused the server to return no results, now when
    querying for ip/length the server returns a result if there is an
    exact match
  * Added the .ao, .bh, .mm, and .xn--pgbs0dh (Tunisia) TLD servers
  * Added some .ru and .su SLD servers
  * Updated the .th and .xn--o3cw4h TLD servers
  * Updated the .cy, .jo, .lb, .np, .xn--mgbayh7gpa and .xn--qxam TLD URLs
  * Updated the charset for whois.ati.tn
  * Updated the list of new gTLDs

[1] https://github.com/rfc1036/whois/commit/7f9fdae2a99c9a56959b37049488f94e8bdfa7c2

PR:		250275
Submitted by:	Juraj Lutter <juraj@lutter.sk>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D26861
2020-10-20 16:45:10 +00:00

51 lines
1.5 KiB
Makefile

# Created by: Filippo Natali <filippo@widestore.net>
# $FreeBSD$
PORTNAME= whois
DISTVERSIONPREFIX= v
DISTVERSION= 5.5.7
CATEGORIES= net
MAINTAINER= coco@executive-computing.de
COMMENT= Marco d'Itri whois client
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libidn2.so:dns/libidn2
USES= iconv gmake perl5 pkgconfig
USE_PERL5= build
MAKE_ARGS= BASEDIR="${STAGEDIR}"
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
USE_GITHUB= yes
GH_ACCOUNT= rfc1036
post-patch:
@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/whois.1
@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/po/Makefile
@${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
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config.h
post-patch-NLS-off:
@${REINPLACE_CMD} -e "s| pos||" -e "s| install-pos||" \
-e "s|-lintl||" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|# define ENABLE_NLS||" ${WRKSRC}/config.h
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mwhois
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mkpasswd
.include <bsd.port.mk>