Install this version:
emerge -a =app-antivirus/lkrg-0.9.9
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-antivirus/lkrg-0.9.9
Or alternatively:
emerge --autounmask-write -a =app-antivirus/lkrg-0.9.9
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.9.9 | 8 | ~amd64 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dkms 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="/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"
dkms_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}"
)
dkms_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
dkms_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
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | lkrg-0.9.9.tar.gz | 161522 bytes | https://lkrg.org/download/lkrg-0.9.9.tar.gz |
| DIST | lkrg-0.9.9.tar.gz.sign | 801 bytes | https://lkrg.org/download/lkrg-0.9.9.tar.gz.sign |