about summary refs log tree commit diff
path: root/sys-kernel/buildkernel/buildkernel-2.0.0.ebuild
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:52:14 +0300
commit12e5779dd038b593f0ff947a54c3b54bf0e8c183 (patch)
tree6fcd154745b1956e4a0aa1f9e976d0ddebde1c86 /sys-kernel/buildkernel/buildkernel-2.0.0.ebuild
chore: init HEAD master
Diffstat (limited to '')
-rw-r--r--sys-kernel/buildkernel/buildkernel-2.0.0.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-kernel/buildkernel/buildkernel-2.0.0.ebuild b/sys-kernel/buildkernel/buildkernel-2.0.0.ebuild
new file mode 100644
index 0000000..be42959
--- /dev/null
+++ b/sys-kernel/buildkernel/buildkernel-2.0.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Build secure boot EFI kernel with LUKS and LVM"
+HOMEPAGE="https://github.com/azahi/buildkernel"
+SRC_URI="https://github.com/azahi/buildkernel/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+	>=sys-apps/gptfdisk-0.8.8
+	>=sys-fs/cryptsetup-1.6.2
+	>=app-shells/bash-4.2:*
+"
+RDEPEND="${DEPEND}
+	>=sys-libs/ncurses-5.9-r2
+	>=app-crypt/sbsigntools-0.6-r1
+	>=sys-kernel/genkernel-next-58[cryptsetup]
+	>=sys-boot/efibootmgr-0.5.4-r1
+	>=sys-apps/debianutils-4.9.1[installkernel(+)]
+"
+BDEPEND="
+	>=virtual/linux-sources-3
+"
+
+src_install() {
+	dosbin "${PN}"
+	insinto "/etc"
+	doins "${PN}.conf"
+}
+
+pkg_preinst() {
+	if [ -e "${ROOT}/etc/${PN}.conf" ]; then
+		elog "/etc/${PN}.conf already exists, not overwriting."
+		cp "${ROOT}/etc/${PN}.conf" "${D}/etc/${PN}.conf"
+	fi
+}

Consider giving Nix/NixOS a try! <3