aboutsummaryrefslogtreecommitdiffstats
path: root/security/py-fail2ban/Makefile
blob: 1ccdc5f08d74b556bf2813184caa8e0aa3d91813 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:    fail2ban
# Date created:             13 January 2009
# Whom:                     Philip M. Gollucci <pgollucci@p6m7g8.com>
#
# $FreeBSD$
#

PORTNAME=   fail2ban
PORTVERSION=    0.8.4
CATEGORIES= security python
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-stable/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= tony@pc-tony.com
COMMENT=    Scans log files and bans IP that makes too many password failures

MAKE_JOBS_SAFE= yes

USE_BZIP2=  yes

USE_PYTHON= 2.5-2.7
USE_PYDISTUTILS=    yes

USE_RC_SUBR=    fail2ban
SUB_LIST+=  PYTHON_CMD=${PYTHON_CMD}

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>