summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2013-02-24 05:52:40 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2013-02-24 05:52:40 +0000
commit9102c0478a48652dd8ccf18ae75332ee1ec5dcab (patch)
treeb6a846291b9d2660f76872041880e684bdb7b3de /sys-auth/pam_abl
parentInitial commit. (diff)
downloadgentoo-2-9102c0478a48652dd8ccf18ae75332ee1ec5dcab.tar.gz
gentoo-2-9102c0478a48652dd8ccf18ae75332ee1ec5dcab.tar.bz2
gentoo-2-9102c0478a48652dd8ccf18ae75332ee1ec5dcab.zip
Remove old; version bump; hide symbols.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'sys-auth/pam_abl')
-rw-r--r--sys-auth/pam_abl/ChangeLog11
-rw-r--r--sys-auth/pam_abl/files/pam_abl-0.2.3-as-needed.patch11
-rw-r--r--sys-auth/pam_abl/pam_abl-0.2.3-r1.ebuild67
-rw-r--r--sys-auth/pam_abl/pam_abl-0.5.0.ebuild44
4 files changed, 52 insertions, 81 deletions
diff --git a/sys-auth/pam_abl/ChangeLog b/sys-auth/pam_abl/ChangeLog
index d724895d73b9..4006725fd0e3 100644
--- a/sys-auth/pam_abl/ChangeLog
+++ b/sys-auth/pam_abl/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-auth/pam_abl
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_abl/ChangeLog,v 1.15 2012/05/24 05:05:31 vapier Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_abl/ChangeLog,v 1.16 2013/02/24 05:52:40 flameeyes Exp $
+
+*pam_abl-0.5.0 (24 Feb 2013)
+
+ 24 Feb 2013; Diego E. Pettenò <flameeyes@gentoo.org> +pam_abl-0.5.0.ebuild,
+ -files/pam_abl-0.2.3-as-needed.patch, -pam_abl-0.2.3-r1.ebuild:
+ Remove old; version bump; hide symbols.
24 May 2012; Mike Frysinger <vapier@gentoo.org> pam_abl-0.2.3-r1.ebuild:
Inherit eutils for epatch.
@@ -69,4 +75,3 @@
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/files/pam_abl-0.2.3-as-needed.patch b/sys-auth/pam_abl/files/pam_abl-0.2.3-as-needed.patch
deleted file mode 100644
index f18ecf68f9a6..000000000000
--- a/sys-auth/pam_abl/files/pam_abl-0.2.3-as-needed.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- tools/Makefile.orig 2008-12-28 17:27:47.000000000 +0100
-+++ tools/Makefile 2008-12-28 17:31:08.000000000 +0100
-@@ -9,7 +9,7 @@
- all : $(TARGET)
-
- $(TARGET) : $(OBJ)
-- cc $(LIBS) -o $@ $^
-+ cc -o $@ $^ $(LIBS)
-
- install : $(TARGET)
- install --mode=755 --strip $(TARGET) $(INSTDIR)
diff --git a/sys-auth/pam_abl/pam_abl-0.2.3-r1.ebuild b/sys-auth/pam_abl/pam_abl-0.2.3-r1.ebuild
deleted file mode 100644
index 37ca518fe287..000000000000
--- a/sys-auth/pam_abl/pam_abl-0.2.3-r1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2012 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-r1.ebuild,v 1.7 2012/05/24 05:05:31 vapier Exp $
-
-EAPI=2
-
-inherit flag-o-matic pam toolchain-funcs eutils
-
-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}
-
-# restrict tests as they're broken badly
-RESTRICT="test"
-
-src_prepare() {
- # fix as-needed per bug # 248403
- epatch "${FILESDIR}/${P}-as-needed.patch"
-
- # 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
- dopamsecurity . conf/pam_abl.conf
- dobin tools/pam_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."
- elog "Also check for needed changes to system-auth, we don't merge"
- elog "that automatically any more."
-}
diff --git a/sys-auth/pam_abl/pam_abl-0.5.0.ebuild b/sys-auth/pam_abl/pam_abl-0.5.0.ebuild
new file mode 100644
index 000000000000..e80b8113bba3
--- /dev/null
+++ b/sys-auth/pam_abl/pam_abl-0.5.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 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.5.0.ebuild,v 1.1 2013/02/24 05:52:40 flameeyes Exp $
+
+EAPI=5
+
+MY_PN="${PN/_/-}"
+MY_P="${MY_PN}-${PV}"
+
+inherit flag-o-matic pam cmake-utils db-use multilib
+
+DESCRIPTION="PAM module for blacklisting of hosts and users on repeated failed authentication attempts"
+HOMEPAGE="http://pam-abl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="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}/${MY_PN}"
+
+src_configure() {
+ pammod_hide_symbols
+
+ local mycmakeargs=(
+ -DDB_INCLUDE_DIR=$(db_includedir)
+ -DDB_LINK_DIR=/usr/$(get_libdir)
+ -DDB_LIBRARY=$(db_libname)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodir $(getpam_mod_dir)
+ mv "${D}"/usr/lib/security/*.so "${D}"/"$(getpam_mod_dir)" || die
+
+ dodoc doc/*.txt README
+}