head	1.14;
access;
symbols
	RELEASE_8_3_0:1.12
	RELEASE_9_0_0:1.12
	RELEASE_7_4_0:1.12
	RELEASE_8_2_0:1.12
	RELEASE_6_EOL:1.12
	RELEASE_8_1_0:1.12
	RELEASE_7_3_0:1.12
	RELEASE_8_0_0:1.12
	RELEASE_7_2_0:1.12
	RELEASE_7_1_0:1.11
	RELEASE_6_4_0:1.11
	RELEASE_5_EOL:1.11
	RELEASE_7_0_0:1.11
	RELEASE_6_3_0:1.11
	PRE_XORG_7:1.10
	RELEASE_4_EOL:1.10
	RELEASE_6_2_0:1.10
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.14
date	2012.11.17.06.01.01;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.06.05.15.49.49;	author danger;	state Exp;
branches;
next	1.12;

1.12
date	2009.01.06.17.59.18;	author pav;	state Exp;
branches;
next	1.11;

1.11
date	2007.09.08.01.03.50;	author linimon;	state Exp;
branches;
next	1.10;

1.10
date	2006.09.15.09.39.42;	author danger;	state Exp;
branches;
next	1.9;

1.9
date	2006.04.12.23.31.39;	author edwin;	state Exp;
branches;
next	1.8;

1.8
date	2006.04.12.22.41.32;	author edwin;	state Exp;
branches;
next	1.7;

1.7
date	2006.04.11.22.07.31;	author edwin;	state Exp;
branches;
next	1.6;

1.6
date	2006.04.11.22.06.45;	author edwin;	state Exp;
branches;
next	1.5;

1.5
date	2006.04.02.00.14.58;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2006.01.01.19.30.59;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2005.11.12.19.30.20;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2005.09.04.18.21.00;	author sem;	state Exp;
branches;
next	1.1;

1.1
date	2005.05.26.21.14.58;	author pav;	state Exp;
branches;
next	;


desc
@@


1.14
log
@Switch exporter over
@
text
@# New ports collection makefile for:	bruteforceblocker
# Date created:				20 April 2005
# Whom:					Daniel Gerzo <danger@@rulez.sk>
#
# $FreeBSD: head/security/bruteforceblocker/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	bruteforceblocker
PORTVERSION=	1.2.3
CATEGORIES=	security
MASTER_SITES=	http://danger.rulez.sk/projects/bruteforceblocker/ \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	pav

MAINTAINER=	danger@@FreeBSD.org
COMMENT=	Checks for SSH bruteforce and blocks given IPs

RUN_DEPENDS=	p5-Unix-Syslog>=0:${PORTSDIR}/sysutils/p5-Unix-Syslog \
		p5-Sys-Hostname-Long>=0:${PORTSDIR}/sysutils/p5-Sys-Hostname-Long \
		p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
		p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS

NO_BUILD=	yes
USE_PERL5_RUN=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}
PKGMESSAGE=	${WRKDIR}/pkg-message
SUB_FILES=	pkg-message

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/sbin/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf-dist
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
.for FILE in INSTALL CHANGELOG CREDITS
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

post-install:
	@@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
		${CP} -p ${PREFIX}/etc/${PORTNAME}.conf-dist ${PREFIX}/etc/${PORTNAME}.conf ; \
	fi
.if !defined(BATCH)
	@@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>
@


1.13
log
@- cleanup RUN_DEPENDS

Submitted by:	az
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.12
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d18 4
a21 4
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
		${SITE_PERL}/Sys/Hostname/Long.pm:${PORTSDIR}/sysutils/p5-Sys-Hostname-Long \
		${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
		${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
@


1.11
log
@Welcome bsd.perl.mk.  Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
@
text
@a29 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 502106
IGNORE=		requires at least FreeBSD 5.2
.endif

d48 1
a48 1
.include <bsd.port.post.mk>
@


1.10
log
@Change my e-mail address to the @@FreeBSD.org one.

Approved by: linimon
@
text
@a31 4
.if ${PERL_LEVEL} < 500600
IGNORE=		requires Perl 5.6 or newer. Install lang/perl5 or lang/perl5.8 and try again
.endif

@


1.9
log
@On request of maintianer, also remove the dependency on p5-File-Tail
@
text
@d15 1
a15 1
MAINTAINER=	danger@@rulez.sk
@


1.8
log
@Reinstate maintainer, seems it was his secondary MX host which complained.
@
text
@d21 1
a21 2
		${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
		${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail
@


1.7
log
@Also fix IGNORE to follow style.
@
text
@d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
@


1.6
log
@bruteforceblocker needs p5-File-Tail

reset maintainer: <danger@@rulez.sk>: host mailhub.cia.sk[72.21.48.70] said: 554
    <danger@@rulez.sk>: Relay access denied (in reply to RCPT TO command)

PR:		ports/95633
Submitted by:	Joe Horn <joehorn@@mi.chu.edu.tw>
@
text
@d34 1
a34 1
IGNORE=		Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again.
@


1.5
log
@- Update to 1.2.3

PR:		ports/94077
Submitted by:	Daniel Gerzo <danger@@rulez.sk> (maintainer)
@
text
@d15 1
a15 1
MAINTAINER=	danger@@rulez.sk
d21 2
a22 1
		${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
@


1.4
log
@- Update to 1.2.1

PR:		ports/91167
Submitted by:	Daniel Gerzo <danger@@rulez.sk> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.2.1
d20 2
a21 1
		${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
@


1.3
log
@- Update to 1.2

Submitted by:	Daniel Gerzo (maintainer) over EFnet
@
text
@d9 1
a9 1
PORTVERSION=	1.2
@


1.2
log
@- Update to 1.1

PR:		ports/85585
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.1
d16 5
a20 1
COMMENT=	Checks for failed login attempts and blocks given IPs
d25 1
a25 2
WRKSRC=		${WRKDIR}
PLIST_FILES=	bin/${PORTNAME}.pl
d40 14
a53 1
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}.pl
d55 1
@


1.1
log
@bruteforceblocker is a script that checks sshd's auth.log for Failed
login attemtps and cooperates with pf firewall. When given IP gains
specific number of fails, bruteforceblocker adds this IP to the pf's
table. This is useful for people who are getting large number of
these attempts.

PR:		ports/80211
Submitted by:	Daniel Gerzo <danger@@rulez.sk>
@
text
@d9 1
a9 1
PORTVERSION=	1.0
a17 2
RUN_DEPENDS=	${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail

a19 1
USE_RC_SUBR=	${PORTNAME}.sh
@

