mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 15:37:58 +02:00
Closes: https://bugs.gentoo.org/958332 Signed-off-by: xz-dev <xiangzhedev@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42645 Closes: https://github.com/gentoo/gentoo/pull/42645 Signed-off-by: Sam James <sam@gentoo.org>
39 lines
707 B
Bash
39 lines
707 B
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit linux-info meson
|
|
|
|
DESCRIPTION="Userspace KSM helper daemon"
|
|
HOMEPAGE="https://codeberg.org/pf-kernel/uksmd"
|
|
SRC_URI="https://codeberg.org/pf-kernel/uksmd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}"/${PN}
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="systemd"
|
|
|
|
DEPEND="
|
|
sys-libs/libcap-ng
|
|
>=sys-process/procps-4.0.5:=
|
|
systemd? ( sys-apps/systemd:= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
CONFIG_CHECK="~KSM"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_feature systemd)
|
|
)
|
|
|
|
meson_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
|
|
newinitd "${FILESDIR}/uksmd.init" uksmd
|
|
}
|