summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAgostino Sarubbo <ago@gentoo.org>2019-09-30 10:33:47 +0200
committerAgostino Sarubbo <ago@gentoo.org>2019-09-30 10:33:47 +0200
commita203c4f531799644eb31137582439f0184e0695b (patch)
tree83c0d7db3c98e5c772ce5ca1b784dcb63fecce8c /sys-kernel
parentsys-kernel/dappersec-sources: Regenerate Manifest (diff)
downloadago-a203c4f531799644eb31137582439f0184e0695b.tar.gz
ago-a203c4f531799644eb31137582439f0184e0695b.tar.bz2
ago-a203c4f531799644eb31137582439f0184e0695b.zip
sys-kernel/gentoo-sources-kernelimage: First commit
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-sources-kernelimage/ChangeLog5
-rw-r--r--sys-kernel/gentoo-sources-kernelimage/Manifest5
-rw-r--r--sys-kernel/gentoo-sources-kernelimage/files/bashrc29
-rw-r--r--sys-kernel/gentoo-sources-kernelimage/gentoo-sources-kernelimage-4.19.71.ebuild36
-rw-r--r--sys-kernel/gentoo-sources-kernelimage/metadata.xml8
5 files changed, 83 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-sources-kernelimage/ChangeLog b/sys-kernel/gentoo-sources-kernelimage/ChangeLog
new file mode 100644
index 0000000..f1ffa68
--- /dev/null
+++ b/sys-kernel/gentoo-sources-kernelimage/ChangeLog
@@ -0,0 +1,5 @@
+*gentoo-sources-kernelimage-4.19.71 (30 Sep 2019)
+
+ 30 Sep 2019; Agostino Sarubbo <ago@gentoo.org> +files/bashrc,
+ +gentoo-sources-kernelimage-4.19.71.ebuild, +metadata.xml:
+ sys-kernel/gentoo-sources-kernelimage: First commit
diff --git a/sys-kernel/gentoo-sources-kernelimage/Manifest b/sys-kernel/gentoo-sources-kernelimage/Manifest
new file mode 100644
index 0000000..11ca01a
--- /dev/null
+++ b/sys-kernel/gentoo-sources-kernelimage/Manifest
@@ -0,0 +1,5 @@
+AUX bashrc 635 SHA256 a123aaa2fd47326f33dfe9c8bac06adfcbbcc8d30afd75046ddf7e56bd55f9cd SHA512 9f415083ce36a6cdc318fff343b05281974b2d416c2921eb014447dc587ddd65e3263fa761a89f2341b991cc782b7d37593d6c4bc50e2d18a61db245af3340d3 WHIRLPOOL d4d197662e506519f4b964c596964b720e43c8b230dc28575c677e9c66a215700128908ad18b0af3a68b0d0b2b1fbbd35b30af416935f35b276c6dae226ce465
+DIST gentoo-sources-kernelimage-4.19.71.tar.xz 38645292 SHA256 b29a8adeee7d2a0acfa5e354e4045cd7aaf64fbf58aca81903e95559a2362b27 SHA512 87a87da7bd038dbedfd26685e670062513a94f438cb604b05f495710b99588dbb11621d68a28521a86fbe4a219a94f238d37086ca41084405624d39158b2f0be WHIRLPOOL 894ab8cbf396f23840b0ef2078c745b383dd6177b95b314af53e2d17787197ed1590d0bffd4d83dd100d3abd7fb49b11b4eee51f8c0e442be6ee060a43a1b53c
+EBUILD gentoo-sources-kernelimage-4.19.71.ebuild 995 SHA256 12d0a19c4662b3b1484b86e8f68ff6177637ae3b91ff9473d7b9588ab2df4daf SHA512 72595cacf57ebbc103d3c207c6a9440c98948284a9a8b1d0a749608d0eb11041d3c645a935164cb5ea115a726e64bd532863bc4ada6b9a1e5647f96d2c002198 WHIRLPOOL 5325309680399bf50a578f888f68797c9d4e476aee0f2f6c75259836ebacf2bec13a1eb8bcea21bab3f7dc700fc795b324317644be49231ff1b749c367e31f13
+MISC ChangeLog 230 SHA256 e4a86d831d6812e3fe26db15e302e791d564f654cae1a5328c5a10403332ec45 SHA512 87954924b63b04dd449b95834798051b86c00c5a4f6dd52ea3be6326f2aa578fd6c9eb128a589778cce9a310bbe114f0502ad83c4cf64018cb03331cff349f65 WHIRLPOOL fb90c8d66f9f572056c647923246af6442a4228e400b04daf2920780b5ac1f36a666af623f9ec81e61326b6b4d30767b83ac0190a8bd1f9ad4510fc05387585b
+MISC metadata.xml 252 SHA256 0df10ba8b53ce829ea0fdf3b8f808ae371f24235ab02a7f94967fe0c2d7845bf SHA512 1f9486ce3b84ae866622da9d6e26a3e873467fe1607826fca6b0cc2f6091b0c8f94c4cff6717c57419867ac74bd371c0ef8f035ffb1ffcb1c4cbfae86f544ab5 WHIRLPOOL f993df191d6ce02786a5a2234510fbae80c9e1e1661c2a89cfe71be92cf5668fda737e28faedb21765de32526df074b3ef4eef6f5110020aa8232b1cb85aa7dc
diff --git a/sys-kernel/gentoo-sources-kernelimage/files/bashrc b/sys-kernel/gentoo-sources-kernelimage/files/bashrc
new file mode 100644
index 0000000..68d7ddf
--- /dev/null
+++ b/sys-kernel/gentoo-sources-kernelimage/files/bashrc
@@ -0,0 +1,29 @@
+function post_pkg_postinst() {
+ if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
+ then
+ grub2-mkconfig -o /boot/grub/grub.cfg || die
+ umount /boot || die
+ fi
+}
+
+function pre_pkg_preinst() {
+ if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
+ then
+ mount /boot || die
+ fi
+}
+
+function pre_pkg_prerm() {
+ if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
+ then
+ mount /boot || die
+ fi
+}
+
+function post_pkg_postrm() {
+ if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
+ then
+ grub2-mkconfig -o /boot/grub/grub.cfg || die
+ umount /boot || die
+ fi
+}
diff --git a/sys-kernel/gentoo-sources-kernelimage/gentoo-sources-kernelimage-4.19.71.ebuild b/sys-kernel/gentoo-sources-kernelimage/gentoo-sources-kernelimage-4.19.71.ebuild
new file mode 100644
index 0000000..32c0e0f
--- /dev/null
+++ b/sys-kernel/gentoo-sources-kernelimage/gentoo-sources-kernelimage-4.19.71.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A 'genkernel all' kernel image compiled on gentoo-sources"
+HOMEPAGE="https://www.gentoo.org"
+SRC_URI="https://dev.gentoo.org/~ago/distfiles/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="${PVR}"
+KEYWORDS="-* ~amd64"
+RDEPEND="sys-kernel/linux-firmware"
+RESTRICT="strip"
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != buildonly ]]
+ then
+ ewarn
+ ewarn
+ ewarn "If you have a separate BOOT partition, is highly recommended to configure a portage HOOK."
+ ewarn "This is needed because the boot partition needs to be mounted and umounted."
+ ewarn "You may also, want to configure your bootloader."
+ ewarn "A valid example is available into /usr/share/doc/${PF}/bashrc.bz2"
+ ewarn
+ ewarn
+ fi
+}
+
+src_install() {
+ dodir /boot /lib/modules
+ cp *genkernel* "${D}"/boot/ || die
+ cp -r "${PV}"-gentoo "${D}"/lib/modules/ || die
+ insinto /usr/share/doc/${PF}
+ doins "${FILESDIR}"/bashrc
+}
diff --git a/sys-kernel/gentoo-sources-kernelimage/metadata.xml b/sys-kernel/gentoo-sources-kernelimage/metadata.xml
new file mode 100644
index 0000000..04a76b1
--- /dev/null
+++ b/sys-kernel/gentoo-sources-kernelimage/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>ago@gentoo.org</email>
+ <name>Agostino Sarubbo</name>
+ </maintainer>
+</pkgmetadata>