summaryrefslogtreecommitdiff
path: root/sys-kernel/pf-sources
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-11 17:14:47 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-11 17:14:47 +0000
commit25e5a6599437664a3eff8d9f8a966adc896e09e8 (patch)
tree67ef90a99446e1fee47c4ebb4c8c3a8175b41913 /sys-kernel/pf-sources
parent24b2471760a35870c85ca752666bcb66120289af (diff)
gentoo auto-resync : 11:12:2023 - 17:14:47
Diffstat (limited to 'sys-kernel/pf-sources')
-rw-r--r--sys-kernel/pf-sources/Manifest2
-rw-r--r--sys-kernel/pf-sources/pf-sources-6.6_p4.ebuild95
2 files changed, 97 insertions, 0 deletions
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
index 5ea02ce95fb9..c85d1796076e 100644
--- a/sys-kernel/pf-sources/Manifest
+++ b/sys-kernel/pf-sources/Manifest
@@ -9,9 +9,11 @@ DIST linux-6.5-pf6.tar.gz 227889902 BLAKE2B d45e370b566cc903bf9cc0880e4f50a68ea6
DIST linux-6.6-pf1.tar.gz 229217046 BLAKE2B 9426ebab28f9ee516dcc48ef8343c624960b1de6b6ddd9b00393b2261ee1516d7f4fd126ff87a597fdfee85387811e9da0c57458909ac85a7edc4cb60594e8eb SHA512 54be704ff20b47df3c1d774ed9c997620df46188739c6f72b305a88200901afb0d0d534011ee65c41974d0a5aa91ad318c0c426332e05c70949a06292b17547c
DIST linux-6.6-pf2.tar.gz 229223034 BLAKE2B 8e089eb63597d9069a3dd9cafe38269a7c49dffb646f39082916ec818bd9754ff691d4c0c60c7f6df5f720dd404007a1d8a7e2931977a4dcd474dfb04c950562 SHA512 49a7bba50ee00008b6441aa0c6e191866bc1beb042c107b950639e48c3a2c345f7704930c14df0e9e3b6ffeb2fbbfb1330a1a5c1e07378232e2cb2160dd4da4d
DIST linux-6.6-pf3.tar.gz 229268485 BLAKE2B 31f58d15ede9f8d741d2c7f0d5a8d0264aa4ec48b174601897cda903a33760a9222846c1c282b2f895c40d5044ee63723848938ba95dcb6ea6ed948d618f7dd3 SHA512 c71bcdf7bd1ed7eb8dc2b7a09cfef90a8df1018517b79311432e4ce0a8d3b4d6f77728d2840fbf05c4489ea4091d129b0686e467e3ef26401398595f8efada08
+DIST linux-6.6-pf4.tar.gz 229255097 BLAKE2B 01c2c4b84ad6bfa7b944acba6fcc5bd27edbb8d2d34c3e5136177cf48c3cc5bc61ceb6be1aa5ab46c92998e783ca264fc15fef1fb43ac143cf001b75e7d7f30a SHA512 2595886d208bd3319a3bfff418a463129c1b037e1fa5e25de08864ec3b34bb61bf10900a24b1c0a1d94b287593a6213fa20b15d3df47d1155015e0b973cf0114
EBUILD pf-sources-6.5_p5.ebuild 3227 BLAKE2B 1419c6b648085ae97e2cb69e9909871677f6ac0c5e424e091b2877ed449a671cd20c12563d71c6b69d178d58d543da2a706df60061f56c9e1b3b1b793f3f1e9d SHA512 7700643feea3f29522b80605205cf5211b1a57fe8bef530d420a1860ffa7ed46cdee4b8ff671f9b8c029c592ce772a16776e082387aed5bb4f8ac8da56f27cd6
EBUILD pf-sources-6.5_p6.ebuild 3227 BLAKE2B 1419c6b648085ae97e2cb69e9909871677f6ac0c5e424e091b2877ed449a671cd20c12563d71c6b69d178d58d543da2a706df60061f56c9e1b3b1b793f3f1e9d SHA512 7700643feea3f29522b80605205cf5211b1a57fe8bef530d420a1860ffa7ed46cdee4b8ff671f9b8c029c592ce772a16776e082387aed5bb4f8ac8da56f27cd6
EBUILD pf-sources-6.6_p1.ebuild 3227 BLAKE2B 1419c6b648085ae97e2cb69e9909871677f6ac0c5e424e091b2877ed449a671cd20c12563d71c6b69d178d58d543da2a706df60061f56c9e1b3b1b793f3f1e9d SHA512 7700643feea3f29522b80605205cf5211b1a57fe8bef530d420a1860ffa7ed46cdee4b8ff671f9b8c029c592ce772a16776e082387aed5bb4f8ac8da56f27cd6
EBUILD pf-sources-6.6_p2.ebuild 3227 BLAKE2B 1419c6b648085ae97e2cb69e9909871677f6ac0c5e424e091b2877ed449a671cd20c12563d71c6b69d178d58d543da2a706df60061f56c9e1b3b1b793f3f1e9d SHA512 7700643feea3f29522b80605205cf5211b1a57fe8bef530d420a1860ffa7ed46cdee4b8ff671f9b8c029c592ce772a16776e082387aed5bb4f8ac8da56f27cd6
EBUILD pf-sources-6.6_p3.ebuild 3227 BLAKE2B 2eb1183f16d7cc4f866c874281092e488f754112344cbd4a0d83d1276d7dca7fd436fc9b40d35352ffc3fcfa57a846c754ab230d972e2aa1847cba4a9669ef7c SHA512 f768768580cd5aaee61dd2f398940edd6f77bfb8a835e76f4198c99222a97cc8024c3914f93bbd408ad9904a2287a5b194990f08e00b4e1f3b50a34ea75acf09
+EBUILD pf-sources-6.6_p4.ebuild 3227 BLAKE2B 2eb1183f16d7cc4f866c874281092e488f754112344cbd4a0d83d1276d7dca7fd436fc9b40d35352ffc3fcfa57a846c754ab230d972e2aa1847cba4a9669ef7c SHA512 f768768580cd5aaee61dd2f398940edd6f77bfb8a835e76f4198c99222a97cc8024c3914f93bbd408ad9904a2287a5b194990f08e00b4e1f3b50a34ea75acf09
MISC metadata.xml 260 BLAKE2B 957e1545a0c47acf6020529f4e2ae0480ec07761a01b9f97143d7088e6fafa49e942c925d227f05b8683f49ce236881c00e904db2d6a8297d10424f11a872881 SHA512 160e8085f846936ed805fc43e152e838e1d9562bb8222bee4a36a4057c871a9f47d82a673fa5bdb9a6e33f1c827d9683966c608e49df3e46dcc3f7179b03ed39
diff --git a/sys-kernel/pf-sources/pf-sources-6.6_p4.ebuild b/sys-kernel/pf-sources/pf-sources-6.6_p4.ebuild
new file mode 100644
index 000000000000..9dd911d25032
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-6.6_p4.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Define what default functions to run.
+ETYPE="sources"
+
+# Use genpatches but don't include the 'experimental' use flag.
+K_EXP_GENPATCHES_NOUSE="1"
+
+# Genpatches version to use. -pf patch set already includes vanilla linux updates. Regularly "1"
+# is the wanted value here, but the genpatches patch set can be bumped if it includes some
+# important fixes. src_prepare() will handle deleting the updated vanilla linux patches.
+# See https://archives.gentoo.org/gentoo-kernel/ (or subscribe to the list) to see all patches.
+K_GENPATCHES_VER="7"
+
+# -pf patch set already sets EXTRAVERSION to kernel Makefile.
+K_NOSETEXTRAVERSION="1"
+
+# pf-sources is not officially supported/covered by the Gentoo security team.
+K_SECURITY_UNSUPPORTED="1"
+
+# Define which parts to use from genpatches - experimental is already included in the -pf patch
+# set.
+K_WANT_GENPATCHES="base extras"
+
+# Major kernel version, e.g. 5.14.
+SHPV="${PV/_p*/}"
+
+# Replace "_p" with "-pf", since using "-pf" is not allowed for an ebuild name by PMS.
+PFPV="${PV/_p/-pf}"
+
+inherit kernel-2 optfeature
+detect_version
+
+DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches"
+HOMEPAGE="https://pfkernel.natalenko.name/
+ https://dev.gentoo.org/~mpagano/genpatches/"
+SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.extras.tar.xz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PFPV}"
+
+K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
+ see: ${HOMEPAGE}."
+
+pkg_setup() {
+ ewarn ""
+ ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
+ ewarn "If you need support, please contact the pf developers directly."
+ ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
+ ewarn "the ebuilds. Thank you."
+ ewarn ""
+
+ kernel-2_pkg_setup
+}
+
+src_unpack() {
+ # Since the Codeberg-hosted pf-sources include full kernel sources, we need to manually override
+ # the src_unpack phase because kernel-2_src_unpack() does a lot of unwanted magic here.
+ unpack ${A}
+
+ mv linux linux-${PFPV} || die "Failed to move source directory"
+}
+
+src_prepare() {
+ # When genpatches basic version is bumped, it also includes vanilla linux updates. Those are
+ # already in the -pf patch set, so need to remove the vanilla linux patches to avoid conflicts.
+ if [[ ${K_GENPATCHES_VER} -ne 1 ]]; then
+ find "${WORKDIR}"/ -type f -name '10*linux*patch' -delete ||
+ die "Failed to delete vanilla linux patches in src_prepare."
+ fi
+
+ # kernel-2_src_prepare doesn't apply PATCHES(). Chosen genpatches are also applied here.
+ eapply "${WORKDIR}"/*.patch
+ default
+}
+
+pkg_postinst() {
+ # Fixes "wrongly" detected directory name, bgo#862534.
+ local KV_FULL="${PFPV}"
+ kernel-2_pkg_postinst
+
+ optfeature "userspace KSM helper" sys-process/uksmd
+}
+
+pkg_postrm() {
+ # Same here, bgo#862534.
+ local KV_FULL="${PFPV}"
+ kernel-2_pkg_postrm
+}