about summary refs log tree commit diff
path: root/sys-kernel/buildkernel
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/buildkernel')
-rw-r--r--sys-kernel/buildkernel/Manifest1
-rw-r--r--sys-kernel/buildkernel/buildkernel-2.0.0.ebuild41
-rw-r--r--sys-kernel/buildkernel/metadata.xml8
3 files changed, 50 insertions, 0 deletions
diff --git a/sys-kernel/buildkernel/Manifest b/sys-kernel/buildkernel/Manifest
new file mode 100644
index 0000000..d2d1092
--- /dev/null
+++ b/sys-kernel/buildkernel/Manifest
@@ -0,0 +1 @@
+DIST buildkernel-2.0.0.tar.gz 37222 BLAKE2B a263a9fcbaf4a8a3037ebecbce5b35dc883f750600e18ccca51cc2e3d9be1057554d5c6befb25211648565979087647175ebfb35c8ed2f60aa54c6e5a19fc324 SHA512 fa022e9f3539e5456b87003d8d85c052b5c76a1a30b1e3ee9a97c0cff391205c442ff4a9c70442eba9b95c3f98f2a686f7d7be759dc5257e3ce3c4fe81922e7b
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
+}
diff --git a/sys-kernel/buildkernel/metadata.xml b/sys-kernel/buildkernel/metadata.xml
new file mode 100644
index 0000000..4d6b6f8
--- /dev/null
+++ b/sys-kernel/buildkernel/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>azat@bahawi.net</email>
+		<name>Azat Bahawi</name>
+	</maintainer>
+</pkgmetadata>

Consider giving Nix/NixOS a try! <3