overlay/sys-apps/hashboot/hashboot-9999.ebuild

44 lines
877 B
Bash
Raw Normal View History

# Copyright 1999-2019 Gentoo Authors
2018-06-21 21:43:10 +02:00
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2018-05-08 06:50:18 +02:00
inherit git-r3
2018-05-08 06:50:18 +02:00
DESCRIPTION="Check integrity of files in /boot"
HOMEPAGE="https://schlomp.space/tastytea/hashboot"
EGIT_REPO_URI="https://schlomp.space/tastytea/hashboot.git"
2018-05-08 06:50:18 +02:00
LICENSE="hug-ware"
SLOT="0"
2018-05-22 00:52:05 +02:00
KEYWORDS=""
IUSE="firmware"
RDEPEND="firmware? ( sys-apps/flashrom )"
DEPEND="app-text/asciidoc"
2018-05-08 06:50:18 +02:00
S="${WORKDIR}/${PN}"
pkg_preinst() {
if grep -q '^rc_parallel="YES"' /etc/rc.conf; then
2018-05-08 06:50:18 +02:00
ewarn "hashboot does not work properly with parallel boot enabled."
fi
}
src_compile() {
./build_manpage.sh
}
2018-05-08 06:50:18 +02:00
src_install() {
default
2018-05-08 06:50:18 +02:00
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."
2018-05-08 06:50:18 +02:00
}