2013-09-11 18:03:40 +00:00
|
|
|
# Created by: Anders Nordby <anders@FreeBSD.org>
|
2006-12-03 22:25:18 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sshblock
|
|
|
|
PORTVERSION= 1.0
|
2009-05-19 08:16:42 +00:00
|
|
|
PORTREVISION= 1
|
2006-12-03 22:25:18 +00:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= http://www.bsdconsulting.no/tools/
|
|
|
|
EXTRACT_SUFX= .pl
|
|
|
|
|
|
|
|
MAINTAINER= anders@FreeBSD.org
|
|
|
|
COMMENT= Block abusive SSH login attempts
|
|
|
|
|
2012-06-29 10:05:08 +00:00
|
|
|
RUN_DEPENDS= p5-File-Tail>=0:${PORTSDIR}/devel/p5-File-Tail
|
2006-12-03 22:25:18 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= sbin/sshblock
|
2013-09-11 18:03:40 +00:00
|
|
|
USES= perl5
|
2006-12-03 22:25:18 +00:00
|
|
|
USE_RC_SUBR= sshblock
|
|
|
|
SUB_LIST= PERL=${PERL}
|
|
|
|
EXTRACT_CMD= ${CP}
|
|
|
|
EXTRACT_BEFORE_ARGS=
|
|
|
|
EXTRACT_AFTER_ARGS= ${WRKDIR}
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
#SUB_FILES= sshblock.sh
|
|
|
|
|
2013-09-20 22:55:24 +00:00
|
|
|
NO_STAGE= yes
|
2006-12-03 22:25:18 +00:00
|
|
|
do-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s@/usr/bin/perl@${PERL}@" \
|
|
|
|
${WRKSRC}/sshblock-${PORTVERSION}.pl
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sshblock-${PORTVERSION}.pl \
|
|
|
|
${PREFIX}/sbin/sshblock
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|