summaryrefslogtreecommitdiff
path: root/sys-kernel/pf-sources
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /sys-kernel/pf-sources
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'sys-kernel/pf-sources')
-rw-r--r--sys-kernel/pf-sources/Manifest13
-rw-r--r--sys-kernel/pf-sources/pf-sources-5.7_p4.ebuild67
-rw-r--r--sys-kernel/pf-sources/pf-sources-5.7_p5.ebuild67
-rw-r--r--sys-kernel/pf-sources/pf-sources-5.7_p7.ebuild67
-rw-r--r--sys-kernel/pf-sources/pf-sources-5.8_p1.ebuild67
-rw-r--r--sys-kernel/pf-sources/pf-sources-5.8_p2.ebuild67
6 files changed, 348 insertions, 0 deletions
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
index ad417739c462..350a965052d1 100644
--- a/sys-kernel/pf-sources/Manifest
+++ b/sys-kernel/pf-sources/Manifest
@@ -2,14 +2,27 @@ DIST genpatches-5.6-2.base.tar.xz 4452 BLAKE2B f21fa14e4a15f23495eae455d0fa38e22
DIST genpatches-5.6-2.extras.tar.xz 1744 BLAKE2B 1a7b68366c1b4ea01c670bf88f95624baaed6e4366dc311fdaab76f483b944df62da5485760ef546641a598543d6f0d8686c77a1caf4b0ddf2e67ee63a36879e SHA512 6d388ed21866c0ab3d590723644ba0826c8c6212f6a10a7df2f5579e1c5a59bf95c2b132265fc2cc99b90fb839ec2cdffa37d702452aa06fae9feff161ed2733
DIST genpatches-5.7-1.base.tar.xz 5168 BLAKE2B 506ed0fe3ecf7891c0fa89467437ec665b91a5d476832f567702d42aa0216b5c738cfed235e990f66244d8dbcd3c71ece1d4b280638be2b62412cb9fc2ae05c0 SHA512 bf14433a31b131bb74c1abb1151d021074015a6ed28c88bcb56430e9502d54b450bed1c066c9cd4870da2f1642cc065f2a5d027cbf389b705cea72ad3ea8e2ab
DIST genpatches-5.7-1.extras.tar.xz 1764 BLAKE2B d455a21ce5f37b37861747a71d55f16e9983d82ddbfc51e65f6401384b7415dff3afe5491f9ff5344e9b6ab33b760e647e3e4075549211c1a9d7d2249baa4f98 SHA512 0215ce69c03a12e5bdddfcb61ad1ef9cdeb7b2016971d439766bb2420142b9c960fefedb4f85edef73172203961be9fa01c70cb76f72e9b1f4edb299a6a14067
+DIST genpatches-5.8-1.base.tar.xz 4268 BLAKE2B c1c4959758d0bc28213e4fa5c73014bad00144a92d37ed4f576f45d4d578c470c61080d941358d16b426aa17893bd80c88734b65beaa0afd90baf5d78cd078f2 SHA512 534e92071e33fe03049b0f1f3ec7d3e670155a2fa6e93dd1bb8cd5ca0f817549fa9c0b6c5ca06020d7b3733d53204ad79d909d5fbcbc748f218a9f799cc3be6e
+DIST genpatches-5.8-1.extras.tar.xz 1764 BLAKE2B 35c7218e356715ab544b41a7a91e90ef8ab3ad6f318e0026e835eb007f07a48c82164928750d337d238c2717ebd609a075caa03acad92b538e70bacc131d772c SHA512 823feb9f57eef7b72f899c9655ccc2da285d66fba5ecb8e904f991d9d846f5894ae24b254917a430ad7b2358c8bb6aba8b82fb5d63081c8b54eb5c96f4c3354c
DIST linux-5.6.tar.xz 111785252 BLAKE2B 8dbe02a8ca7fd3dcf512a15c5d8098c1e7f94257e65173fed43fcc45480e4ab790df8cd39bbbb4e2a21dc9a00385bc9bbe98215a31e7f7e1d9c8f21cd8ace69e SHA512 80846fe2b4e4a7ff471d2dde28a8216ae807a3209f959e93d39ea4fc9a189ea28ec3db9d303b3fe15a28c2cb90e7446876678e93e23353c2d6f262e364a06bc9
DIST linux-5.7.tar.xz 112690468 BLAKE2B b2b71e231507429b178b6b89be546c4a3ee2757f5d2c58b6137d383f16034a587225a75a9dbca6a01a433056ebe078487132c224e909a2971c9634687e47b1d1 SHA512 45bde01593f6147c8c169b9e46b4b56eee998142552ae0ff82f1dd21b1fd54f3b32f6283f6bd77ea717d374672167849e468c157f235d2f12f7d7816e4623bf6
+DIST linux-5.8.tar.xz 114459324 BLAKE2B 7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7 SHA512 45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
DIST pf-sources-5.6_p8.patch 1877703 BLAKE2B 07c39ade7484c84a2b9a496f989a0ff9241f5957cda64e9fc70c1f8a38d936531f648a12a5963288be5cc29a977f785cf97d74c1639b014083a486b3073b1052 SHA512 e9e18e120feceeb37d8405347a7df98174ecf28f0bb30be5882711459ac19ef0af81a2ba929634b907ee01fdfd4ae01bb73d832cac4a3e0ac15cec8dfd5c1e61
DIST pf-sources-5.7_p1.patch 131429 BLAKE2B 4a3c457631c25aebb217fccb287153ae2a67554d1dbd4c073cc82e450a3380c18362321651422dc861df10ea5ca2ba057219b6d325bd7cc1e29d1912e25c0177 SHA512 7a17b758c700e3886aa07d026c39ce3e548662ee61e82d44baaf1ccbbb6bf670bbaca8ecdf7f3c76e7b1e851eeb8c244f6c0ccc25010d9061343ef8c53f304fc
DIST pf-sources-5.7_p2.patch 191823 BLAKE2B cdf2d7f1addda7380761843c1a75e44d5e911039036625fedea74a9ac965d206023b1450c80c46940dd2c5cd7057c031d589b4705c391c9b9a3eba2ba9f41305 SHA512 0152059e98c354a315b74575840f2c1badb5b8906090ed4818bb2638cff1981d8c4b15857ef3c39cda91faabcaafc96c89e4cb011ff7eb92e614afc66a7d50a1
DIST pf-sources-5.7_p3.patch 1536696 BLAKE2B ced07f59a174bb2c0579bd337a4036fdb09d8dac4f6a06bbb9392f83d4b0462d75678bd6ee01539c5bfaf99e866b09e33509c493036c151cc2b628ea6c22883c SHA512 31c644fbc1b27155754a5af217bb35358fc5e3ee485a442cc6a16aae87034608554236bcbf4c7fb1809a14283404a2881342044e4dfe2e1822a24245e026f97e
+DIST pf-sources-5.7_p4.patch 1980479 BLAKE2B c3bde9ae7467ff626f7369a68d6d8f0ab30042c4d85e33e9dfdaca058e6bd9ba686eb9c61323cb2e9278f8ce2f4517d0f5304097b68296d6e96f87c97395ddd2 SHA512 9b8b02def4c3483b74538808e624b58cd5af131fde18b0a81b73c565aa258402b68619fa14ae073b6f0e625a923f6f64985982cb4368a44fe5dfe83fbb1170e3
+DIST pf-sources-5.7_p5.patch 2473444 BLAKE2B cea4b7f888e2ec76dde07310ab80bacfdc37f4237d26aa62ffd0f052ab7b432cf5be254c3c1311e610ca67ddd90b885723707b5af8381466736a67cd0051c103 SHA512 a10c3b1881c4783f02b412bd82e7aeb4bf9d8b3f323161b436585e97aa9a5b75abb39dda90c95833bb841193dc93ca40524bfe91f976d3e4e474f6a875511a97
+DIST pf-sources-5.7_p7.patch 2471776 BLAKE2B c87c9a5f159967877a2858da1af919332aa9ccd49c2029950b31bcce592b9e802c4d5d5daf2f86929bf9318aaa455d879d3eba21904ab38e5615f05742934a98 SHA512 11c0f0021c1d67f65461a74598ed355309c5bdea8d8c94a8e59bcdff2a8320f9504a4457dd8adddcbfc85cd753bff6018ab9a093cfd7d70dcfee4a2f82110d30
+DIST pf-sources-5.8_p1.patch 176978 BLAKE2B 80be84087ed65f0de42f9e70ac2002bcd77dfa756a769388ffcdd559aa5a7b0280725fa0ddb590cce90825beeeb55939a714f510e723cd8b0ff8ec400cd805ef SHA512 4ec9d5990f0a25666198b6be26bed0c87e5ce3fb3541c03d3b853b574ee7c0294c7f7f3c692b469f2519b38f918a214afc2b908c117578a7a4436caf2f3929ab
+DIST pf-sources-5.8_p2.patch 1071081 BLAKE2B e6c5f85607b7483ee711bee6b62dae5fc1dc44c85ef9bf107dfc997a31f83258624b748511a5bc8c2f76e3bf120779123187cff4721062c717c4eb713d5416e9 SHA512 df3c6da9e0700af7d6126af5831fa6d9a06594a31520f3dcddd098862606262cb139c8e513ffcbe1c8c4ee8e60bb3d6c4a0f505f806e02a9b779410656d4cc2a
EBUILD pf-sources-5.6_p8.ebuild 2043 BLAKE2B 57f79f01bb1042d096af5450a29267e1666a200d95c051a66bc99023f19bc02dcd384eb66e341ccba5a43836fcc9bf8399c1dc81dd4c2d027b9ba1ced7475c51 SHA512 a6b525f0e6035eb160e374ba9aae21840ef1d9d082386af5decbaa3f80d497169413c5875b1840135b7134ffa18bb2368db6791799214626abe8bcac55f2fe45
EBUILD pf-sources-5.7_p1.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
EBUILD pf-sources-5.7_p2.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
EBUILD pf-sources-5.7_p3.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
+EBUILD pf-sources-5.7_p4.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
+EBUILD pf-sources-5.7_p5.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
+EBUILD pf-sources-5.7_p7.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
+EBUILD pf-sources-5.8_p1.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
+EBUILD pf-sources-5.8_p2.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524
MISC metadata.xml 345 BLAKE2B 26083da0607ae4e301d8dd622cd9b0016630e1e70dd6197fb8b95912578015a13da38c8434df3cebdf13f22566a132ffa9ac2ee4a32ed482cf780c55327316da SHA512 4bbc43612402fe253b02894ae6bf290ae44082c98a48d31e3d822946a8709752d3c4fb9d338fdb6779d6b421e73073c67f5f951ef423728aaa5cc18ac7958b2e
diff --git a/sys-kernel/pf-sources/pf-sources-5.7_p4.ebuild b/sys-kernel/pf-sources/pf-sources-5.7_p4.ebuild
new file mode 100644
index 000000000000..2a683a5287d4
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-5.7_p4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# 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"
+
+inherit eutils kernel-2
+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${PV/_p*/}...v${PV/_p*/}-pf${PV/*_p/}.diff -> ${P}.patch
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.extras.tar.xz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PVR}-pf"
+
+PATCHES=( "${DISTDIR}/${P}.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() {
+ default
+ kernel-2_src_prepare
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+
+ elog "Optional features:"
+ optfeature "Userspace KSM helper" sys-process/uksmd
+}
diff --git a/sys-kernel/pf-sources/pf-sources-5.7_p5.ebuild b/sys-kernel/pf-sources/pf-sources-5.7_p5.ebuild
new file mode 100644
index 000000000000..2a683a5287d4
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-5.7_p5.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# 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"
+
+inherit eutils kernel-2
+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${PV/_p*/}...v${PV/_p*/}-pf${PV/*_p/}.diff -> ${P}.patch
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.extras.tar.xz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PVR}-pf"
+
+PATCHES=( "${DISTDIR}/${P}.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() {
+ default
+ kernel-2_src_prepare
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+
+ elog "Optional features:"
+ optfeature "Userspace KSM helper" sys-process/uksmd
+}
diff --git a/sys-kernel/pf-sources/pf-sources-5.7_p7.ebuild b/sys-kernel/pf-sources/pf-sources-5.7_p7.ebuild
new file mode 100644
index 000000000000..2a683a5287d4
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-5.7_p7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# 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"
+
+inherit eutils kernel-2
+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${PV/_p*/}...v${PV/_p*/}-pf${PV/*_p/}.diff -> ${P}.patch
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.extras.tar.xz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PVR}-pf"
+
+PATCHES=( "${DISTDIR}/${P}.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() {
+ default
+ kernel-2_src_prepare
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+
+ elog "Optional features:"
+ optfeature "Userspace KSM helper" sys-process/uksmd
+}
diff --git a/sys-kernel/pf-sources/pf-sources-5.8_p1.ebuild b/sys-kernel/pf-sources/pf-sources-5.8_p1.ebuild
new file mode 100644
index 000000000000..2a683a5287d4
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-5.8_p1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# 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"
+
+inherit eutils kernel-2
+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${PV/_p*/}...v${PV/_p*/}-pf${PV/*_p/}.diff -> ${P}.patch
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.extras.tar.xz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PVR}-pf"
+
+PATCHES=( "${DISTDIR}/${P}.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() {
+ default
+ kernel-2_src_prepare
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+
+ elog "Optional features:"
+ optfeature "Userspace KSM helper" sys-process/uksmd
+}
diff --git a/sys-kernel/pf-sources/pf-sources-5.8_p2.ebuild b/sys-kernel/pf-sources/pf-sources-5.8_p2.ebuild
new file mode 100644
index 000000000000..2a683a5287d4
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-5.8_p2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# 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"
+
+inherit eutils kernel-2
+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${PV/_p*/}...v${PV/_p*/}-pf${PV/*_p/}.diff -> ${P}.patch
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${PV/_p*/}-${K_GENPATCHES_VER}.extras.tar.xz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PVR}-pf"
+
+PATCHES=( "${DISTDIR}/${P}.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() {
+ default
+ kernel-2_src_prepare
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+
+ elog "Optional features:"
+ optfeature "Userspace KSM helper" sys-process/uksmd
+}