summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-09-19 20:07:27 -0700
committerJohn Helmert III <ajak@gentoo.org>2023-09-19 20:08:00 -0700
commitd14bd23579fe930755ec34f165ac05a4a778e4a4 (patch)
treed5b7667e9b23d152adfd6b54b41231b1a71d4831 /app-antivirus
parentapp-accessibility/speech-dispatcher: Default-enable python (diff)
downloadgentoo-d14bd23579fe930755ec34f165ac05a4a778e4a4.tar.gz
gentoo-d14bd23579fe930755ec34f165ac05a4a778e4a4.tar.bz2
gentoo-d14bd23579fe930755ec34f165ac05a4a778e4a4.zip
app-antivirus/lkrg: add 0.9.7
Closes: https://bugs.gentoo.org/914348 Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'app-antivirus')
-rw-r--r--app-antivirus/lkrg/Manifest2
-rw-r--r--app-antivirus/lkrg/lkrg-0.9.7.ebuild55
2 files changed, 57 insertions, 0 deletions
diff --git a/app-antivirus/lkrg/Manifest b/app-antivirus/lkrg/Manifest
index 63c94f3cca1d..dfb00ed2823b 100644
--- a/app-antivirus/lkrg/Manifest
+++ b/app-antivirus/lkrg/Manifest
@@ -2,3 +2,5 @@ DIST lkrg-0.9.5.tar.gz 128061 BLAKE2B 2b8a462033123e310761f84e1ab9e6c914c34a4379
DIST lkrg-0.9.5.tar.gz.sign 801 BLAKE2B 126796abbfe30914910634a31699bc1a2f3889c3569e79610a802a6a6312fda0e388552932bcdc58f9366f790a14c139bafe4443de4ad3dfd66003c3d75f4c71 SHA512 b1ef470962ce45f01d8f26d057ba8fff794c72cbf93cd1559af138a4fa82ebd80c127536c1d50a96365c433246c832f18f2924584bf533f8dcd247d1d38090a8
DIST lkrg-0.9.6.tar.gz 129563 BLAKE2B d4a39a080312d8cb04152e613b96e0ce882ea9ba50b2ffaef2468a1133ebc5d39c991f4b91ca6c51f26612a89dc23a76887beb1336d9a480d8639089f693eff1 SHA512 08c109ffbe7f15ff60ed1958640f43194b96b16c75bd91c1e209e2f93a2b97f60f0b9ed00ccc13effbbf06092fc3c432dfb55f94b9e181a6cd2b30a1ea8ee653
DIST lkrg-0.9.6.tar.gz.sign 801 BLAKE2B 2ed63da40ff75c7faee198e5de73ee7be5903c00a3b1cc2f6acda53274bcf8665183cefbf36749a30b0fd78c38ac8dc1fceeb5f37772e3d335ab22c133fdfa91 SHA512 3e9c3df84991a3f4bd2e71069c1fe76021cd9289b82a1dfaaf9a26fdd9ff94840a728b90235db3f185dc143402a3770a247bf8c70d098f170921ec811d9e5299
+DIST lkrg-0.9.7.tar.gz 130913 BLAKE2B b6cda651e3c098f17148457be4e056315bfe8d5bb52a8051e9eff422f8deadb7d1e72420d99fa29704fc0216eafe0153b8a6f0c945e55ac5ee71a17043303f2f SHA512 bf1af6d1a4d6811a6e7a17473260c93632e2c0a0b92a2a2ea4a8c2a75a1aaa0811b5bcdb399d9bff8444d5af3b8f4d8394b9b862cd9607fa57a614472553e99c
+DIST lkrg-0.9.7.tar.gz.sign 801 BLAKE2B ecb6f4521d0badd6b289bee0e68f6cff5d1dad3be74a8f7b32c828322fa12550d93291eeedff6e848e6db8805be7717cecc6d75cf4404481067f57200123f34e SHA512 66859311a9320b150e4783e389d2e0df32e04fc35ce3a2a4ac6a488215300677fdd63928e9a877a5fdaf44800cb403cc3ce6de8423adaa15fa3b9fc92b7537a5
diff --git a/app-antivirus/lkrg/lkrg-0.9.7.ebuild b/app-antivirus/lkrg/lkrg-0.9.7.ebuild
new file mode 100644
index 000000000000..aef974c6abdd
--- /dev/null
+++ b/app-antivirus/lkrg/lkrg-0.9.7.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1 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}/${PN}-0.9.4-gentoo-paths.patch" )
+
+pkg_setup() {
+ CONFIG_CHECK="HAVE_KRETPROBES KALLSYMS_ALL KPROBES JUMP_LABEL"
+ CONFIG_CHECK+=" MODULE_UNLOAD !PREEMPT_RT ~STACKTRACE"
+ linux-mod-r1_pkg_setup
+}
+
+src_unpack() {
+ if use verify-sig; then
+ verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.sign}
+ fi
+
+ default
+}
+
+src_compile() {
+ local modlist=( lkrg )
+ local modargs=(
+ P_KVER="${KV_FULL}"
+ P_KERNEL="${KERNEL_DIR}"
+ )
+ linux-mod-r1_src_compile
+}
+
+src_install() {
+ linux-mod-r1_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
+}