forked from tastytea/overlay
tmweaver
8bf89ef408
When downloading the hashboot tarball, e.g. `hashboot-0.9.14.tar.gz` it extracts to a folder without the version name, so `hashboot`. This breaks when trying to `emerge hashboot` because the ebuild is looking for the source code in `/var/tmp/portage/sys-apps/hashboot-0.9.14/work/hashboot-0.9.14` when it's actually located at `/var/tmp/portage/sys-apps/hashboot-0.9.14/work/hashboot`. In the ebuild that the `P` variable resolves to `hashboot-0.9.14` and by default `S` and `P` are the same. `S` is what Portage uses to figure out where the source is, which is why it's trying to find it in `/var/tmp/portage/sys-apps/hashboot-0.9.14/work/hashboot-0.9.14`. I managed to get it to build by editing the ebuild to set the `S` variable as so: `S="${WORKDIR}/${PN}"`, which is what this commit adds to the ebuild.
44 lines
877 B
Bash
44 lines
877 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"
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
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."
|
|
}
|