From 797c01305d07a448c23ac5e900ab76c5d82b01c7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 4 Apr 2024 21:48:09 +0100 Subject: sys-kernel/linux-{image,sources}-redcore : version bump --- .../sys-kernel/linux-image-redcore-6.7.11 | 15 --- .../sys-kernel/linux-image-redcore-6.7.12 | 15 +++ .../sys-kernel/linux-sources-redcore-6.7.11 | 14 -- .../sys-kernel/linux-sources-redcore-6.7.12 | 14 ++ metadata/pkg_desc_index | 4 +- sys-kernel/linux-image-redcore/Manifest | 2 +- .../linux-image-redcore-6.7.11.ebuild | 150 --------------------- .../linux-image-redcore-6.7.12.ebuild | 150 +++++++++++++++++++++ sys-kernel/linux-sources-redcore/Manifest | 2 +- .../linux-sources-redcore-6.7.11.ebuild | 74 ---------- .../linux-sources-redcore-6.7.12.ebuild | 74 ++++++++++ 11 files changed, 257 insertions(+), 257 deletions(-) delete mode 100644 metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.11 create mode 100644 metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.12 delete mode 100644 metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.11 create mode 100644 metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.12 delete mode 100644 sys-kernel/linux-image-redcore/linux-image-redcore-6.7.11.ebuild create mode 100644 sys-kernel/linux-image-redcore/linux-image-redcore-6.7.12.ebuild delete mode 100644 sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.11.ebuild create mode 100644 sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.12.ebuild diff --git a/metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.11 b/metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.11 deleted file mode 100644 index 98201883..00000000 --- a/metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.11 +++ /dev/null @@ -1,15 +0,0 @@ -DEFINED_PHASES=compile install postinst postrm prepare setup -DEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc cryptsetup? ( sys-fs/cryptsetup ) dmraid? ( sys-fs/dmraid ) dracut? ( >=sys-kernel/dracut-0.44-r8 ) dkms? ( sys-kernel/dkms sys-kernel/linux-sources-redcore:6.7 ) mdadm? ( sys-fs/mdadm ) >=sys-kernel/linux-firmware-20180314 -DESCRIPTION=Redcore Linux Kernel Image -EAPI=6 -HOMEPAGE=https://redcorelinux.org -INHERIT=eutils -IUSE=+cryptsetup +dmraid +dracut +dkms +mdadm -KEYWORDS=~amd64 -LICENSE=GPL-2 -RDEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc cryptsetup? ( sys-fs/cryptsetup ) dmraid? ( sys-fs/dmraid ) dracut? ( >=sys-kernel/dracut-0.44-r8 ) dkms? ( sys-kernel/dkms sys-kernel/linux-sources-redcore:6.7 ) mdadm? ( sys-fs/mdadm ) >=sys-kernel/linux-firmware-20180314 -RESTRICT=binchecks strip mirror -SLOT=6.7 -SRC_URI=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.7.11.tar.xz -_eclasses_=desktop 021728fdc1b03b36357dbc89489e0f0d edos2unix 33e347e171066657f91f8b0c72ec8773 epatch 2b02655f061dfa25067b543539110259 eqawarn c9847c43b3253a276ae2eabddedab3d7 estack c61c368a76fdf3a82fdf8dbaebea3804 eutils d318efeb438bbec051fa5aaf28d0d42c ltprune 97143780d341cc8d8f1d4c6187a36d29 multilib c19072c3cd7ac5cb21de013f7e9832e0 preserve-libs 21162ec96c87041004a75348d97342dd strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 toolchain-funcs e56c7649b804f051623c8bc1a1c44084 vcs-clean d271b7bc7e6a009758d7d4ef749174e3 wrapper 4a1902f969e5718126434fc35f3a0d9c -_md5_=12d4bfebfeaa4b1358e328f5f9f43a0b diff --git a/metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.12 b/metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.12 new file mode 100644 index 00000000..ad8119d6 --- /dev/null +++ b/metadata/md5-cache/sys-kernel/linux-image-redcore-6.7.12 @@ -0,0 +1,15 @@ +DEFINED_PHASES=compile install postinst postrm prepare setup +DEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc cryptsetup? ( sys-fs/cryptsetup ) dmraid? ( sys-fs/dmraid ) dracut? ( >=sys-kernel/dracut-0.44-r8 ) dkms? ( sys-kernel/dkms sys-kernel/linux-sources-redcore:6.7 ) mdadm? ( sys-fs/mdadm ) >=sys-kernel/linux-firmware-20180314 +DESCRIPTION=Redcore Linux Kernel Image +EAPI=6 +HOMEPAGE=https://redcorelinux.org +INHERIT=eutils +IUSE=+cryptsetup +dmraid +dracut +dkms +mdadm +KEYWORDS=~amd64 +LICENSE=GPL-2 +RDEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc cryptsetup? ( sys-fs/cryptsetup ) dmraid? ( sys-fs/dmraid ) dracut? ( >=sys-kernel/dracut-0.44-r8 ) dkms? ( sys-kernel/dkms sys-kernel/linux-sources-redcore:6.7 ) mdadm? ( sys-fs/mdadm ) >=sys-kernel/linux-firmware-20180314 +RESTRICT=binchecks strip mirror +SLOT=6.7 +SRC_URI=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.7.12.tar.xz +_eclasses_=desktop 021728fdc1b03b36357dbc89489e0f0d edos2unix 33e347e171066657f91f8b0c72ec8773 epatch 2b02655f061dfa25067b543539110259 eqawarn c9847c43b3253a276ae2eabddedab3d7 estack c61c368a76fdf3a82fdf8dbaebea3804 eutils d318efeb438bbec051fa5aaf28d0d42c ltprune 97143780d341cc8d8f1d4c6187a36d29 multilib c19072c3cd7ac5cb21de013f7e9832e0 preserve-libs 21162ec96c87041004a75348d97342dd strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 toolchain-funcs e56c7649b804f051623c8bc1a1c44084 vcs-clean d271b7bc7e6a009758d7d4ef749174e3 wrapper 4a1902f969e5718126434fc35f3a0d9c +_md5_=12d4bfebfeaa4b1358e328f5f9f43a0b diff --git a/metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.11 b/metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.11 deleted file mode 100644 index eef5abbe..00000000 --- a/metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.11 +++ /dev/null @@ -1,14 +0,0 @@ -DEFINED_PHASES=compile install postrm prepare setup -DEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc -DESCRIPTION=Redcore Linux Kernel Sources -EAPI=6 -HOMEPAGE=https://redcorelinux.org -INHERIT=eutils -KEYWORDS=~amd64 -LICENSE=GPL-2 -RDEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc -RESTRICT=strip mirror -SLOT=6.7 -SRC_URI=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.7.11.tar.xz -_eclasses_=desktop 021728fdc1b03b36357dbc89489e0f0d edos2unix 33e347e171066657f91f8b0c72ec8773 epatch 2b02655f061dfa25067b543539110259 eqawarn c9847c43b3253a276ae2eabddedab3d7 estack c61c368a76fdf3a82fdf8dbaebea3804 eutils d318efeb438bbec051fa5aaf28d0d42c ltprune 97143780d341cc8d8f1d4c6187a36d29 multilib c19072c3cd7ac5cb21de013f7e9832e0 preserve-libs 21162ec96c87041004a75348d97342dd strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 toolchain-funcs e56c7649b804f051623c8bc1a1c44084 vcs-clean d271b7bc7e6a009758d7d4ef749174e3 wrapper 4a1902f969e5718126434fc35f3a0d9c -_md5_=208922dbef3868f1f58101c453e845ed diff --git a/metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.12 b/metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.12 new file mode 100644 index 00000000..a977d0d5 --- /dev/null +++ b/metadata/md5-cache/sys-kernel/linux-sources-redcore-6.7.12 @@ -0,0 +1,14 @@ +DEFINED_PHASES=compile install postrm prepare setup +DEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc +DESCRIPTION=Redcore Linux Kernel Sources +EAPI=6 +HOMEPAGE=https://redcorelinux.org +INHERIT=eutils +KEYWORDS=~amd64 +LICENSE=GPL-2 +RDEPEND=app-arch/lz4 app-arch/xz-utils dev-build/autoconf dev-build/make sys-devel/bc +RESTRICT=strip mirror +SLOT=6.7 +SRC_URI=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.7.12.tar.xz +_eclasses_=desktop 021728fdc1b03b36357dbc89489e0f0d edos2unix 33e347e171066657f91f8b0c72ec8773 epatch 2b02655f061dfa25067b543539110259 eqawarn c9847c43b3253a276ae2eabddedab3d7 estack c61c368a76fdf3a82fdf8dbaebea3804 eutils d318efeb438bbec051fa5aaf28d0d42c ltprune 97143780d341cc8d8f1d4c6187a36d29 multilib c19072c3cd7ac5cb21de013f7e9832e0 preserve-libs 21162ec96c87041004a75348d97342dd strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 toolchain-funcs e56c7649b804f051623c8bc1a1c44084 vcs-clean d271b7bc7e6a009758d7d4ef749174e3 wrapper 4a1902f969e5718126434fc35f3a0d9c +_md5_=208922dbef3868f1f58101c453e845ed diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index index 898cc41a..de26131e 100644 --- a/metadata/pkg_desc_index +++ b/metadata/pkg_desc_index @@ -65,9 +65,9 @@ sys-fs/zfs-utils 2.2.3: Userland utilities for ZFS Linux kernel module sys-kernel/bcmwl-dkms 6.30.223.271-r9: Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver source sys-kernel/dkms 2.3-r3: Dynamic Kernel Module Support sys-kernel/dracut 059-r15: Generic initramfs generation tool -sys-kernel/linux-image-redcore 6.7.11: Redcore Linux Kernel Image +sys-kernel/linux-image-redcore 6.7.12: Redcore Linux Kernel Image sys-kernel/linux-image-redcore-lts 5.15.153 6.1.84 6.6.25: Redcore Linux LTS Kernel Image -sys-kernel/linux-sources-redcore 6.7.11: Redcore Linux Kernel Sources +sys-kernel/linux-sources-redcore 6.7.12: Redcore Linux Kernel Sources sys-kernel/linux-sources-redcore-lts 5.15.153 6.1.84 6.6.25: Redcore Linux LTS Kernel Sources sys-kernel/nvidia-drivers-dkms 390.157-r6 470.223.02-r1 535.154.05: NVIDIA driver sources for linux sys-kernel/vhba-dkms 20211218-r7: Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite sources diff --git a/sys-kernel/linux-image-redcore/Manifest b/sys-kernel/linux-image-redcore/Manifest index 6fbb3ce0..478f9218 100644 --- a/sys-kernel/linux-image-redcore/Manifest +++ b/sys-kernel/linux-image-redcore/Manifest @@ -1 +1 @@ -DIST linux-6.7.11.tar.xz 141443692 BLAKE2B 0f7319b641822f07d5bc9f0edaed7c918a73aa67df6a4aa74a5e8e38f2d15795a1c76e0c8c7ab99949165cb8a0ebb77f08e3a380184aa0accad26996a1d415c6 SHA512 be9bca465ab9ebef491ecac5558b6a0e03531700c1c4a8590e34cb2021df53b08301e3fd2b06c92a44e340c12730ade1a747109d612c4375436e3b1e3dd3fd87 +DIST linux-6.7.12.tar.xz 141495752 BLAKE2B b2d8949eee0fc5df782f619f4518d3860d0e06b2233cadcccc7a93e8b48f649e671df523cd9d1bb4d18ceb2d3847fc3ca1044a4170be71b2c76357a405ecb875 SHA512 6375c0acbfd1452b3208273d47af4f0501c3953371ec335701662f619da2acac1f9b7d9ff7dfb5123a3867edd5765ba03428d3c018d9bd52b1f0d01dbd26d751 diff --git a/sys-kernel/linux-image-redcore/linux-image-redcore-6.7.11.ebuild b/sys-kernel/linux-image-redcore/linux-image-redcore-6.7.11.ebuild deleted file mode 100644 index b9c4735d..00000000 --- a/sys-kernel/linux-image-redcore/linux-image-redcore-6.7.11.ebuild +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils - -EXTRAVERSION="redcore" -KV_FULL="${PV}-${EXTRAVERSION}" -KV_MAJOR="6.7" - -DESCRIPTION="Redcore Linux Kernel Image" -HOMEPAGE="https://redcorelinux.org" -SRC_URI="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${PV}.tar.xz" - -KEYWORDS="~amd64" -LICENSE="GPL-2" -SLOT="${KV_MAJOR}" -IUSE="+cryptsetup +dmraid +dracut +dkms +mdadm" - -RESTRICT="binchecks strip mirror" -DEPEND=" - app-arch/lz4 - app-arch/xz-utils - dev-build/autoconf - dev-build/make - sys-devel/bc - cryptsetup? ( sys-fs/cryptsetup ) - dmraid? ( sys-fs/dmraid ) - dracut? ( >=sys-kernel/dracut-0.44-r8 ) - dkms? ( sys-kernel/dkms sys-kernel/linux-sources-redcore:${SLOT} ) - mdadm? ( sys-fs/mdadm ) - >=sys-kernel/linux-firmware-20180314" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/"${KV_MAJOR}"-ath10k-be-quiet.patch - "${FILESDIR}"/"${KV_MAJOR}"-ata-fix-NCQ-LOG-strings-and-move-to-debug.patch - "${FILESDIR}"/"${KV_MAJOR}"-acpi-use-kern_warning_even_when_error.patch - "${FILESDIR}"/"${KV_MAJOR}"-fix-bootconfig-makefile.patch - "${FILESDIR}"/"${KV_MAJOR}"-apic_vector-spam-in-debug-mode-only.patch - "${FILESDIR}"/"${KV_MAJOR}"-0001-Revert-cpufreq-Avoid-configuring-old-governors-as-de.patch - "${FILESDIR}"/"${KV_MAJOR}"-revert-parts-of-a00ec3874e7d326ab2dffbed92faddf6a77a84e9-no-Intel-NO.patch - "${FILESDIR}"/"${KV_MAJOR}"-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch -) - -S="${WORKDIR}"/linux-"${PV}" - -pkg_setup() { - export KBUILD_BUILD_USER="nexus" - export KBUILD_BUILD_HOST="nexus.redcorelinux.org" - - export REAL_ARCH="$ARCH" - unset ARCH ; unset LDFLAGS #will interfere with Makefile if set -} - -src_prepare() { - default - emake mrproper - sed -ri "s|^(EXTRAVERSION =).*|\1 -${EXTRAVERSION}|" Makefile - cp "${FILESDIR}"/"${KV_MAJOR}"-amd64.config .config - rm -rf $(find . -type f|grep -F \.orig) -} - -src_compile() { - emake prepare modules_prepare bzImage modules -} - -src_install() { - dodir boot - insinto boot - newins .config config-"${KV_FULL}" - newins System.map System.map-"${KV_FULL}" - newins arch/x86/boot/bzImage vmlinuz-"${KV_FULL}" - - dodir usr/src/linux-"${KV_FULL}" - insinto usr/src/linux-"${KV_FULL}" - doins Module.symvers - doins System.map - exeinto usr/src/linux-"${KV_FULL}" - doexe vmlinux - - emake INSTALL_MOD_PATH="${D}" modules_install - - rm -f "${D}"lib/modules/"${KV_FULL}"/build - rm -f "${D}"lib/modules/"${KV_FULL}"/source - export local KSYMS - for KSYMS in build source ; do - dosym ../../../usr/src/linux-"${KV_FULL}" lib/modules/"${KV_FULL}"/"${KSYMS}" - done -} - -_grub2_update_grubcfg() { - if [[ -x $(which grub2-mkconfig) ]]; then - elog "Updating GRUB-2 bootloader configuration, please wait" - grub2-mkconfig -o "${ROOT}"boot/grub/grub.cfg - else - elog "It looks like you're not using GRUB-2, you must update bootloader configuration by hand" - fi -} - -_dracut_initrd_create() { - if [[ -x $(which dracut) ]]; then - elog "Generating initrd for "${KV_FULL}", please wait" - addpredict /etc/ld.so.cache~ - dracut -N -f --kver="${KV_FULL}" "${ROOT}"boot/initrd-"${KV_FULL}" - else - elog "It looks like you're not using dracut, you must generate an initrd by hand" - fi -} - -_dracut_initrd_delete() { - rm -rf "${ROOT}"boot/initrd-"${KV_FULL}" -} - -_dkms_modules_manage() { - if [[ -x $(which dkms) ]] ; then - export local DKMSMOD - for DKMSMOD in $(dkms status | cut -d " " -f1,2 | sed -e 's/,//g' | sed -e 's/ /\//g' | sed -e 's/://g' | uniq) ; do - dkms remove "${DKMSMOD}" -k "${KV_FULL}" - dkms add "${DKMSMOD}" > /dev/null 2>&1 - done - fi -} - -_kernel_modules_delete() { - rm -rf "${ROOT}"lib/modules/"${KV_FULL}" -} - -pkg_postinst() { - if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then - if use dracut; then - _dracut_initrd_create - fi - _grub2_update_grubcfg - fi -} - -pkg_postrm() { - if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then - if use dracut; then - _dracut_initrd_delete - fi - _grub2_update_grubcfg - fi - if use dkms; then - _dkms_modules_manage - fi - _kernel_modules_delete -} diff --git a/sys-kernel/linux-image-redcore/linux-image-redcore-6.7.12.ebuild b/sys-kernel/linux-image-redcore/linux-image-redcore-6.7.12.ebuild new file mode 100644 index 00000000..b9c4735d --- /dev/null +++ b/sys-kernel/linux-image-redcore/linux-image-redcore-6.7.12.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +EXTRAVERSION="redcore" +KV_FULL="${PV}-${EXTRAVERSION}" +KV_MAJOR="6.7" + +DESCRIPTION="Redcore Linux Kernel Image" +HOMEPAGE="https://redcorelinux.org" +SRC_URI="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${PV}.tar.xz" + +KEYWORDS="~amd64" +LICENSE="GPL-2" +SLOT="${KV_MAJOR}" +IUSE="+cryptsetup +dmraid +dracut +dkms +mdadm" + +RESTRICT="binchecks strip mirror" +DEPEND=" + app-arch/lz4 + app-arch/xz-utils + dev-build/autoconf + dev-build/make + sys-devel/bc + cryptsetup? ( sys-fs/cryptsetup ) + dmraid? ( sys-fs/dmraid ) + dracut? ( >=sys-kernel/dracut-0.44-r8 ) + dkms? ( sys-kernel/dkms sys-kernel/linux-sources-redcore:${SLOT} ) + mdadm? ( sys-fs/mdadm ) + >=sys-kernel/linux-firmware-20180314" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/"${KV_MAJOR}"-ath10k-be-quiet.patch + "${FILESDIR}"/"${KV_MAJOR}"-ata-fix-NCQ-LOG-strings-and-move-to-debug.patch + "${FILESDIR}"/"${KV_MAJOR}"-acpi-use-kern_warning_even_when_error.patch + "${FILESDIR}"/"${KV_MAJOR}"-fix-bootconfig-makefile.patch + "${FILESDIR}"/"${KV_MAJOR}"-apic_vector-spam-in-debug-mode-only.patch + "${FILESDIR}"/"${KV_MAJOR}"-0001-Revert-cpufreq-Avoid-configuring-old-governors-as-de.patch + "${FILESDIR}"/"${KV_MAJOR}"-revert-parts-of-a00ec3874e7d326ab2dffbed92faddf6a77a84e9-no-Intel-NO.patch + "${FILESDIR}"/"${KV_MAJOR}"-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch +) + +S="${WORKDIR}"/linux-"${PV}" + +pkg_setup() { + export KBUILD_BUILD_USER="nexus" + export KBUILD_BUILD_HOST="nexus.redcorelinux.org" + + export REAL_ARCH="$ARCH" + unset ARCH ; unset LDFLAGS #will interfere with Makefile if set +} + +src_prepare() { + default + emake mrproper + sed -ri "s|^(EXTRAVERSION =).*|\1 -${EXTRAVERSION}|" Makefile + cp "${FILESDIR}"/"${KV_MAJOR}"-amd64.config .config + rm -rf $(find . -type f|grep -F \.orig) +} + +src_compile() { + emake prepare modules_prepare bzImage modules +} + +src_install() { + dodir boot + insinto boot + newins .config config-"${KV_FULL}" + newins System.map System.map-"${KV_FULL}" + newins arch/x86/boot/bzImage vmlinuz-"${KV_FULL}" + + dodir usr/src/linux-"${KV_FULL}" + insinto usr/src/linux-"${KV_FULL}" + doins Module.symvers + doins System.map + exeinto usr/src/linux-"${KV_FULL}" + doexe vmlinux + + emake INSTALL_MOD_PATH="${D}" modules_install + + rm -f "${D}"lib/modules/"${KV_FULL}"/build + rm -f "${D}"lib/modules/"${KV_FULL}"/source + export local KSYMS + for KSYMS in build source ; do + dosym ../../../usr/src/linux-"${KV_FULL}" lib/modules/"${KV_FULL}"/"${KSYMS}" + done +} + +_grub2_update_grubcfg() { + if [[ -x $(which grub2-mkconfig) ]]; then + elog "Updating GRUB-2 bootloader configuration, please wait" + grub2-mkconfig -o "${ROOT}"boot/grub/grub.cfg + else + elog "It looks like you're not using GRUB-2, you must update bootloader configuration by hand" + fi +} + +_dracut_initrd_create() { + if [[ -x $(which dracut) ]]; then + elog "Generating initrd for "${KV_FULL}", please wait" + addpredict /etc/ld.so.cache~ + dracut -N -f --kver="${KV_FULL}" "${ROOT}"boot/initrd-"${KV_FULL}" + else + elog "It looks like you're not using dracut, you must generate an initrd by hand" + fi +} + +_dracut_initrd_delete() { + rm -rf "${ROOT}"boot/initrd-"${KV_FULL}" +} + +_dkms_modules_manage() { + if [[ -x $(which dkms) ]] ; then + export local DKMSMOD + for DKMSMOD in $(dkms status | cut -d " " -f1,2 | sed -e 's/,//g' | sed -e 's/ /\//g' | sed -e 's/://g' | uniq) ; do + dkms remove "${DKMSMOD}" -k "${KV_FULL}" + dkms add "${DKMSMOD}" > /dev/null 2>&1 + done + fi +} + +_kernel_modules_delete() { + rm -rf "${ROOT}"lib/modules/"${KV_FULL}" +} + +pkg_postinst() { + if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then + if use dracut; then + _dracut_initrd_create + fi + _grub2_update_grubcfg + fi +} + +pkg_postrm() { + if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then + if use dracut; then + _dracut_initrd_delete + fi + _grub2_update_grubcfg + fi + if use dkms; then + _dkms_modules_manage + fi + _kernel_modules_delete +} diff --git a/sys-kernel/linux-sources-redcore/Manifest b/sys-kernel/linux-sources-redcore/Manifest index 6fbb3ce0..478f9218 100644 --- a/sys-kernel/linux-sources-redcore/Manifest +++ b/sys-kernel/linux-sources-redcore/Manifest @@ -1 +1 @@ -DIST linux-6.7.11.tar.xz 141443692 BLAKE2B 0f7319b641822f07d5bc9f0edaed7c918a73aa67df6a4aa74a5e8e38f2d15795a1c76e0c8c7ab99949165cb8a0ebb77f08e3a380184aa0accad26996a1d415c6 SHA512 be9bca465ab9ebef491ecac5558b6a0e03531700c1c4a8590e34cb2021df53b08301e3fd2b06c92a44e340c12730ade1a747109d612c4375436e3b1e3dd3fd87 +DIST linux-6.7.12.tar.xz 141495752 BLAKE2B b2d8949eee0fc5df782f619f4518d3860d0e06b2233cadcccc7a93e8b48f649e671df523cd9d1bb4d18ceb2d3847fc3ca1044a4170be71b2c76357a405ecb875 SHA512 6375c0acbfd1452b3208273d47af4f0501c3953371ec335701662f619da2acac1f9b7d9ff7dfb5123a3867edd5765ba03428d3c018d9bd52b1f0d01dbd26d751 diff --git a/sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.11.ebuild b/sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.11.ebuild deleted file mode 100644 index 8ab25c78..00000000 --- a/sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.11.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils - -EXTRAVERSION="redcore" -KV_FULL="${PV}-${EXTRAVERSION}" -KV_MAJOR="6.7" - -DESCRIPTION="Redcore Linux Kernel Sources" -HOMEPAGE="https://redcorelinux.org" -SRC_URI="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${PV}.tar.xz" - -KEYWORDS="~amd64" -LICENSE="GPL-2" -SLOT="${KV_MAJOR}" -IUSE="" - -RESTRICT="strip mirror" -DEPEND=" - app-arch/lz4 - app-arch/xz-utils - dev-build/autoconf - dev-build/make - sys-devel/bc" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/"${KV_MAJOR}"-ath10k-be-quiet.patch - "${FILESDIR}"/"${KV_MAJOR}"-ata-fix-NCQ-LOG-strings-and-move-to-debug.patch - "${FILESDIR}"/"${KV_MAJOR}"-acpi-use-kern_warning_even_when_error.patch - "${FILESDIR}"/"${KV_MAJOR}"-fix-bootconfig-makefile.patch - "${FILESDIR}"/"${KV_MAJOR}"-apic_vector-spam-in-debug-mode-only.patch - "${FILESDIR}"/"${KV_MAJOR}"-0001-Revert-cpufreq-Avoid-configuring-old-governors-as-de.patch - "${FILESDIR}"/"${KV_MAJOR}"-revert-parts-of-a00ec3874e7d326ab2dffbed92faddf6a77a84e9-no-Intel-NO.patch - "${FILESDIR}"/"${KV_MAJOR}"-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch -) - -S="${WORKDIR}"/linux-"${PV}" - -pkg_setup() { - export KBUILD_BUILD_USER="nexus" - export KBUILD_BUILD_HOST="nexus.redcorelinux.org" - - export REAL_ARCH="$ARCH" - unset ARCH ; unset LDFLAGS #will interfere with Makefile if set -} - -src_prepare() { - default - emake mrproper - sed -ri "s|^(EXTRAVERSION =).*|\1 -${EXTRAVERSION}|" Makefile - cp "${FILESDIR}"/"${KV_MAJOR}"-amd64.config .config - rm -rf $(find . -type f|grep -F \.orig) -} - -src_compile() { - emake prepare modules_prepare -} - -src_install() { - dodir usr/src/linux-"${KV_FULL}" - cp -ax "${S}"/* "${D}"usr/src/linux-"${KV_FULL}" -} - -_kernel_sources_delete() { - rm -rf "${ROOT}"usr/src/linux-"${KV_FULL}" -} - -pkg_postrm() { - _kernel_sources_delete -} diff --git a/sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.12.ebuild b/sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.12.ebuild new file mode 100644 index 00000000..8ab25c78 --- /dev/null +++ b/sys-kernel/linux-sources-redcore/linux-sources-redcore-6.7.12.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +EXTRAVERSION="redcore" +KV_FULL="${PV}-${EXTRAVERSION}" +KV_MAJOR="6.7" + +DESCRIPTION="Redcore Linux Kernel Sources" +HOMEPAGE="https://redcorelinux.org" +SRC_URI="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${PV}.tar.xz" + +KEYWORDS="~amd64" +LICENSE="GPL-2" +SLOT="${KV_MAJOR}" +IUSE="" + +RESTRICT="strip mirror" +DEPEND=" + app-arch/lz4 + app-arch/xz-utils + dev-build/autoconf + dev-build/make + sys-devel/bc" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/"${KV_MAJOR}"-ath10k-be-quiet.patch + "${FILESDIR}"/"${KV_MAJOR}"-ata-fix-NCQ-LOG-strings-and-move-to-debug.patch + "${FILESDIR}"/"${KV_MAJOR}"-acpi-use-kern_warning_even_when_error.patch + "${FILESDIR}"/"${KV_MAJOR}"-fix-bootconfig-makefile.patch + "${FILESDIR}"/"${KV_MAJOR}"-apic_vector-spam-in-debug-mode-only.patch + "${FILESDIR}"/"${KV_MAJOR}"-0001-Revert-cpufreq-Avoid-configuring-old-governors-as-de.patch + "${FILESDIR}"/"${KV_MAJOR}"-revert-parts-of-a00ec3874e7d326ab2dffbed92faddf6a77a84e9-no-Intel-NO.patch + "${FILESDIR}"/"${KV_MAJOR}"-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch +) + +S="${WORKDIR}"/linux-"${PV}" + +pkg_setup() { + export KBUILD_BUILD_USER="nexus" + export KBUILD_BUILD_HOST="nexus.redcorelinux.org" + + export REAL_ARCH="$ARCH" + unset ARCH ; unset LDFLAGS #will interfere with Makefile if set +} + +src_prepare() { + default + emake mrproper + sed -ri "s|^(EXTRAVERSION =).*|\1 -${EXTRAVERSION}|" Makefile + cp "${FILESDIR}"/"${KV_MAJOR}"-amd64.config .config + rm -rf $(find . -type f|grep -F \.orig) +} + +src_compile() { + emake prepare modules_prepare +} + +src_install() { + dodir usr/src/linux-"${KV_FULL}" + cp -ax "${S}"/* "${D}"usr/src/linux-"${KV_FULL}" +} + +_kernel_sources_delete() { + rm -rf "${ROOT}"usr/src/linux-"${KV_FULL}" +} + +pkg_postrm() { + _kernel_sources_delete +} -- cgit v1.2.3