2021-03-09 08:38:39 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2019-03-30 00:19:02 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
DESCRIPTION="Check integrity of files in /boot"
|
2019-06-20 22:23:34 +02:00
|
|
|
HOMEPAGE="https://schlomp.space/tastytea/hashboot"
|
2021-03-09 08:38:39 +01:00
|
|
|
SRC_URI="https://schlomp.space/tastytea/hashboot/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
2019-03-30 00:19:02 +01:00
|
|
|
|
|
|
|
LICENSE="hug-ware"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="firmware"
|
|
|
|
|
|
|
|
RDEPEND="firmware? ( sys-apps/flashrom )"
|
|
|
|
DEPEND="app-text/asciidoc"
|
|
|
|
|
2019-06-20 22:23:34 +02:00
|
|
|
pkg_preinst() {
|
2019-03-30 00:19:02 +01:00
|
|
|
if grep -q '^rc_parallel="YES"' /etc/rc.conf; then
|
|
|
|
ewarn "hashboot does not work properly with parallel boot enabled."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
./build_manpage.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
dobin hashboot
|
|
|
|
newinitd init/openrc hashboot
|
|
|
|
doman ${PN}.1
|
2019-06-20 22:23:34 +02:00
|
|
|
exeinto etc/kernel/postinst.d
|
|
|
|
newexe hooks/kernel-postinst zzz-hashboot
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog "You have to run hashboot index before enabling the init script."
|
2019-03-30 00:19:02 +01:00
|
|
|
}
|