blob: 9b4eafccdd9e1d2d9b2c8f95139d5c1c661d0a63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 2022-2023 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:=
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
}
|