summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-04-07 17:20:37 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-04-07 17:20:37 +0000
commit1f098a80e202271fd075902a0d61d5315a0bfccf (patch)
tree61ff62a0e45a35baf69836c50a905c66efbb1b0c /sys-auth
parents390 stable (diff)
downloadhistorical-1f098a80e202271fd075902a0d61d5315a0bfccf.tar.gz
historical-1f098a80e202271fd075902a0d61d5315a0bfccf.tar.bz2
historical-1f098a80e202271fd075902a0d61d5315a0bfccf.zip
Import from sunrise, proxy-maintaining now
Package-Manager: portage-2.1.2.3
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/pam_abl/ChangeLog22
-rw-r--r--sys-auth/pam_abl/Manifest20
-rw-r--r--sys-auth/pam_abl/files/digest-pam_abl-0.2.32
-rw-r--r--sys-auth/pam_abl/files/system-auth15
-rw-r--r--sys-auth/pam_abl/metadata.xml13
-rw-r--r--sys-auth/pam_abl/pam_abl-0.2.3.ebuild63
6 files changed, 135 insertions, 0 deletions
diff --git a/sys-auth/pam_abl/ChangeLog b/sys-auth/pam_abl/ChangeLog
new file mode 100644
index 000000000000..ca51aa865927
--- /dev/null
+++ b/sys-auth/pam_abl/ChangeLog
@@ -0,0 +1,22 @@
+# ChangeLog for sys-auth/pam_abl
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_abl/ChangeLog,v 1.1 2007/04/07 17:20:37 jokey Exp $
+
+*pam_abl-0.2.3 (07 Apr 2007)
+
+ 07 Apr 2007; Markus Ullmann <jokey@gentoo.org> +files/system-auth,
+ +metadata.xml, +pam_abl-0.2.3.ebuild:
+ Import from sunrise, proxy-maintaining now
+
+ 07 Apr 2007; Alessio Cassibba (X-Drum) <swapon@gmail.com>
+ pam_abl-0.2.3.ebuild, files/system-auth:
+ fixed strict aliasing problems, removed "session required pam_abl.so" in
+ system-auth to avoid unknown Module error
+
+ 07 Jan 2007; Jakub Moc <jakub@gentoo.org> pam_abl-0.2.3.ebuild:
+ Add keepdir
+
+ 08 Jun 2006; Jakub Moc <jakub@gentoo.org> +pam_abl-0.2.3.ebuild:
+ New ebuild, based on ebuild submitted by iryoku (iryoku at terra dot es),
+ Bug 95248
+
diff --git a/sys-auth/pam_abl/Manifest b/sys-auth/pam_abl/Manifest
new file mode 100644
index 000000000000..29025eb8c315
--- /dev/null
+++ b/sys-auth/pam_abl/Manifest
@@ -0,0 +1,20 @@
+AUX system-auth 523 RMD160 a8b11c513676994c96889a5ed93862db0fd68305 SHA1 a5636857a026f2986538628aabf3c0fd97bad13b SHA256 538968407dc7919eff2c489dc351bdbeed61479252a1719d9534d28618243e8e
+MD5 a31780abfa594b4e048ceb51ba4c8a74 files/system-auth 523
+RMD160 a8b11c513676994c96889a5ed93862db0fd68305 files/system-auth 523
+SHA256 538968407dc7919eff2c489dc351bdbeed61479252a1719d9534d28618243e8e files/system-auth 523
+DIST pam_abl-0.2.3.tar.gz 19000 RMD160 c6a040f77c6f68e9b595f53998b3190d55907c6e SHA1 65ba9ca3eb1ee6316ecafb44081ed3334160a5ac SHA256 9bb4059fba96f9846784d5e70bec72893630bdd70bc840be767cc33b83c6b163
+EBUILD pam_abl-0.2.3.ebuild 1665 RMD160 dceed3c05142d5889c4bd4303f796dfc03bacf85 SHA1 b17b73cf3ac32dadb5b4f27e358dfa5c60759769 SHA256 5b94e98e6e8f16e7b86126b1ca4abd369a5a1ce2f11e9ed27e8433d8851095ef
+MD5 cf3f472e5593bb5c440c197ea778f5c2 pam_abl-0.2.3.ebuild 1665
+RMD160 dceed3c05142d5889c4bd4303f796dfc03bacf85 pam_abl-0.2.3.ebuild 1665
+SHA256 5b94e98e6e8f16e7b86126b1ca4abd369a5a1ce2f11e9ed27e8433d8851095ef pam_abl-0.2.3.ebuild 1665
+MISC ChangeLog 762 RMD160 b6c20d04f9a8b64283f51726c60d9188e9ef3240 SHA1 febaa5dd66c5aa215e04a30f564e0ca694aa4594 SHA256 84f803d6f64130628ccb6b4b884a64d1431d346c6b460fc4801b780d9b2b7daf
+MD5 97f09a763ab0212c1ef522aa04d241a1 ChangeLog 762
+RMD160 b6c20d04f9a8b64283f51726c60d9188e9ef3240 ChangeLog 762
+SHA256 84f803d6f64130628ccb6b4b884a64d1431d346c6b460fc4801b780d9b2b7daf ChangeLog 762
+MISC metadata.xml 340 RMD160 fda95db47b7c35ab279e68215675e1c26f4d9b10 SHA1 8987f26f2d5ca6041258f120874c635f1c5b578b SHA256 75942a0ea29aec8990e0f388323866ecae7515b1056c8a781bafca5a50da1391
+MD5 dd46e410ce42bb389291587e4c847eac metadata.xml 340
+RMD160 fda95db47b7c35ab279e68215675e1c26f4d9b10 metadata.xml 340
+SHA256 75942a0ea29aec8990e0f388323866ecae7515b1056c8a781bafca5a50da1391 metadata.xml 340
+MD5 a8e3ee1162fbb874d9832a2b7e0ac63d files/digest-pam_abl-0.2.3 174
+RMD160 640a6f952bd7629b1bbf8c953aae07854c268876 files/digest-pam_abl-0.2.3 174
+SHA256 40ec68d289a356519a56918f10bef78c9444cae06019c137cf9226b677c47ac0 files/digest-pam_abl-0.2.3 174
diff --git a/sys-auth/pam_abl/files/digest-pam_abl-0.2.3 b/sys-auth/pam_abl/files/digest-pam_abl-0.2.3
new file mode 100644
index 000000000000..92db092e9c86
--- /dev/null
+++ b/sys-auth/pam_abl/files/digest-pam_abl-0.2.3
@@ -0,0 +1,2 @@
+RMD160 c6a040f77c6f68e9b595f53998b3190d55907c6e pam_abl-0.2.3.tar.gz 19000
+SHA256 9bb4059fba96f9846784d5e70bec72893630bdd70bc840be767cc33b83c6b163 pam_abl-0.2.3.tar.gz 19000
diff --git a/sys-auth/pam_abl/files/system-auth b/sys-auth/pam_abl/files/system-auth
new file mode 100644
index 000000000000..62043aef6120
--- /dev/null
+++ b/sys-auth/pam_abl/files/system-auth
@@ -0,0 +1,15 @@
+#%PAM-1.0
+
+auth required pam_env.so
+auth required pam_abl.so config=/etc/security/pam_abl.conf
+auth sufficient pam_unix.so likeauth nullok
+auth required pam_deny.so
+
+account required pam_unix.so
+
+password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
+password sufficient pam_unix.so nullok md5 shadow use_authtok
+password required pam_deny.so
+
+session required pam_limits.so
+session required pam_unix.so
diff --git a/sys-auth/pam_abl/metadata.xml b/sys-auth/pam_abl/metadata.xml
new file mode 100644
index 000000000000..8e98664387c2
--- /dev/null
+++ b/sys-auth/pam_abl/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>pam</herd>
+<maintainer>
+ <email>jokey@gentoo.org</email>
+ <name>Markus Ullmann</name>
+</maintainer>
+<maintainer>
+ <email>swapon@gmail.com</email>
+ <name>Alessio Cassibba</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-auth/pam_abl/pam_abl-0.2.3.ebuild b/sys-auth/pam_abl/pam_abl-0.2.3.ebuild
new file mode 100644
index 000000000000..7c37b20f5a1b
--- /dev/null
+++ b/sys-auth/pam_abl/pam_abl-0.2.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_abl/pam_abl-0.2.3.ebuild,v 1.1 2007/04/07 17:20:37 jokey Exp $
+
+inherit flag-o-matic pam toolchain-funcs
+
+DESCRIPTION="Provides auto blacklisting of hosts and users responsible for repeated failed authentication attempts"
+HOMEPAGE="http://www.hexten.net/pam_abl/"
+SRC_URI="mirror://sourceforge/${PN/_/-}/${P}.tar.gz"
+RESTRICT=""
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=sys-libs/pam-0.78-r2
+ >=sys-libs/db-4.2.52_p2"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # fix hardcoded values in Makefile
+ sed -i -e "s:-Wall -fPIC:${CFLAGS} -Wall:" \
+ -e "s:/lib/security:$(getpam_mod_dir):" \
+ -e "s:cc:$(tc-getCC):" \
+ -e "s:ld -:$(tc-getLD) -:" Makefile || die "sed failed in Makefile"
+ sed -i -e "s:-Wall:${CFLAGS} -Wall:" \
+ -e "s:cc:$(tc-getCC):" tools/Makefile || die "sed failed in tools/Makefile"
+
+ # comment out default configuration
+ sed -i -e "s:host:#host:" \
+ -e "s:user:#user:" conf/pam_abl.conf || die "sed failed in conf/pam_abl.conf"
+}
+
+src_compile() {
+ # fix strict aliasing problems, using -fno-strict-aliasing
+ append-flags "-fPIC -fno-strict-aliasing"
+
+ emake CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ CFLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dopammod pam_abl.so
+ dopamd "${FILESDIR}/system-auth"
+ insinto /etc/security
+ doins conf/pam_abl.conf
+ dobin tools/pam_abl
+ dodir /var/lib/abl
+ keepdir /var/lib/abl
+ dohtml doc/*.html doc/*.css
+}
+
+pkg_postinst() {
+ elog "See /usr/share/doc/${PF}/html/index.html for configuration info"
+ elog "and set up /etc/security/pam_abl.conf as needed."
+}