2006-08-17 10:27:13 +02:00
|
|
|
# New ports collection makefile for: bruteblock
|
|
|
|
# Date created: 30 Jul 2006
|
2006-12-21 21:41:33 +01:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-08-17 10:27:13 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bruteblock
|
2006-08-23 12:47:15 +02:00
|
|
|
PORTVERSION= 0.0.5
|
2009-10-19 13:40:58 +02:00
|
|
|
PORTREVISION= 2
|
2006-08-17 10:27:13 +02:00
|
|
|
CATEGORIES= security
|
2006-12-21 21:41:33 +01:00
|
|
|
MASTER_SITES= http://samm.kiev.ua/bruteblock/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2006-08-17 10:27:13 +02:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2006-08-17 10:27:13 +02:00
|
|
|
COMMENT= Software for blocking bruteforce attacks with ipfw
|
|
|
|
|
|
|
|
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message
|
2009-03-24 20:28:37 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-08-17 10:27:13 +02:00
|
|
|
|
|
|
|
USE_RC_SUBR= bruteblockd.sh
|
|
|
|
MAN8= bruteblock.8
|
|
|
|
|
|
|
|
CONFDIR= ${PREFIX}/etc/${PORTNAME}
|
|
|
|
|
2006-08-23 12:47:15 +02:00
|
|
|
PORTDOCS= FAQ README CHANGES
|
|
|
|
|
2006-08-17 10:27:13 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bruteblock ${PREFIX}/sbin/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bruteblockd ${PREFIX}/sbin/
|
|
|
|
${MKDIR} ${PREFIX}/etc/bruteblock
|
2006-08-23 12:47:15 +02:00
|
|
|
.for file in ssh proftpd
|
2006-08-17 10:27:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${file}.conf ${CONFDIR}/${file}.conf.dist
|
|
|
|
if [ ! -f ${CONFDIR}/${file}.conf ]; then \
|
|
|
|
${INSTALL_DATA} ${CONFDIR}/${file}.conf.dist ${CONFDIR}/${file}.conf; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/bruteblock.8 ${PREFIX}/man/man8/
|
2006-08-23 12:47:15 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${DOCSDIR}/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCSDIR}/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/CHANGES ${DOCSDIR}/
|
|
|
|
.endif
|
2006-08-17 10:27:13 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
|
|
|
|
2008-11-09 19:55:49 +01:00
|
|
|
.include <bsd.port.mk>
|