freebsd-ports/security/sshblock/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

32 lines
743 B
Makefile

# Created by: Anders Nordby <anders@FreeBSD.org>
# $FreeBSD$
PORTNAME= sshblock
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.bsdconsulting.no/tools/
EXTRACT_SUFX= .pl
MAINTAINER= ports@FreeBSD.org
COMMENT= Block abusive SSH login attempts
RUN_DEPENDS= p5-File-Tail>=0:${PORTSDIR}/devel/p5-File-Tail
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= sbin/sshblock
USES= perl5 shebangfix
USE_RC_SUBR= sshblock
SUB_LIST= PERL=${PERL}
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKSRC}
SUB_FILES+= pkg-message
SHEBANG_FILES= ${WRKSRC}/sshblock-${PORTVERSION}.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/sshblock-${PORTVERSION}.pl \
${STAGEDIR}${PREFIX}/sbin/sshblock
.include <bsd.port.mk>