From 1a003cce54bdb63cccd859f024a5da75ea56ea68 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 26 Sep 2015 00:19:06 +0200 Subject: [PATCH] ebuild, small fix --- hashboot-9999.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ initscript.openrc | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 hashboot-9999.ebuild diff --git a/hashboot-9999.ebuild b/hashboot-9999.ebuild new file mode 100644 index 0000000..9a192b2 --- /dev/null +++ b/hashboot-9999.ebuild @@ -0,0 +1,38 @@ +EAPI="4" + +EGIT_REPO_URI="git://git.tastytea.de/repositories/hashboot.git" + +inherit eutils git-2 + +DESCRIPTION="Check integrity of files in /boot" +HOMEPAGE="https://git.tastytea.de/?p=hashboot.git" +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + sys-apps/coreutils + app-arch/tar + sys-apps/findutils + sys-apps/grep +" +DEPEND="${RDEPEND} +" +PDEPEND=" +" + +src_unpack() { + git-2_src_unpack +} + +src_prepare() { + mv initscript.openrc hashboot +} + + +src_install() { + dodoc README + dobin hashboot.sh + doinitd hashboot +} \ No newline at end of file diff --git a/initscript.openrc b/initscript.openrc index bf76ba2..45404c4 100755 --- a/initscript.openrc +++ b/initscript.openrc @@ -19,7 +19,7 @@ start() then echo -n "Recover files? [y/N] " read -r yesno - if [ ${yesno} == "y" ] + if [ "${yesno}" == "y" ] then hashboot.sh recover fi