mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
sys-apps/miscfiles: Sync with Gentoo
It's from Gentoo commit 4c8d6fbf8598929497d56cd1547a2c380b8355b1.
This commit is contained in:
parent
18b3a58e44
commit
48c4387d18
@ -1,8 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>base-system@gentoo.org</email>
|
<email>base-system@gentoo.org</email>
|
||||||
<name>Gentoo Base System</name>
|
<name>Gentoo Base System</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="savannah">miscfiles</remote-id>
|
||||||
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="6"
|
EAPI=7
|
||||||
|
|
||||||
UNI_PV="10.0.0"
|
UNI_PV="10.0.0"
|
||||||
DESCRIPTION="Miscellaneous files"
|
DESCRIPTION="Miscellaneous files"
|
||||||
@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/miscfiles/${P}.tar.gz
|
|||||||
|
|
||||||
LICENSE="GPL-2 unicode"
|
LICENSE="GPL-2 unicode"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||||
IUSE="minimal"
|
IUSE="minimal"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
@ -31,14 +31,14 @@ src_install() {
|
|||||||
|
|
||||||
# not sure if this is still needed ...
|
# not sure if this is still needed ...
|
||||||
dodir /usr/share/dict
|
dodir /usr/share/dict
|
||||||
cd "${ED%/}"/usr/share/misc || die
|
cd "${ED}"/usr/share/misc || die
|
||||||
mv $(awk '$1=="dictfiles"{$1="";$2="";print}' "${S}"/Makefile) ../dict/ || die
|
mv $(awk '$1=="dictfiles"{$1="";$2="";print}' "${S}"/Makefile) ../dict/ || die
|
||||||
cd ../dict || die
|
cd ../dict || die
|
||||||
ln -s web2 words || die
|
ln -s web2 words || die
|
||||||
ln -s web2a extra.words || die
|
ln -s web2a extra.words || die
|
||||||
|
|
||||||
if use minimal ; then
|
if use minimal ; then
|
||||||
pushd "${ED%/}"/usr/share/dict || die
|
pushd "${ED}"/usr/share/dict || die
|
||||||
rm -f words extra.words || die
|
rm -f words extra.words || die
|
||||||
gzip -9 * || die
|
gzip -9 * || die
|
||||||
ln -s web2.gz words || die
|
ln -s web2.gz words || die
|
||||||
@ -46,12 +46,12 @@ src_install() {
|
|||||||
ln -s connectives{.gz,} || die
|
ln -s connectives{.gz,} || die
|
||||||
ln -s propernames{.gz,} || die
|
ln -s propernames{.gz,} || die
|
||||||
popd || die
|
popd || die
|
||||||
rm -r "${ED%/}"/usr/share/misc || die
|
rm -r "${ED}"/usr/share/misc || die
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
if [[ ${ROOT} == "/" ]] && type -P create-cracklib-dict >/dev/null ; then
|
if [[ -z ${ROOT} ]] && type -P create-cracklib-dict >/dev/null ; then
|
||||||
ebegin "Regenerating cracklib dictionary"
|
ebegin "Regenerating cracklib dictionary"
|
||||||
create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null
|
create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null
|
||||||
eend $?
|
eend $?
|
Loading…
Reference in New Issue
Block a user