summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAgostino Sarubbo <ago@gentoo.org>2019-11-20 15:39:35 +0100
committerAgostino Sarubbo <ago@gentoo.org>2019-11-20 15:39:35 +0100
commitbc8c3a2bb1d24ab7097564c369982d973ebd8704 (patch)
treef98c726ab76cad14d40202743d59898036d86074 /sys-kernel
parentsys-kernel/gentoo-sources-kernelimage: remove before doins. Add die (diff)
downloadago-bc8c3a2bb1d24ab7097564c369982d973ebd8704.tar.gz
ago-bc8c3a2bb1d24ab7097564c369982d973ebd8704.tar.bz2
ago-bc8c3a2bb1d24ab7097564c369982d973ebd8704.zip
sys-kernel/gentoo-sources-image: first commit, renamed from sys-kernel/gentoo-sources-kernelimage
Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-sources-image/ChangeLog6
-rw-r--r--sys-kernel/gentoo-sources-image/Manifest5
-rw-r--r--sys-kernel/gentoo-sources-image/files/bashrc15
-rw-r--r--sys-kernel/gentoo-sources-image/gentoo-sources-image-4.19.84.ebuild41
-rw-r--r--sys-kernel/gentoo-sources-image/metadata.xml8
5 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-sources-image/ChangeLog b/sys-kernel/gentoo-sources-image/ChangeLog
new file mode 100644
index 0000000..7b6afb5
--- /dev/null
+++ b/sys-kernel/gentoo-sources-image/ChangeLog
@@ -0,0 +1,6 @@
+*gentoo-sources-image-4.19.84 (20 Nov 2019)
+
+ 20 Nov 2019; Agostino Sarubbo <ago@gentoo.org> +files/bashrc,
+ +gentoo-sources-image-4.19.84.ebuild, +metadata.xml:
+ sys-kernel/gentoo-sources-image: first commit, renamed from sys-kernel/gentoo-
+ sources-kernelimage
diff --git a/sys-kernel/gentoo-sources-image/Manifest b/sys-kernel/gentoo-sources-image/Manifest
new file mode 100644
index 0000000..135a63d
--- /dev/null
+++ b/sys-kernel/gentoo-sources-image/Manifest
@@ -0,0 +1,5 @@
+AUX bashrc 416 SHA256 265fe4f8ce8362ce905c174c4030498763e9d3de1448ec5b5c301d7082ed51be SHA512 8a32847265a91deabc9e132c0650f57901de5bf5de7cc6f66eb52fc16b9c3c5b72a3307328b5199110b4aa54de1e3f1936b7ff3563dcaaa6e3d4d470d15c3e50 WHIRLPOOL a73d42a23571f4ee11fe748ff17ffda93959d94520041fca8d82802255d6d4d1eafdf743aa8f7c5b1474b3efba9f5b20373b793390e5e7c926f41d91a0c8b910
+DIST gentoo-sources-image-4.19.84.tar.xz 55786412 SHA256 686c38e13be9aed7c50fe8169d0cf1b2ba82e77e553363ff87a0175fff03da16 SHA512 bf11b0c914a619e2933defd61abaa733469cb1ef6700581d8c334f3440406cf363159f13b5f54dcd4c20d00b01eae5673e6b3670889c1949c328f3f642324422 WHIRLPOOL f5ad44c69066b99a6e92136a4f8173214c59897dc134794ab113ecf511c5d2ef472855b5979329e4abe8b15e4eacc15d748a0097d6b8c9070c4ba638323076f0
+EBUILD gentoo-sources-image-4.19.84.ebuild 914 SHA256 6e0648fc225d34716a1a3fe3c7328f7fe0c63293216c30beba49d8b6b9bf5a0b SHA512 45bf55cba8972b1eb2fad3f72ff666cc7e8f6c60f4e28272d693d2c14592eca4717c439d758f07cf53de51d456f609de6a6c8f31989b71237978d288c3ffd0d2 WHIRLPOOL 2de29e5a1b4931585ccf753e224221b4a558183f78ca0006a7b6120e858a6d87e03bec3a7626df236745bbcec231c9e867051066174d8b4fd4ff4dea17558030
+MISC ChangeLog 267 SHA256 14ba3e0f10372ee258299ccc702a3aa15aa558bd78474fd0f53cb9ee3d3b9101 SHA512 88f3652da361ea3f69411e07d68458192794254e92010e73fe16739ae54cd3835963aaf0f4e9965d81adcb520fcceca1bac041c5dbc1829431d4916bb6daf29f WHIRLPOOL 5630e32da9dd97825272209cb4b21210524e168b3822adbfbab4adb9bcb8fbe049e305728fb7be5660bc85b310d13d4b2915845764e27bb48dd1fe92bffed696
+MISC metadata.xml 252 SHA256 0df10ba8b53ce829ea0fdf3b8f808ae371f24235ab02a7f94967fe0c2d7845bf SHA512 1f9486ce3b84ae866622da9d6e26a3e873467fe1607826fca6b0cc2f6091b0c8f94c4cff6717c57419867ac74bd371c0ef8f035ffb1ffcb1c4cbfae86f544ab5 WHIRLPOOL f993df191d6ce02786a5a2234510fbae80c9e1e1661c2a89cfe71be92cf5668fda737e28faedb21765de32526df074b3ef4eef6f5110020aa8232b1cb85aa7dc
diff --git a/sys-kernel/gentoo-sources-image/files/bashrc b/sys-kernel/gentoo-sources-image/files/bashrc
new file mode 100644
index 0000000..f16aa53
--- /dev/null
+++ b/sys-kernel/gentoo-sources-image/files/bashrc
@@ -0,0 +1,15 @@
+# FOR THE FIRST MERGE
+function pre_pkg_postinst() {
+ if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ] && [ -z "${REPLACING_VERSIONS}" ]
+ then
+ grub2-mkconfig -o /boot/grub/grub.cfg || die
+ fi
+}
+
+# FOR THE SUCCESSIVE MERGES OR UNMERGE
+function pre_pkg_postrm() {
+ if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
+ then
+ grub2-mkconfig -o /boot/grub/grub.cfg || die
+ fi
+}
diff --git a/sys-kernel/gentoo-sources-image/gentoo-sources-image-4.19.84.ebuild b/sys-kernel/gentoo-sources-image/gentoo-sources-image-4.19.84.ebuild
new file mode 100644
index 0000000..d8fd7dd
--- /dev/null
+++ b/sys-kernel/gentoo-sources-image/gentoo-sources-image-4.19.84.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit mount-boot
+
+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="binchecks strip"
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != buildonly ]]
+ then
+ ewarn
+ ewarn
+ ewarn "You may want to configure your bootloader by setting a portage HOOK (/etc/portage/bashrc)."
+ ewarn "A valid example is available into /usr/share/doc/${PF}/bashrc.bz2"
+ ewarn
+ ewarn
+ fi
+}
+
+src_install() {
+ insinto /boot
+ doins *genkernel*
+
+ rm "${D}"/lib/modules/"${PV}"-gentoo/{build,source} || die
+
+ insinto /lib/modules
+ doins -r "${PV}"-gentoo
+
+ insinto /usr/share/doc/${PF}
+ doins "${FILESDIR}"/bashrc
+}
diff --git a/sys-kernel/gentoo-sources-image/metadata.xml b/sys-kernel/gentoo-sources-image/metadata.xml
new file mode 100644
index 0000000..04a76b1
--- /dev/null
+++ b/sys-kernel/gentoo-sources-image/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>