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

56 lines
918 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
EGIT_REPO_URI="https://github.com/tastytea/hashboot.git"
inherit eutils git-r3
DESCRIPTION="Check integrity of files in /boot"
HOMEPAGE="https://git.tastytea.de/?p=hashboot.git"
LICENSE="hug-ware"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
sys-apps/coreutils
app-arch/tar
sys-apps/findutils
sys-apps/grep
virtual/awk
app-shells/bash
sys-apps/util-linux
sys-apps/diffutils
sys-apps/sed
"
DEPEND="${RDEPEND}
"
PDEPEND="
"
src_unpack() {
git-r3_src_unpack
}
src_prepare() {
if grep -q '^rc_parallel="YES"' /etc/rc.conf
then
ewarn "hashboot does not work properly with parallel boot enabled."
fi
mkdir init
mv initscript.openrc init/hashboot
mv LICENSE HUG-WARE
}
src_install() {
dodoc README
insinto /usr/portage/licenses
doins HUG-WARE
dobin hashboot
doinitd init/hashboot
}