Diff uksmd-0_pre20220705-r1 with a uksmd-6.4.1
/usr/portage/sys-process/uksmd/uksmd-6.4.1.ebuild 2023-10-09 14:52:35.588368504 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
inherit linux-info meson systemd |
|
7 | ||
8 |
MY_COMMIT="f10f38e3adcaf6175e6c4c1846cad72ae9ab2cf2" |
|
6 |
inherit linux-info meson |
|
9 | 7 | |
10 | 8 |
DESCRIPTION="Userspace KSM helper daemon" |
11 | 9 |
HOMEPAGE="https://codeberg.org/pf-kernel/uksmd" |
12 |
SRC_URI="https://codeberg.org/pf-kernel/uksmd/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" |
|
10 |
SRC_URI="https://codeberg.org/pf-kernel/uksmd/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|
11 |
S="${WORKDIR}"/${PN} |
|
13 | 12 | |
14 | 13 |
LICENSE="GPL-3" |
15 | 14 |
SLOT="0" |
16 | 15 |
KEYWORDS="~amd64 ~x86" |
16 |
IUSE="systemd" |
|
17 | 17 | |
18 |
# <procps-4 for bug #913523 |
|
19 | 18 |
DEPEND=" |
20 | 19 |
sys-libs/libcap-ng |
21 |
<sys-process/procps-4:= |
|
20 |
>=sys-process/procps-4:= |
|
21 |
systemd? ( sys-apps/systemd:= ) |
|
22 | 22 |
" |
23 | 23 |
RDEPEND="${DEPEND}" |
24 | 24 | |
25 | 25 |
CONFIG_CHECK="~KSM" |
26 | 26 | |
27 |
S="${WORKDIR}/uksmd" |
|
27 |
PATCHES=( |
|
28 |
"${FILESDIR}"/${PN}-6.4.1-systemd-automagic.patch |
|
29 |
) |
|
30 | ||
31 |
src_configure() { |
|
32 |
local emesonargs=( |
|
33 |
$(meson_feature systemd) |
|
34 |
) |
|
28 | 35 | |
29 |
PATCHES=( "${FILESDIR}"/uksmd-0-remove-systemd-dep.patch ) |
|
36 |
meson_src_configure |
|
37 |
} |
|
30 | 38 | |
31 | 39 |
src_install() { |
32 | 40 |
meson_src_install |
33 | 41 | |
34 | 42 |
newinitd "${FILESDIR}/uksmd.init" uksmd |
35 |
systemd_dounit uksmd.service |
|
36 | 43 |
} |