summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2006-06-08 19:53:50 +0000
committerJakub Moc <jakub@gentoo.org>2006-06-08 19:53:50 +0000
commita35aabdb60610d404e8dabc4a00aaf3727268890 (patch)
tree1196458d81edf1f6a37be39834cf79f67004b75f
parentFixing echangelog SVN patch, thanks to CHTEKK (diff)
downloadsunrise-a35aabdb60610d404e8dabc4a00aaf3727268890.tar.gz
sunrise-a35aabdb60610d404e8dabc4a00aaf3727268890.tar.bz2
sunrise-a35aabdb60610d404e8dabc4a00aaf3727268890.zip
sys-auth/pam_abl - New ebuild, based on ebuild submitted by iryoku, Bug 95248
svn path=/; revision=25
-rw-r--r--sys-auth/pam_abl/ChangeLog8
-rw-r--r--sys-auth/pam_abl/Manifest16
-rw-r--r--sys-auth/pam_abl/files/digest-pam_abl-0.2.33
-rw-r--r--sys-auth/pam_abl/files/system-auth16
-rw-r--r--sys-auth/pam_abl/pam_abl-0.2.3.ebuild52
5 files changed, 95 insertions, 0 deletions
diff --git a/sys-auth/pam_abl/ChangeLog b/sys-auth/pam_abl/ChangeLog
new file mode 100644
index 000000000..00321f7b2
--- /dev/null
+++ b/sys-auth/pam_abl/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sys-auth/pam_abl
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 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 000000000..591a92209
--- /dev/null
+++ b/sys-auth/pam_abl/Manifest
@@ -0,0 +1,16 @@
+AUX system-auth 560 RMD160 03b26e5b7b0e65072c3cb769a25077c5f4f0f49d SHA1 0ca8894486fce701a5a7185f4e3f76950e23a887 SHA256 529417a2b1c153542a7149a5f00630ac81e9bdb2423cb9baad473c127ea4040d
+MD5 1e406572794aaa6c7045f51073fde42c files/system-auth 560
+RMD160 03b26e5b7b0e65072c3cb769a25077c5f4f0f49d files/system-auth 560
+SHA256 529417a2b1c153542a7149a5f00630ac81e9bdb2423cb9baad473c127ea4040d files/system-auth 560
+DIST pam_abl-0.2.3.tar.gz 19000 RMD160 c6a040f77c6f68e9b595f53998b3190d55907c6e SHA1 65ba9ca3eb1ee6316ecafb44081ed3334160a5ac SHA256 9bb4059fba96f9846784d5e70bec72893630bdd70bc840be767cc33b83c6b163
+EBUILD pam_abl-0.2.3.ebuild 1419 RMD160 079b22105815d559781574cca83c25c3cec15a13 SHA1 dd5d7677b3e6a49be2ecf2f4a8d63deffa3019f0 SHA256 68ee6176e1f0ead10b1882d2fc2b552f347db33f0f62e7b97c600295b48feea9
+MD5 9f287d720338081b2e86030200959e66 pam_abl-0.2.3.ebuild 1419
+RMD160 079b22105815d559781574cca83c25c3cec15a13 pam_abl-0.2.3.ebuild 1419
+SHA256 68ee6176e1f0ead10b1882d2fc2b552f347db33f0f62e7b97c600295b48feea9 pam_abl-0.2.3.ebuild 1419
+MISC ChangeLog 273 RMD160 622ee6eb3000d9fe24774eced6246f4e2ab3f87e SHA1 807553c6556c7a43d16d6e98e9c362af2467a433 SHA256 05c7b8f5e4826b6a838b4b27c9a3e65a9a7370043b4082f4a032f0b504293c47
+MD5 c25c73637e6a42172397df5385f321ec ChangeLog 273
+RMD160 622ee6eb3000d9fe24774eced6246f4e2ab3f87e ChangeLog 273
+SHA256 05c7b8f5e4826b6a838b4b27c9a3e65a9a7370043b4082f4a032f0b504293c47 ChangeLog 273
+MD5 a39f518d6ff5e255b6acb52656020a45 files/digest-pam_abl-0.2.3 238
+RMD160 c4eb848417fde8f8d20297c725bb3705e399552f files/digest-pam_abl-0.2.3 238
+SHA256 e6d08fdd4744fddb14d3975633c4b552c12447af08003f13387d00ad71fca360 files/digest-pam_abl-0.2.3 238
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 000000000..a43814792
--- /dev/null
+++ b/sys-auth/pam_abl/files/digest-pam_abl-0.2.3
@@ -0,0 +1,3 @@
+MD5 fbcf97067e9647fa1d9257d4e6133cba pam_abl-0.2.3.tar.gz 19000
+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 000000000..dc0f4a6fc
--- /dev/null
+++ b/sys-auth/pam_abl/files/system-auth
@@ -0,0 +1,16 @@
+#%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_abl.so
+session required pam_unix.so
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 000000000..9bdd0eb80
--- /dev/null
+++ b/sys-auth/pam_abl/pam_abl-0.2.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit 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="mirror"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=sys-libs/pam-0.78-r2
+ >=sys-libs/db-4.2.52_p2"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # fix hardcoded values in Makefile
+ sed -i -e "s:-Wall -fPIC:${CFLAGS} -Wall -fPIC:" \
+ -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_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
+ dohtml doc/*.html doc/*.css
+}
+
+pkg_postinst() {
+ einfo "See /usr/share/doc/${P}/html/index.html for configuration info"
+ einfo "and set up /etc/security/pam_abl.conf as needed."
+}