From: "John Helmert III" <ajak@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/lkrg/
Date: Sun, 02 Mar 2025 19:28:58 +0000 (UTC) [thread overview]
Message-ID: <1740943600.e9368f7b1d8642a7cfe38e25e294ec02709efc03.ajak@gentoo> (raw)
commit: e9368f7b1d8642a7cfe38e25e294ec02709efc03
Author: John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 2 19:26:07 2025 +0000
Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sun Mar 2 19:26:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9368f7b
app-antivirus/lkrg: add 9999
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
app-antivirus/lkrg/lkrg-9999.ebuild | 67 +++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/app-antivirus/lkrg/lkrg-9999.ebuild b/app-antivirus/lkrg/lkrg-9999.ebuild
new file mode 100644
index 000000000000..b7a1d22dce28
--- /dev/null
+++ b/app-antivirus/lkrg/lkrg-9999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 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"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/lkrg-org/lkrg.git"
+else
+ SRC_URI="https://lkrg.org/download/${P}.tar.gz
+ verify-sig? ( https://lkrg.org/download/${P}.tar.gz.sign )"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-openwall )"
+
+VERIFY_SIG_OPENPGP_KEY_PATH="/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 [[ ${PV} == "9999" ]]; then
+ git-r3_src_unpack
+ elif 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
+
+ emake LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" -C logger
+}
+
+src_install() {
+ # logger target not included by all
+ emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" -C logger 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
+}
next reply other threads:[~2025-03-02 19:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-02 19:28 John Helmert III [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-28 18:51 [gentoo-commits] repo/gentoo:master commit in: app-antivirus/lkrg/ John Helmert III
2024-05-11 17:23 John Helmert III
2023-09-20 3:12 John Helmert III
2023-09-20 3:11 John Helmert III
2023-06-18 23:00 John Helmert III
2023-06-18 22:58 John Helmert III
2022-12-19 2:50 John Helmert III
2022-10-21 6:04 John Helmert III
2022-08-01 23:44 John Helmert III
2022-04-21 18:33 John Helmert III
2022-03-15 4:51 John Helmert III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1740943600.e9368f7b1d8642a7cfe38e25e294ec02709efc03.ajak@gentoo \
--to=ajak@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox