summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-09-24 04:24:32 +0000
committerMike Frysinger <vapier@gentoo.org>2008-09-24 04:24:32 +0000
commit05ea8ae4013c6a50a2eece7185cddea0bcb00c8c (patch)
treebf179d2dc4621075f50e3ec428139240f46f1730 /sys-libs
parentold (diff)
downloadgentoo-2-05ea8ae4013c6a50a2eece7185cddea0bcb00c8c.tar.gz
gentoo-2-05ea8ae4013c6a50a2eece7185cddea0bcb00c8c.tar.bz2
gentoo-2-05ea8ae4013c6a50a2eece7185cddea0bcb00c8c.zip
Version bump.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/cracklib/ChangeLog7
-rw-r--r--sys-libs/cracklib/cracklib-2.8.13.ebuild60
2 files changed, 66 insertions, 1 deletions
diff --git a/sys-libs/cracklib/ChangeLog b/sys-libs/cracklib/ChangeLog
index b8c4dfe0fdd5..c2a1b91890f2 100644
--- a/sys-libs/cracklib/ChangeLog
+++ b/sys-libs/cracklib/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/cracklib
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.120 2008/02/24 11:38:13 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.121 2008/09/24 04:24:32 vapier Exp $
+
+*cracklib-2.8.13 (24 Sep 2008)
+
+ 24 Sep 2008; Mike Frysinger <vapier@gentoo.org> +cracklib-2.8.13.ebuild:
+ Version bump.
24 Feb 2008; Mike Frysinger <vapier@gentoo.org> cracklib-2.8.12.ebuild:
Add workaround for FEATURES=unmerge-orphans and upgrading from older
diff --git a/sys-libs/cracklib/cracklib-2.8.13.ebuild b/sys-libs/cracklib/cracklib-2.8.13.ebuild
new file mode 100644
index 000000000000..783f2a3d137e
--- /dev/null
+++ b/sys-libs/cracklib/cracklib-2.8.13.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.8.13.ebuild,v 1.1 2008/09/24 04:24:32 vapier Exp $
+
+inherit toolchain-funcs multilib
+
+MY_P=${P/_}
+DESCRIPTION="Password Checking Library"
+HOMEPAGE="http://sourceforge.net/projects/cracklib"
+SRC_URI="mirror://sourceforge/cracklib/${MY_P}.tar.gz"
+
+LICENSE="CRACKLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="nls python"
+
+DEPEND="python? ( dev-lang/python )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ # workaround #195017
+ if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then
+ eerror "Upgrade path is broken with FEATURES=unmerge-orphans"
+ eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib"
+ die "Please run: FEATURES=-unmerge-orphans emerge cracklib"
+ fi
+}
+
+src_compile() {
+ econf \
+ --with-default-dict='$(libdir)/cracklib_dict' \
+ $(use_enable nls) \
+ $(use_with python) \
+ || die
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ rm -r "${D}"/usr/share/cracklib
+
+ # move shared libs to /
+ dodir /$(get_libdir)
+ mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ || die "could not move shared"
+ gen_usr_ldscript libcrack.so
+
+ insinto /usr/share/dict
+ doins dicts/cracklib-small || die "word dict"
+
+ dodoc AUTHORS ChangeLog NEWS README*
+}
+
+pkg_postinst() {
+ if [[ ${ROOT} == "/" ]] ; then
+ ebegin "Regenerating cracklib dictionary"
+ create-cracklib-dict /usr/share/dict/* > /dev/null
+ eend $?
+ fi
+}