freebsd-ports/security/py-fail2ban/Makefile
Philip M. Gollucci 259a784cd4 - Add an rc.d script
Submitted by:   sd@mostnet.ru (via e-mail)
2009-06-01 06:19:04 +00:00

40 lines
926 B
Makefile

# New ports collection makefile for: fail2ban
# Date created: 13 January 2009
# Whom: Philip M. Gollucci <pgollucci@p6m7g8.com>
#
# $FreeBSD$
#
PORTNAME= fail2ban
PORTVERSION= 0.8.3
PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= SF
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= pgollucci@FreeBSD.org
COMMENT= scans log files and bans IP that makes too many password failures.
MAKE_JOBS_SAFE= yes
USE_BZIP2= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_RC_SUBR= fail2ban
PYDISTUTILS_INSTALLARGS+= --install-purelib=${PYTHON_SITELIBDIR} \
--install-data=${ETCDIR}
FILES= ${WRKSRC}/fail2ban-regex \
${WRKSRC}/man/fail2ban-client.1 \
${WRKSRC}/man/fail2ban-client.h2m \
${WRKSRC}/setup.py \
${WRKSRC}/client/configreader.py \
${WRKSRC}/fail2ban-client
post-patch:
@${ECHO_CMD} ${FILES} | ${XARGS} ${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g'
.include <bsd.port.mk>