freebsd-ports/security/py-fail2ban/Makefile
Frederic Culot 6f41b547e8 - Update to 0.8.9 [1]
- Make additional documentation installation conditional
  (note: run-rootless.txt not installed as not relevant for FreeBSD)

Changes:        https://raw.github.com/fail2ban/fail2ban/master/ChangeLog
PR:             ports/179426 [1]
Submitted by:   Christoph Theis <theis@gmx.at> (maintainer)
2013-06-11 14:21:48 +00:00

58 lines
1.5 KiB
Makefile

# Created by: Philip M. Gollucci <pgollucci@p6m7g8.com>
# $FreeBSD$
PORTNAME= fail2ban
PORTVERSION= 0.8.9
CATEGORIES= security python
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/tarball/${PORTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTNAME}-${PORTVERSION}-${GITVERSION}
MAINTAINER= theis@gmx.at
COMMENT= Scans log files and bans IP that makes too many password failures
LICENSE= GPLv2
GITVERSION= 0-g152c619
FETCH_ARGS= -pRr
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-1a3155a
MAKE_JOBS_SAFE= yes
USE_PYTHON= -2.7
USE_PYDISTUTILS= yes
USE_RC_SUBR= fail2ban
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
PYDISTUTILS_INSTALLARGS+= --install-purelib=${PYTHON_SITELIBDIR} \
--install-data=${ETCDIR}
PYDISTUTILS_PKGVERSION= 0.8.9
PORTDOCS= README.md DEVELOP
FILES= ${WRKSRC}/fail2ban-regex \
${WRKSRC}/man/fail2ban-client.1 \
${WRKSRC}/man/fail2ban-client.h2m \
${WRKSRC}/setup.py \
${WRKSRC}/client/configreader.py \
${WRKSRC}/fail2ban-client
.include <bsd.port.options.mk>
post-patch:
@${ECHO_CMD} ${FILES} | ${XARGS} ${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g'
@${REINPLACE_CMD} -e 's,/bin/grep,grep,g' \
${WRKSRC}/config/action.d/sendmail-whois-lines.conf
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "===> Installing additional documentation in ${DOCSDIR}."
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>