2019-02-05 10:37:04 +01:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2018-06-21 21:43:10 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-02-05 10:37:04 +01:00
|
|
|
EAPI=7
|
2018-05-08 06:50:18 +02:00
|
|
|
|
2018-05-22 00:52:05 +02:00
|
|
|
EGIT_REPO_URI="https://github.com/tastytea/hashboot.git"
|
2018-05-08 06:50:18 +02:00
|
|
|
|
2019-02-05 10:37:04 +01:00
|
|
|
inherit git-r3
|
2018-05-08 06:50:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Check integrity of files in /boot"
|
2019-02-05 10:37:04 +01:00
|
|
|
HOMEPAGE="https://github.com/tastytea/hashboot/"
|
2018-05-08 06:50:18 +02:00
|
|
|
LICENSE="hug-ware"
|
|
|
|
SLOT="0"
|
2018-05-22 00:52:05 +02:00
|
|
|
KEYWORDS=""
|
2019-03-30 00:13:13 +01:00
|
|
|
IUSE="firmware"
|
|
|
|
|
|
|
|
RDEPEND="firmware? ( sys-apps/flashrom )"
|
|
|
|
DEPEND="app-text/asciidoc"
|
2018-05-08 06:50:18 +02:00
|
|
|
|
2019-02-24 11:16:47 +01:00
|
|
|
src_preinst() {
|
2019-02-05 10:37:04 +01:00
|
|
|
default
|
2019-03-30 00:13:13 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2019-02-24 15:37:27 +01:00
|
|
|
src_compile() {
|
|
|
|
./build_manpage.sh
|
|
|
|
}
|
|
|
|
|
2018-05-08 06:50:18 +02:00
|
|
|
src_install() {
|
2019-03-30 00:13:13 +01:00
|
|
|
default
|
2018-05-08 06:50:18 +02:00
|
|
|
dobin hashboot
|
2019-03-30 00:13:13 +01:00
|
|
|
newinitd init/openrc hashboot
|
2019-02-24 15:37:27 +01:00
|
|
|
doman ${PN}.1
|
2018-05-08 06:50:18 +02:00
|
|
|
}
|