gentoo-ebuilds/sys-apps/cracklib-words/cracklib-words-2.10.3.ebuild
Sam James 1caef305e5
sys-apps/cracklib-words: Stabilize 2.10.3 ALLARCHES, #950147
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-23 05:15:07 +00:00

27 lines
722 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Note: ideally bump with sys-libs/cracklib
DESCRIPTION="Large set of crack/cracklib dictionaries"
HOMEPAGE="https://github.com/cracklib/cracklib/"
SRC_URI="https://github.com/cracklib/cracklib/releases/download/v${PV}/${P}.xz"
S="${WORKDIR}"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~m68k ~mips ppc ppc64 ~s390 sparc x86"
src_install() {
insinto /usr/share/dict
newins ${P} ${PN}
}
pkg_postinst() {
if [[ -n ${ROOT} ]] && create-cracklib-dict -h >&/dev/null ; then
ebegin "Regenerating cracklib dictionary"
create-cracklib-dict /usr/share/dict/* >/dev/null
eend $?
fi
}