sys-kernel/hardened-kernel: update SRC_URI
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
This commit is contained in:
@@ -65,8 +65,6 @@ REQUIRED_USE="
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
@@ -98,20 +96,21 @@ src_unpack() {
|
||||
src_prepare() {
|
||||
local patch
|
||||
|
||||
mkdir ${WORKDIR}/${USER_PATCHSET}
|
||||
mkdir "${WORKDIR}/${USER_PATCHSET}"
|
||||
|
||||
# remove some genpatches causes conflicts with linux-hardened patch
|
||||
for patch in ${GENPATCHES_EXCLUDE}; do
|
||||
rm -f ${WORKDIR}/${PATCHSET}/${patch}
|
||||
for patch in "${GENPATCHES_EXCLUDE}"; do
|
||||
rm -f "${WORKDIR}/${PATCHSET}/${patch}"
|
||||
done
|
||||
# Remove already exists changes in linux-hardened patch
|
||||
sed -i '344,356d' "${WORKDIR}/${PATCHSET}/0010-Add-Gentoo-Linux-support-config-settings-and-default.patch"
|
||||
# include linux-hardened patch with priority
|
||||
cp ${DISTDIR}/linux-hardened-v${HARDENED_PATCH_VER}.patch ${WORKDIR}/${USER_PATCHSET}/1198_linux-hardened-${HARDENED_PATCH_VER}.patch
|
||||
cp "${DISTDIR}/linux-hardened-v${HARDENED_PATCH_VER}.patch" \
|
||||
"${WORKDIR}/${USER_PATCHSET}/1198_linux-hardened-${HARDENED_PATCH_VER}.patch"
|
||||
|
||||
# copy pkg maintainer supplied patches
|
||||
if [ -d "${FILESDIR}/${MY_P}" ]; then
|
||||
cp "${FILESDIR}/${MY_P}"/*.patch ${WORKDIR}/${USER_PATCHSET}/
|
||||
cp "${FILESDIR}/${MY_P}"/*.patch "${WORKDIR}/${USER_PATCHSET}"/
|
||||
fi
|
||||
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alex@millerson.name</email>
|
||||
<name>Alexander Miroshnichenko</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name='initramfs'>Build initramfs along with the kernel.</flag>
|
||||
<flag name="experimental">
|
||||
Apply experimental patches; for more information, see "https://wiki.gentoo.org/wiki/Project:Kernel/Experimental".
|
||||
</flag>
|
||||
<flag name="hardened">
|
||||
Use selection of hardening options recommended by Kernel Self
|
||||
Protection Project
|
||||
</flag>
|
||||
<flag name="initramfs">
|
||||
Build initramfs along with the kernel.
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user