diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest new file mode 100644 index 0000000..bcee85a --- /dev/null +++ b/sys-kernel/pf-sources/Manifest @@ -0,0 +1,5 @@ +DIST genpatches-5.5-1.base.tar.xz 3984 BLAKE2B aed3662231f2863f234ebdc3c615c8c7fa32c3b1301659388facef4354b148bd31a9978917dcced2081f157afa176df5cda2e11fa085e3599f68af65f8edfaec SHA512 bdbe3d72620418ad0245f7e7f4fec7960d302be4842c6a090440f8ffccc5f6a67fdf11e51da5a14b659ec7a003410f1374b70ece128455ffd8eaf13177a427ff +DIST genpatches-5.5-1.extras.tar.xz 1744 BLAKE2B 78353a253969918f5c054768df01bf7d0a0887f5686f6b84a78f28a0c1ef49101f278c5140367a4547cce9932ec9e7dcff4b4fd8519bb9e9dd9b7d4764461877 SHA512 84815483c7c30e2258c1d246080c460177b8e3b6c49592a78c2a5d83798b703da845ee3f1f939da1e947dddced42fc83434ca162f8e5135c838877304e3a80cf +DIST linux-5.5.tar.xz 110713660 BLAKE2B 36b990d3650c409652206c319c93c0cf68885334050bc286b479c8b844bc47354547e19eebb58caafb026b96d134f39f0c7ce38b4eebe9da7ea6d1610a1e2af2 SHA512 fa74fdabb5e63384a39e54da05b86a9ae9ea16179524b041fbbdffc7177e80b53600ae98d76be127ba216148f9dc55fe07ab20637e22c6d6030cb4aa09eb2f86 +DIST pf-sources-5.5_p7.patch 2978872 BLAKE2B 3b1e63dd0b3fdf1d880053576b8f4efa928292a7bde7f536ce551845bf2c33c74d008b3533428917a224cc0e959d5ebcd3bf09b2754f77183f6366b82a22d9eb SHA512 8da0e9085970dd5f3f641bcb9dff867db390dc49e278ef29ee6f84d2e99007d3403bc69f8e96280a6feccaf3f85731335a89e4888cf5df567429715baf5695fd +EBUILD pf-sources-5.5_p7.ebuild 1954 BLAKE2B 15c4bd2a69604a36546318261ce7a8de97ab6e78994e8614e72ea6c968aed2a22389557759ab7265a2c0f4cdd5c29e68a82143b6ca23594698c1e9f0a844f4b9 SHA512 0de23fd94dbcbf7e9050cf8399f09adf5b1e2fad6bf12b9c6ba05805e251f0c3d3051014379d6b79cc5f443d6726bd5dea87b1759674bb535b3cfb3dc22a6524 diff --git a/sys-kernel/pf-sources/pf-sources-5.5_p7.ebuild b/sys-kernel/pf-sources/pf-sources-5.5_p7.ebuild new file mode 100644 index 0000000..2a683a5 --- /dev/null +++ b/sys-kernel/pf-sources/pf-sources-5.5_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 +}