summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-01 22:20:11 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-01 22:20:11 +0000
commitb03e20e50707ef4c002ff18c1a80a1232a159657 (patch)
tree0983bfa1c776df52aa21b7fe0dcffe0843ce8900 /sys-libs
parentfix (diff)
downloadgentoo-2-b03e20e50707ef4c002ff18c1a80a1232a159657.tar.gz
gentoo-2-b03e20e50707ef4c002ff18c1a80a1232a159657.tar.bz2
gentoo-2-b03e20e50707ef4c002ff18c1a80a1232a159657.zip
Make sure the cracklib dicts are generated.
(Portage version: 2.0.51.18)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/cracklib/ChangeLog8
-rw-r--r--sys-libs/cracklib/cracklib-2.8_pre1-r1.ebuild53
-rw-r--r--sys-libs/cracklib/files/cracklib-2.8_pre1-dictname.patch5
-rw-r--r--sys-libs/cracklib/files/digest-cracklib-2.8_pre1-r11
4 files changed, 66 insertions, 1 deletions
diff --git a/sys-libs/cracklib/ChangeLog b/sys-libs/cracklib/ChangeLog
index cb77667cc0ca..1bbd7ceef0d9 100644
--- a/sys-libs/cracklib/ChangeLog
+++ b/sys-libs/cracklib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-libs/cracklib
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.62 2005/02/11 06:06:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.63 2005/03/01 22:20:11 vapier Exp $
+
+*cracklib-2.8_pre1-r1 (01 Mar 2005)
+
+ 01 Mar 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/cracklib-2.8_pre1-dictname.patch, +cracklib-2.8_pre1-r1.ebuild:
+ Make sure the cracklib dicts are generated.
*cracklib-2.8_pre1 (11 Feb 2005)
diff --git a/sys-libs/cracklib/cracklib-2.8_pre1-r1.ebuild b/sys-libs/cracklib/cracklib-2.8_pre1-r1.ebuild
new file mode 100644
index 000000000000..41f7a4c98ffd
--- /dev/null
+++ b/sys-libs/cracklib/cracklib-2.8_pre1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.8_pre1-r1.ebuild,v 1.1 2005/03/01 22:20:11 vapier Exp $
+
+inherit eutils toolchain-funcs
+
+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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="minimal"
+
+RDEPEND="sys-apps/miscfiles"
+DEPEND="${RDEPEND}
+ uclibc? ( app-arch/gzip )
+ sys-devel/gcc-config"
+PDEPEND="!minimal? ( sys-apps/cracklib-words )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-dictname.patch
+}
+
+src_compile() {
+ econf --disable-dependency-tracking || die
+ emake || die
+}
+
+src_install() {
+ make 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"
+ export PATH=${PATH}:${D}/usr/sbin
+ cracklib-format dicts/cracklib-small \
+ | cracklib-packer "${D}"/usr/$(get_libdir)/cracklib_dict \
+ || die "couldnt create dict"
+
+ dodoc AUTHORS ChangeLog NEWS README*
+}
diff --git a/sys-libs/cracklib/files/cracklib-2.8_pre1-dictname.patch b/sys-libs/cracklib/files/cracklib-2.8_pre1-dictname.patch
new file mode 100644
index 000000000000..c5d0ddedeace
--- /dev/null
+++ b/sys-libs/cracklib/files/cracklib-2.8_pre1-dictname.patch
@@ -0,0 +1,5 @@
+--- util/Makefile.in
++++ util/Makefile.in
+@@ -99,1 +99,1 @@
+-AM_CPPFLAGS = -I. -I.. -I$(top_srcdir)/lib '-DDEFAULT_CRACKLIB_DICT="$(pkgdatadir)/pw_dict"'
++AM_CPPFLAGS = -I. -I.. -I$(top_srcdir)/lib '-DDEFAULT_CRACKLIB_DICT="$(libdir)/cracklib_dict"'
diff --git a/sys-libs/cracklib/files/digest-cracklib-2.8_pre1-r1 b/sys-libs/cracklib/files/digest-cracklib-2.8_pre1-r1
new file mode 100644
index 000000000000..61f7357064d1
--- /dev/null
+++ b/sys-libs/cracklib/files/digest-cracklib-2.8_pre1-r1
@@ -0,0 +1 @@
+MD5 6c54b3c0f56da72c840a5d923cb3e3ae cracklib-2.8pre1.tar.gz 461929