From fceabcd48faf4c890719a14ac4ed93b6b7993364 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 23 Jul 2022 20:51:24 +0100 Subject: gentoo auto-resync : 23:07:2022 - 20:51:24 --- app-antivirus/lkrg/Manifest | 4 ++ .../lkrg/files/lkrg-0.9.4-gentoo-paths.patch | 20 +++++++++ app-antivirus/lkrg/lkrg-0.9.4.ebuild | 50 ++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 app-antivirus/lkrg/files/lkrg-0.9.4-gentoo-paths.patch create mode 100644 app-antivirus/lkrg/lkrg-0.9.4.ebuild (limited to 'app-antivirus/lkrg') diff --git a/app-antivirus/lkrg/Manifest b/app-antivirus/lkrg/Manifest index ce7ca98558ca..42ccaf13e012 100644 --- a/app-antivirus/lkrg/Manifest +++ b/app-antivirus/lkrg/Manifest @@ -1,8 +1,12 @@ AUX lkrg-0.9.2-systemd-coredump-umh-whitelist.patch 1052 BLAKE2B 6cf0af6b59026b1526f85f6db4a6c6b936add6b0f612a38a06eefb1de9363e57417c03c69e770be1c5e3da0fdb1f0382e862154e84c9828526dbca7c813bdadb SHA512 daba60c48e68ea8c0102424fd20c1eca360ffb1ce8eec25bd52935b5f2b5c0b6936fb3476fc941a27cef7fe4dc3be3446a8424f48e3bedf856e70fb56bd267c8 +AUX lkrg-0.9.4-gentoo-paths.patch 717 BLAKE2B cd30d1390ee9df058b93b8c7cfb4f5620084ddcbd7d3bb7c0f8db4b66e16e476314f55dd80ebe1084ea408d516e4857fb1ba5c9767b47255a3b76c756bc35bfa SHA512 5b510e93c676d9ff5c8b0176856dc319302e58e8a45729af0767faffd0189e6fccddbecb656d08926281b35da810e10d8f2c4434b1032e99a31375041374acaa DIST lkrg-0.9.2.tar.gz 125976 BLAKE2B c3da2d4599c9dd5b7d6fbec426fd93d802715f6c8566471f82c8f1c7d31621ebb4a2cc4c285d076aad6a6ee6b1bb790debbb365cfc6220192df049ac1d3c67a9 SHA512 5fec807618817bcb516e1a6779def6979badbdac6fe9b38fcce8425a0c7ebe3fb55c05d3080d8cac2d67cac6e8b7d2d77b3a1be450227299e2a02a311e223331 DIST lkrg-0.9.2.tar.gz.sign 801 BLAKE2B 0cd8b18c8a0fbcca61ffa868b406d048461ddf9189fb08f15faa45e01b8731906a6b14105dfcf92bb5124373860f6695594063ee8d138c94c70adf471bc15e0a SHA512 18b547ca84a7fd2957484857e17983408e92fd005d58b77b399c5156ecb09fc5e9e6c910337654a2655883d103098c1769b1993017eec753bd21e63d6491ad04 DIST lkrg-0.9.3.tar.gz 127986 BLAKE2B 5d059247c9a8a5abe4795d22b3806544dbb4c332947012ec33ceace27747663375acf68a4e859fae293eead5f7d9540b4261d3fef149d1e5c6ee8714a2df28d6 SHA512 9b441b93ff28b733afc513643a5d843c1707ac5a05adb359a3142b9ca7cba6a4790ebca4f9e6ca88a6ddf61f2b06aa242e02f288e9295e74999ed534794fb45d DIST lkrg-0.9.3.tar.gz.sign 801 BLAKE2B c054522f281d09a008821f92c7b43b5384241100c68ef0b0ea7171b8c492772a5d668b425089e1aac990bf6a675215dd5861f3f2598995e31a8db82a8b2ec7e9 SHA512 87c2bfe8d342b85f3c6c8226be5b698527a507369603a03eefead89ea8635b5ba95f3cbbe1d84cd77ac42bb8a773a7133917e0c87132b4851ff4017f77bc683a +DIST lkrg-0.9.4.tar.gz 127462 BLAKE2B 4085d517e0a6360739a031e8afe4540354d35a8a59d33c96900c2def0c80bf81bef76b84322bb4beca649917693fd6a121ce81ba8caf652adbe406757729083d SHA512 7dd88a3071bbc7a1e6ca725a339f8a93544bf97f1b73e6a4b424895810a4f094d056b644120ad6df14650cd7e5678a356063b1e40113d770e059a7ca4d3e461c +DIST lkrg-0.9.4.tar.gz.sign 801 BLAKE2B eb7c6f1aa925f73bbec7cad5da9f6676b3b6b2691151455ff240f8c6af844f61478df7050b73d3144877b2ad64bf9a25e13e8ea9fcbaf85988c02438b82893ab SHA512 6bec0699b15ba42dc7a7afc18a91d77668b3404b9e069db69634ff1e1af33b96eb4ffa5e25ce46cd012acdfdce7535d3cd2eb05ac55ae3bb4134f27f45712ce8 EBUILD lkrg-0.9.2.ebuild 1028 BLAKE2B c1a49d95862433aa5defcf44feaa5357c983ca4edb49bc0b539a0ab604191f19b9b67115672c6f0b01e5572a47ac2b2d6f3f19d662b7d503e753f29ab02b5137 SHA512 6f9d9bd00296f8a6cd122c57b1e738a70c031c59888c8017a79cc7e3e4b3097e0592f9aa1a42baa9c181308bed6c141e337b6dbe97a62c2b4833ff53119b05f5 EBUILD lkrg-0.9.3.ebuild 952 BLAKE2B d28b8a8b1cb5040250afbd0f8d33911b6ad07112759ee00cc9c8e06c885d8631f136a130c399246daa5cc673501864e326fa708f724f4b967329315864aef15e SHA512 9744b5e47787760ae12604d2da1b627a5e908061b0b845279ad5e610b5a9a2b6f18ef5c1523397cc87ca721a3715f6999b00ca1ff703fbfc507e0c95de88ef22 +EBUILD lkrg-0.9.4.ebuild 1222 BLAKE2B 9a7e8ece6aad6d4071304ec04b70b3b58cf9f9f402340b83fc5ec9a075d39ee4bae3f795c10075faab558078f998c18aec5362c522be0043ad623fbc794fe8a2 SHA512 2e276a86ff311ae88f474959b14feca0a005daeab5623c871042cf20c8cdb65e849e218204041bd2b322a5ac0eaad743c37d7d8381eb8088fd5b3277e6eec646 MISC metadata.xml 326 BLAKE2B 01848278e317c44c65d36ffb73d68b87981796f69301447a32ea47f93bc1fda9ca82e7b8036310e733bf1f0ab67a4e31868e48e0c720023a016ae9f743b72f59 SHA512 afa115a36eeb4290c82de2be302f5432294beb26e3d4709de0c67df693694bcdd73573ca24b404493af492e958698c257f4b48395c29d4ab46a9796e871bcc3a diff --git a/app-antivirus/lkrg/files/lkrg-0.9.4-gentoo-paths.patch b/app-antivirus/lkrg/files/lkrg-0.9.4-gentoo-paths.patch new file mode 100644 index 000000000000..394f045644cc --- /dev/null +++ b/app-antivirus/lkrg/files/lkrg-0.9.4-gentoo-paths.patch @@ -0,0 +1,20 @@ +commit fa75ae17394574d07cbf55a184a2ac7a73e9a0ed (HEAD -> main) +Author: John Helmert III +Date: Sat Jul 23 00:15:11 2022 -0500 + + Fix paths for Gentoo + + Signed-off-by: John Helmert III + +diff --git a/scripts/bootup/systemd/lkrg.service b/scripts/bootup/systemd/lkrg.service +index 4ac9812..495adb9 100644 +--- a/scripts/bootup/systemd/lkrg.service ++++ b/scripts/bootup/systemd/lkrg.service +@@ -18,6 +18,6 @@ ConditionKernelCommandLine=!nolkrg + [Service] + Type=oneshot + ExecStart=/sbin/modprobe -v lkrg +-ExecStartPost=/sbin/sysctl -p /etc/sysctl.d/01-lkrg.conf ++ExecStartPost=/usr/sbin/sysctl -p /lib/sysctl.d/01-lkrg.conf + ExecStop=/sbin/modprobe -v -r lkrg + RemainAfterExit=yes diff --git a/app-antivirus/lkrg/lkrg-0.9.4.ebuild b/app-antivirus/lkrg/lkrg-0.9.4.ebuild new file mode 100644 index 000000000000..874445ba0318 --- /dev/null +++ b/app-antivirus/lkrg/lkrg-0.9.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod linux-info systemd verify-sig + +DESCRIPTION="Linux Kernel Runtime Guard" +HOMEPAGE="https://lkrg.org" +SRC_URI="https://lkrg.org/download/${P}.tar.gz + verify-sig? ( https://lkrg.org/download/${P}.tar.gz.sign )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-openwall )" + +MODULE_NAMES="lkrg(misc:${S}:${S})" +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/openwall.asc" + +PATCHES=( "${FILESDIR}/${P}-gentoo-paths.patch" ) + +pkg_setup() { + CONFIG_CHECK="HAVE_KRETPROBES KALLSYMS_ALL KPROBES JUMP_LABEL" + CONFIG_CHECK+=" MODULE_UNLOAD !PREEMPT_RT ~STACKTRACE" + linux-mod_pkg_setup + + # compile against selected (not running) target + BUILD_PARAMS="P_KVER=${KV_FULL} P_KERNEL=${KERNEL_DIR}" + BUILD_TARGETS="all" +} + +src_unpack() { + if use verify-sig; then + verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.sign} + fi + + default +} + +src_install() { + linux-mod_src_install + + systemd_dounit scripts/bootup/systemd/lkrg.service + newinitd scripts/bootup/openrc/lkrg lkrg.initd + + insinto /lib/sysctl.d + newins scripts/bootup/lkrg.conf 01-lkrg.conf +} -- cgit v1.2.3