From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C7079158009 for ; Sun, 18 Jun 2023 22:58:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 154CDE08FA; Sun, 18 Jun 2023 22:58:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC453E08FA for ; Sun, 18 Jun 2023 22:58:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 09AE5341006 for ; Sun, 18 Jun 2023 22:58:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99674A66 for ; Sun, 18 Jun 2023 22:58:18 +0000 (UTC) From: "John Helmert III" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "John Helmert III" Message-ID: <1687129091.b87c33217a3ff2ef3882ee50c4ae6c22563a9651.ajak@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/lkrg/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-antivirus/lkrg/lkrg-0.9.6-r1.ebuild X-VCS-Directories: app-antivirus/lkrg/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: b87c33217a3ff2ef3882ee50c4ae6c22563a9651 X-VCS-Branch: master Date: Sun, 18 Jun 2023 22:58:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 837ba1a2-1f76-48bc-97bd-a6e98a60c346 X-Archives-Hash: 34bb65a6d23f61282491d0762704db90 commit: b87c33217a3ff2ef3882ee50c4ae6c22563a9651 Author: John Helmert III gentoo org> AuthorDate: Sun Jun 18 22:57:34 2023 +0000 Commit: John Helmert III gentoo org> CommitDate: Sun Jun 18 22:58:11 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b87c3321 app-antivirus/lkrg: migrate to linux-mod-r1 Closes: https://bugs.gentoo.org/908693 Signed-off-by: John Helmert III gentoo.org> app-antivirus/lkrg/lkrg-0.9.6-r1.ebuild | 55 +++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/app-antivirus/lkrg/lkrg-0.9.6-r1.ebuild b/app-antivirus/lkrg/lkrg-0.9.6-r1.ebuild new file mode 100644 index 000000000000..bbad480d3a9a --- /dev/null +++ b/app-antivirus/lkrg/lkrg-0.9.6-r1.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 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}/${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 +}