Install this version:
emerge -a =x11-misc/logkeys-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =x11-misc/logkeys-9999
Or alternatively:
emerge --autounmask-write -a =x11-misc/logkeys-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools git-r3 systemd
DESCRIPTION="A Linux keylogger"
HOMEPAGE="https://github.com/kernc/logkeys"
EGIT_REPO_URI="https://github.com/kernc/${PN}.git"
LICENSE="GPL-3"
SLOT="0"
IUSE="suid"
src_prepare() {
default
sed -i 's/CXXFLAGS = -Wall -O3/AM_CXXFLAGS = $(CXXFLAGS) -Wall/' \
src/Makefile.am || die "sed failed for Makefile.am"
eautoreconf
}
src_install() {
default
insinto /usr/share/logkeys
doins keymaps/*.map
newinitd "${FILESDIR}"/logkeys.initd logkeys
newconfd "${FILESDIR}"/logkeys.confd logkeys
systemd_dounit "${FILESDIR}"/logkeys.service
if ! use suid; then
rm -f "${ED}"/etc/logkeys-{kill,start}.sh || die "remove logkeys failed"
rm -f "${ED}"/usr/bin/llk{,k} || die "remove llk(k) failed"
fi
}
Manage flags for this package:
euse -i <flag> -p x11-misc/logkeys |
euse -E <flag> -p x11-misc/logkeys |
euse -D <flag> -p x11-misc/logkeys