diff --git a/sys-apps/cracklib-words/cracklib-words-2.9.6.ebuild b/sys-apps/cracklib-words/cracklib-words-2.9.6.ebuild index 6f3b6cfc1d805..4ead5b71c749e 100644 --- a/sys-apps/cracklib-words/cracklib-words-2.9.6.ebuild +++ b/sys-apps/cracklib-words/cracklib-words-2.9.6.ebuild @@ -1,18 +1,16 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="5" +EAPI=7 -DESCRIPTION="large set of crack/cracklib dictionaries" +DESCRIPTION="Large set of crack/cracklib dictionaries" HOMEPAGE="https://github.com/cracklib/cracklib/" SRC_URI="https://github.com/cracklib/cracklib/releases/download/${P/-words}/${P}.gz" +S="${WORKDIR}" LICENSE="public-domain" SLOT="0" KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86" -IUSE="" - -S=${WORKDIR} src_install() { insinto /usr/share/dict @@ -20,7 +18,7 @@ src_install() { } pkg_postinst() { - if [ "${ROOT}" = "/" ] && create-cracklib-dict -h >&/dev/null ; then + if [[ -z "${ROOT}" ]] && create-cracklib-dict -h >&/dev/null ; then ebegin "Regenerating cracklib dictionary" create-cracklib-dict /usr/share/dict/* >/dev/null eend $?