summaryrefslogtreecommitdiff
path: root/sys-kernel/pf-sources
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/pf-sources')
-rw-r--r--sys-kernel/pf-sources/Manifest2
-rw-r--r--sys-kernel/pf-sources/pf-sources-5.14_p5.ebuild76
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
index 925a0f17abd6..594704d87166 100644
--- a/sys-kernel/pf-sources/Manifest
+++ b/sys-kernel/pf-sources/Manifest
@@ -27,6 +27,7 @@ DIST pf-sources-5.13_p6.patch 7070425 BLAKE2B bccbb3ea9777675b28f4ee5ddc1539188c
DIST pf-sources-5.14_p1.patch 3968070 BLAKE2B 8abeb3e0db3644e2b34cb3bf3b19d8eaab1bb1852964f26c6e5baedd24ad82760d352acee557e4b0af4fdfbc7ec05a497d966f98e3255d9f521a42958a12cd6d SHA512 c15ff5a30727983bfd8d1fc43be5efc31590e48b183cf0fa5bd46ea9c0ed4701cd1456d3b409b94bd1ee014e24be41667d85882074ffe4f3ffa07a16621c1796
DIST pf-sources-5.14_p2.patch 4040142 BLAKE2B 6b41a69d8c9475ab5aab18de5cfc0e032197b8616e9aae40f0a7519ad58d1502502539139746e21c83295f3106350a403b6d677541f42b43d12ce60d4af619b4 SHA512 d22eeb8de3e31627d82edb1b95b42cf29d26b1f46898fbcb394ea22f7293824e8e0394253ac07d406ae1b51786707cb6845e8f466a01f2f347a79564c6450914
DIST pf-sources-5.14_p4.patch 5657590 BLAKE2B e48ed2c8fe30e9a008bdcec98d8ff620e87977bcece927b6e8fc90fcbbe7692316ecb4759b1ac4b7928384a14680fd39aedb9607a533e436d239aca3922f0463 SHA512 490baec19f2de8951867ac355c23cc92ea7aa6f4f09dfc8baacc0dfcbcddfb5da8021549304b4030a97df1bd615fbccc2b5869593a47450eec339fd074a694b2
+DIST pf-sources-5.14_p5.patch 6029195 BLAKE2B f64b148b26846574490fc81cde2de3e46e452c566673a1e89c2cbd7078415b735d77a5dce9a86239c0ae65be63fe5c0b7b037e5bde39a909a39bd79a47d17d77 SHA512 4ed4c5101c333f9129f37ad2495499a1b1da85fff87061bfccba58216e9749063dd8dc7d2d303c80feba3d83d86f318166392fc98a0b557e51a6acf6308532e0
DIST prjc_v5.13-r1.patch 258898 BLAKE2B 013be3c3e9b342268359ecbcc10c7b95c7fe3741d2b9058db87da59d40aa9b34db898d31f1f1a0dab80598cab313499d8083ccea141c5200b5593c9d44647de7 SHA512 ad9276a80e28eec461a307ad44a1ed5acebf810b14ce8c9e6f1dc211be6ed7e72f535175fb65f3115fa217f8b635122c65c2c002ff00ba458c867d8bb6257f36
DIST prjc_v5.13-r2.patch 257231 BLAKE2B 943d3035035cdd1744ce0e075441224ffce04a1324dc9adfb355003b1fa6bcced1f63989845d1677ada0eac78f39b01d95d3fc7676c79b68858e8748c91b70d7 SHA512 1d9c80813e8f842b8b5da8b52e4348f329ef415b8cbef0a46f17eee64bf22fa8b1e443ae84ec9e7cf7ccff339d4b4bb2df9dfc894eea438e80f07446c82992db
DIST prjc_v5.13-r3.patch 257137 BLAKE2B 22e05106ee91f104c69f8d11fa4072b28910b8202388a1778ac498f5128f8b93e6465c3e1ef0d9393aa5d01bfc226b3d6463fbba9e463305381a45cb5f015fa0 SHA512 d7dc67a9913d0d7723a616a11db2ab0798e65a6c2dfb99990bc2a4287c0c2e2eab72d17cdc3f93b884f006844f576379a9d8617b7e491dad278f3880d372bb17
@@ -43,4 +44,5 @@ EBUILD pf-sources-5.13_p6.ebuild 2258 BLAKE2B 70d01125643ae392f74dcd0ecd615c462c
EBUILD pf-sources-5.14_p1.ebuild 2258 BLAKE2B 39f5758effb38e8802d3dc42093f9e45fece0e44d5b0efdea9778eda51645e4b7b4595f175506bf57fb7b6029c3adddf07156ad8e45906c5129f25eb9839ac88 SHA512 15a4a46dea772329a1293cb441f4c3ecad2f8219870c724f1cc1de5bc9d92855e628ccd0c9cee0dd3caad4ed57656183e4586aa0c1d3b0ce04ec8434b32c19f6
EBUILD pf-sources-5.14_p2.ebuild 2258 BLAKE2B 057d9e0756294794903bd1f12eb2c6a970351b3556043c20fa49829f6fdacc1ad32e029c739cd1e7f4538cd8299d0fe10aac80d78aef3fa88b37baed7abde357 SHA512 b27deaec1354a5bb1f16d32cdc5626e2533324e303e547da722d8a9686c5b577cfb2e4c02d05724083f5d822d7e44ad1ad5de92bc946c769db38cdd098f3f917
EBUILD pf-sources-5.14_p4.ebuild 2443 BLAKE2B a86072cf5e719c8762cf4c06910d670c4f12129d370fe2eea4aa573ff11fed1a38cadc643b88624fa07c22226c847ce7bdb44df9e6fbe81a5504b204b3b28e80 SHA512 503099839ffe38b3a7449eb5775bb0c64a9e443597451bf1c9db09dfe632f309cb966bd3b5e329abff42708b111c195f44881ad09c84931f489651b14049be50
+EBUILD pf-sources-5.14_p5.ebuild 2450 BLAKE2B 4c32228d8780da35e5721bd9da948ffd7dc469ee9e0c0a086d8204620bb1a2b8ba46f4710bcd3b128de9ba807d290708bf0e026c57958eeff91578cd5387b6b4 SHA512 c2d39338416ad4a35920993d70a4b9e9762fa570442289943aac56fbdbad5f9778f010659c0ca66e10e5b175dadcb5540c3ea6842c61dedf559ecaae33ff92a5
MISC metadata.xml 346 BLAKE2B aac642a4971d6bc11e22a4885e5a4cfdaa36287a97883ed22368729e1db9bbe1baa382fc542d6f89582a0e4f43d2e78419d09716f6d215477454b72dc365e2ec SHA512 94e6a97663111931e68e8af0656691776c39b4e8cc4e96c4a257a9617413ea238400096b15729b1e3b91d60e030c6eae3789401c444692d3bf7daa7c80e78a72
diff --git a/sys-kernel/pf-sources/pf-sources-5.14_p5.ebuild b/sys-kernel/pf-sources/pf-sources-5.14_p5.ebuild
new file mode 100644
index 000000000000..6454ab5d9c21
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-5.14_p5.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Define what default functions to run
+ETYPE="sources"
+
+# No 'experimental' USE flag provided, but we still want to use genpatches
+K_EXP_GENPATCHES_NOUSE="1"
+
+# Just get basic genpatches, -pf patch set already includes vanilla-linux updates
+K_GENPATCHES_VER="1"
+
+# -pf already sets EXTRAVERSION to kernel Makefile
+K_NOSETEXTRAVERSION="1"
+
+# Not supported by the Gentoo security team
+K_SECURITY_UNSUPPORTED="1"
+
+# We want the very basic patches from gentoo-sources, experimental patch is
+# already included in pf-sources
+K_WANT_GENPATCHES="base extras"
+
+# major kernel version, e.g. 5.14
+SHPV="${PV/_p*/}"
+
+# https://gitlab.com/alfredchen/projectc/ revision for a major version,
+# e.g. prjc-v5.14-r2 = 2
+PRJC_R=3
+
+inherit kernel-2 optfeature
+detect_version
+
+DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches"
+HOMEPAGE="https://gitlab.com/post-factum/pf-kernel/-/wikis/README
+ https://dev.gentoo.org/~mpagano/genpatches/"
+SRC_URI="${KERNEL_URI}
+ https://github.com/pfactum/pf-kernel/compare/v${SHPV}...v${SHPV}-pf${PV/*_p/}.diff -> ${P}.patch
+ 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
+ https://gitlab.com/alfredchen/projectc/-/raw/master/${SHPV}/prjc_v${SHPV}-r${PRJC_R}.patch
+ https://dev.gentoo.org/~mpagano/genpatches/trunk/${SHPV}/5021_BMQ-and-PDS-gentoo-defaults.patch -> 5021_BMQ-and-PDS-gentoo-defaults-${SHPV}.patch"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PVR}-pf"
+
+PATCHES=( "${DISTDIR}/${P}.patch"
+ "${DISTDIR}/prjc_v${SHPV}-r${PRJC_R}.patch"
+ "${DISTDIR}/5021_BMQ-and-PDS-gentoo-defaults-${SHPV}.patch" )
+
+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_prepare() {
+ # kernel-2_src_prepare doesn't apply PATCHES().
+ default
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+
+ optfeature "userspace KSM helper" sys-process/uksmd
+}