# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="A simple tool to check the integrity of the booted system and take appropriate steps in the case of a failed boot."
HOMEPAGE="https://git.pinkro.se/Rose/gardenhouse/boot_bless.git/about/"
SRC_URI="https://git.pinkro.se/Rose/gardenhouse/boot_bless.git/snapshot/boot_bless-1.1.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="* -~*"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

src_install() {
	exeinto /usr/bin/
	doexe usr/bin/*

	doinitd dist/init/*
}

pkg_postinst() {
	if [[ -z "${REPLACING_VERSIONS}" ]]; then
		elog "Please note that boot_bless requires further configuration."
		elog ""
		elog "For details see https://git.pinkro.se/Rose/gardenhouse/boot_bless.git/about/"
	fi
}