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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 56017158021 for ; Mon, 19 Dec 2022 02:50:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87574E0B3B; Mon, 19 Dec 2022 02:50:50 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5BE64E0B2E for ; Mon, 19 Dec 2022 02:50:50 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 744A4340C59 for ; Mon, 19 Dec 2022 02:50:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C52B37CE for ; Mon, 19 Dec 2022 02:50:47 +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: <1671418195.33d403f504e08fb2524978be19a00c4180293f65.ajak@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/lkrg/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-antivirus/lkrg/Manifest app-antivirus/lkrg/lkrg-0.9.6.ebuild X-VCS-Directories: app-antivirus/lkrg/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: 33d403f504e08fb2524978be19a00c4180293f65 X-VCS-Branch: master Date: Mon, 19 Dec 2022 02:50:47 +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: 81bfb7ff-a8b6-4afe-9d68-a7f65b049e19 X-Archives-Hash: d9b799645cb46598322b7396887c4144 commit: 33d403f504e08fb2524978be19a00c4180293f65 Author: John Helmert III gentoo org> AuthorDate: Mon Dec 19 02:49:55 2022 +0000 Commit: John Helmert III gentoo org> CommitDate: Mon Dec 19 02:49:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33d403f5 app-antivirus/lkrg: add 0.9.6 Signed-off-by: John Helmert III gentoo.org> app-antivirus/lkrg/Manifest | 2 ++ app-antivirus/lkrg/lkrg-0.9.6.ebuild | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/app-antivirus/lkrg/Manifest b/app-antivirus/lkrg/Manifest index c6154c2772b3..63c94f3cca1d 100644 --- a/app-antivirus/lkrg/Manifest +++ b/app-antivirus/lkrg/Manifest @@ -1,2 +1,4 @@ DIST lkrg-0.9.5.tar.gz 128061 BLAKE2B 2b8a462033123e310761f84e1ab9e6c914c34a437957566f9a054a625aca2e90aea8c00673b67e178b98b27078f71870f16a7308b38a8e5506cc421af3065648 SHA512 ae735f14bcb92e964a2a1d4cf11f44d8589ebf7b09634799ce38f2b27e9df9eb53e6dc00818df743a20de947ea402dcdcd8bee274b0954addf742547333d939a 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 diff --git a/app-antivirus/lkrg/lkrg-0.9.6.ebuild b/app-antivirus/lkrg/lkrg-0.9.6.ebuild new file mode 100644 index 000000000000..121872fefc44 --- /dev/null +++ b/app-antivirus/lkrg/lkrg-0.9.6.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}/${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_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 +}