overlay/sys-apps/hashboot/hashboot-9999.ebuild
tastytea adfe955aca
sys-apps/hashboot: Version bump 0.9.14 and repo location change.
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2019-06-20 22:23:34 +02:00

42 lines
855 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
DESCRIPTION="Check integrity of files in /boot"
HOMEPAGE="https://schlomp.space/tastytea/hashboot"
EGIT_REPO_URI="https://schlomp.space/tastytea/hashboot.git"
LICENSE="hug-ware"
SLOT="0"
KEYWORDS=""
IUSE="firmware"
RDEPEND="firmware? ( sys-apps/flashrom )"
DEPEND="app-text/asciidoc"
pkg_preinst() {
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
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."
}