Files
ports/misc/rfc/Makefile
Mathieu Arnold 7c47779cb9 Fix usage of ${PERL5}.
${PERL5} points to a specific version of perl, say, perl5.22.1, it is
fine to use it in a ports Makefile to do Perly things, but ports using
it must use ${PERL}, that points to /usr/local/bin/perl so that if the
minor version is updated, the shebang keep working.

While there, make some ports use shebangfix, regen a few patches, and
bump PORTREVISION where a shebang went from PERL5 to PERL.

PR:		205367
With hat:	portmgr
Sponsored by:	Absolight
2015-12-17 17:19:48 +00:00

36 lines
914 B
Makefile

# Created by: Chris D. Faulhaber <jedgar@fxp.org>
# $FreeBSD$
PORTNAME= rfc
PORTVERSION= 3.2.3
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= http://www.dewn.com/rfc/
MAINTAINER= scf@FreeBSD.org
COMMENT= Perl script to search for RFC's
RUN_DEPENDS= w3m:${PORTSDIR}/www/w3m
NO_BUILD= yes
USES= perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= ${PORTNAME}-${PORTVERSION}
PLIST_FILES= bin/rfc man/man1/rfc.1.gz
do-configure:
@${REINPLACE_CMD} -e 's|/usr/local/etc/rfc|${PREFIX}/etc/rfc| ; \
s|/usr/local/etc/nmap|${PREFIX}/share/misc/nmap| ; \
s|400k|1024k| ; \
s|http://ftp.isi.edu/in-notes|http://www.ietf.org/rfc| ; \
s|http://www.iana|ftp://ftp.iana|' \
${WRKSRC}/${PORTNAME}-${PORTVERSION}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}-${PORTVERSION} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>