head	1.6;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.5
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2;
locks; strict;
comment	@# @;


1.6
date	2012.11.17.06.01.14;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2009.11.20.18.49.01;	author miwi;	state Exp;
branches;
next	1.4;

1.4
date	2009.08.22.00.35.00;	author amdmi3;	state Exp;
branches;
next	1.3;

1.3
date	2007.10.04.06.00.22;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2006.09.12.08.21.15;	author pav;	state Exp;
branches;
next	1.1;

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


desc
@@


1.6
log
@Switch exporter over
@
text
@# New ports collection makefile for:    pam_abl
# Date created:				Nov 6 2005
# Whom:					Petr Rehor <prehor@@gmail.com>
#
# $FreeBSD: head/security/pam_abl/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	pam_abl
PORTVERSION=	0.2.3
CATEGORIES=	security
MASTER_SITES=	SF/pam-abl/pam-abl/${PORTVERSION}

MAINTAINER=	prehor@@gmail.com
COMMENT=	Blacklisting responsible for repeated failed authentication attempts

WRKSRC=		${WRKDIR}/${PORTNAME}

PAMABLDB?=	/var/db/pam_abl

USE_BDB=	42+

SUB_FILES=	pkg-deinstall pkg-message pkg-plist pam_abl.8 190.clean-pam-abl
SUB_LIST=	PAMABLDB=${PAMABLDB}

PKGMESSAGE=	${WRKDIR}/pkg-message
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
PLIST=		${WRKDIR}/pkg-plist

MAN8=		pam_abl.8

.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

.include <bsd.port.pre.mk>

.if ${PREFIX} == / || ${PREFIX} == /usr
ETCPREFIX=
.else
ETCPREFIX=	${PREFIX}
.endif
SUB_LIST+=	ETCPREFIX=${ETCPREFIX}

SED_SCRIPT=	-e 's|<db.h>|<${BDB_INCLUDE_DIR}/db.h>|' \
		-e 's|-ldb|-l${BDB_LIB_NAME}|' \
		-e 's|%%PREFIX%%|${PREFIX}|' \
		-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
		-e 's|%%ETCPREFIX%%|${ETCPREFIX}|' \
		-e 's|%%PAMABLDB%%|${PAMABLDB}|'

post-patch:
.for file in Makefile pam_abl.h conf/pam_abl.conf conf/system-auth doc/index.html doc/pam_abl.html tools/Makefile
	@@${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/${file}
.endfor

pre-install:
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
.for file in AUTHORS COPYING Copyright NEWS README THANKS conf/system-auth doc/index.html doc/pam_abl.html doc/copying.html doc/style.css
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.if !defined(NO_INSTALL_MANPAGES)
	@@${MKDIR} ${MAN8PREFIX}/man/man8
	${INSTALL_MAN} ${WRKDIR}/pam_abl.8 ${MAN8PREFIX}/man/man8/
.endif
	@@${MKDIR} ${PREFIX}/etc/periodic/daily
	${INSTALL_SCRIPT} ${WRKDIR}/190.clean-pam-abl ${PREFIX}/etc/periodic/daily/

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.5
log
@- Respect PREFIX

PR:		140152
Submitted by:	Petr Rehor <prehor@@gmail.com> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.4
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d47 1
@


1.3
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME:S/_/-/}
@


1.2
log
@- Mark BROKEN on FreeBSD 4.X: does not compile

Reported by:	krismail
@
text
@a50 4
.if ${OSVERSION} < 500000
BROKEN=		does not compile
.endif

@


1.1
log
@The pam_abl provides auto blacklisting of hosts and users
responsible for repeated failed authentication attempts.

WWW: http://www.hexten.net/pam_abl/

PR:		ports/100635
Submitted by:	Petr Rehor <prehor@@gmail.com>
@
text
@d51 4
@

