1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit pam toolchain-funcs
7 DESCRIPTION="Provides auto blacklisting of hosts and users responsible for repeated failed authentication attempts"
8 HOMEPAGE="http://www.hexten.net/pam_abl/"
9 SRC_URI="mirror://sourceforge/${PN/_/-}/${P}.tar.gz"
12 LICENSE="|| ( BSD GPL-2 )"
14 KEYWORDS="~x86 ~amd64"
17 DEPEND=">=sys-libs/pam-0.78-r2
18 >=sys-libs/db-4.2.52_p2"
26 # fix hardcoded values in Makefile
27 sed -i -e "s:-Wall -fPIC:${CFLAGS} -Wall -fPIC:" \
28 -e "s:/lib/security:$(getpam_mod_dir):" \
29 -e "s:cc:$(tc-getCC):" \
30 -e "s:ld -:$(tc-getLD) -:" Makefile || die "sed failed in Makefile"
31 sed -i -e "s:-Wall:${CFLAGS} -Wall:" \
32 -e "s:cc:$(tc-getCC):" tools/Makefile || die "sed failed in tools/Makefile"
34 # comment out default configuration
35 sed -i -e "s:host:#host:" \
36 -e "s:user:#user:" conf/pam_abl.conf || die "sed failed in conf/pam_abl.conf"
41 dopamd "${FILESDIR}/system-auth"
43 doins conf/pam_abl.conf
46 dohtml doc/*.html doc/*.css
50 einfo "See /usr/share/doc/${PF}/html/index.html for configuration info"
51 einfo "and set up /etc/security/pam_abl.conf as needed."