From b4433aa02f4af4d7b231c7f459f82d0efe24786a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 30 Dec 2006 02:28:34 +0000 Subject: [PATCH] Regenerate the cracklib dictionary in pkg_postinst from all dict files #114690 by Philippe Troin. Package-Manager: portage-2.1.2_rc4-r2 --- sys-apps/cracklib-words/ChangeLog | 8 ++++++-- sys-apps/cracklib-words/cracklib-words-1.1.ebuild | 12 ++++++++++-- .../cracklib-words/files/digest-cracklib-words-1.1 | 2 ++ sys-apps/miscfiles/ChangeLog | 8 ++++++-- sys-apps/miscfiles/miscfiles-1.4.2.ebuild | 10 +++++++++- 5 files changed, 33 insertions(+), 7 deletions(-) diff --git a/sys-apps/cracklib-words/ChangeLog b/sys-apps/cracklib-words/ChangeLog index fcb3d2a1c246..55e67f86d81d 100644 --- a/sys-apps/cracklib-words/ChangeLog +++ b/sys-apps/cracklib-words/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/cracklib-words -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cracklib-words/ChangeLog,v 1.1 2005/02/12 20:21:06 vapier Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cracklib-words/ChangeLog,v 1.2 2006/12/30 02:27:53 vapier Exp $ + + 30 Dec 2006; Mike Frysinger cracklib-words-1.1.ebuild: + Regenerate the cracklib dictionary in pkg_postinst from all dict files + #114690 by Philippe Troin. *cracklib-words-1.1 (12 Feb 2004) diff --git a/sys-apps/cracklib-words/cracklib-words-1.1.ebuild b/sys-apps/cracklib-words/cracklib-words-1.1.ebuild index b0563b94c3d0..2358229e4c48 100644 --- a/sys-apps/cracklib-words/cracklib-words-1.1.ebuild +++ b/sys-apps/cracklib-words/cracklib-words-1.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cracklib-words/cracklib-words-1.1.ebuild,v 1.2 2005/05/24 01:07:10 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cracklib-words/cracklib-words-1.1.ebuild,v 1.3 2006/12/30 02:27:53 vapier Exp $ DESCRIPTION="large set of crack/cracklib dictionaries" HOMEPAGE="http://sourceforge.net/projects/cracklib" @@ -19,3 +19,11 @@ src_install() { insinto /usr/share/dict doins cracklib-words || die } + +pkg_postinst() { + if [[ ${ROOT} == "/" ]] ; then + ebegin "Regenerating cracklib dictionary" + create-cracklib-dict /usr/share/dict/* > /dev/null + eend $? + fi +} diff --git a/sys-apps/cracklib-words/files/digest-cracklib-words-1.1 b/sys-apps/cracklib-words/files/digest-cracklib-words-1.1 index 2332679056cd..4a11c09ac9bc 100644 --- a/sys-apps/cracklib-words/files/digest-cracklib-words-1.1 +++ b/sys-apps/cracklib-words/files/digest-cracklib-words-1.1 @@ -1 +1,3 @@ MD5 575a44add4db95b43c7abb46b307950f cracklib-words.gz 4559371 +RMD160 ff94566ba5b5068064c0ed094480adec91e4ad24 cracklib-words.gz 4559371 +SHA256 59b684a93ba98fa1aae1006762b25d06c2e0e51d84f61ceff6dc1fbc0b6dc374 cracklib-words.gz 4559371 diff --git a/sys-apps/miscfiles/ChangeLog b/sys-apps/miscfiles/ChangeLog index f435fdcbc040..3f985a3ad904 100644 --- a/sys-apps/miscfiles/ChangeLog +++ b/sys-apps/miscfiles/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/miscfiles -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/miscfiles/ChangeLog,v 1.21 2005/05/30 02:41:49 solar Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/miscfiles/ChangeLog,v 1.22 2006/12/30 02:28:34 vapier Exp $ + + 30 Dec 2006; Mike Frysinger miscfiles-1.4.2.ebuild: + Regenerate the cracklib dictionary in pkg_postinst from all dict files + #114690 by Philippe Troin. 29 May 2005; miscfiles-1.3-r1.ebuild: - update sys-apps/miscfiles to use libc expanded variable elibc_uclibc vs diff --git a/sys-apps/miscfiles/miscfiles-1.4.2.ebuild b/sys-apps/miscfiles/miscfiles-1.4.2.ebuild index 32250b32de60..1e9124dba5d4 100644 --- a/sys-apps/miscfiles/miscfiles-1.4.2.ebuild +++ b/sys-apps/miscfiles/miscfiles-1.4.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/miscfiles/miscfiles-1.4.2.ebuild,v 1.3 2006/12/30 02:12:57 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/miscfiles/miscfiles-1.4.2.ebuild,v 1.4 2006/12/30 02:28:34 vapier Exp $ inherit eutils @@ -39,3 +39,11 @@ src_install() { rm -r misc rfc fi } + +pkg_postinst() { + if [[ ${ROOT} == "/" ]] ; then + ebegin "Regenerating cracklib dictionary" + create-cracklib-dict /usr/share/dict/* > /dev/null + eend $? + fi +} -- 2.26.2