Install this version:
emerge -a =sys-apps/dkms-gentoo-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-apps/dkms-gentoo-9999
Or alternatively:
emerge --autounmask-write -a =sys-apps/dkms-gentoo-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
DESCRIPTION="DKMS analog for gentoo"
HOMEPAGE="https://github.com/megabaks/dkms-gentoo"
EGIT_REPO_URI="https://github.com/megabaks/${PN}.git"
LICENSE="GPL-3"
SLOT="0"
RDEPEND="
app-shells/bash
sys-apps/gawk
sys-apps/openrc
sys-apps/portage
"
DEPEND="${RDEPEND}"
src_install() {
dosbin dkms-gentoo/dkms-gentoo
newinitd dkms-gentoo/dkms dkms
dodir /var/lib/portage
DKMS_DB="${D}/var/lib/portage/dkms_db" "${D}"/usr/sbin/dkms-gentoo --db
}
pkg_preinst() {
# Preserve existing database across reinstalls.
if [[ -f "${EROOT}/var/lib/portage/dkms_db" ]]; then
cp "${EROOT}/var/lib/portage/dkms_db" \
"${D}/var/lib/portage/dkms_db" || die
fi
}
pkg_postinst() {
[[ ! -f /etc/runlevels/*/dkms ]] && elog "Now you need run 'rc-update add dkms boot'"
}
app-shells/bash sys-apps/gawk sys-apps/openrc sys-apps/portage
app-shells/bash sys-apps/gawk sys-apps/openrc sys-apps/portage