blob: 60cc559bf3a612a3403aa34bd55b780815650777 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools bash-completion-r1 linux-info systemd
DESCRIPTION="utility for managing the nvdimm sub-system in the linux kernel"
HOMEPAGE="https://pmem.io"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/pmem/ndctl"
else
SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
fi
LICENSE="LGPL-2.1"
SLOT="0"
RESTRICT="test"
RDEPEND="
dev-libs/json-c
sys-apps/keyutils
sys-apps/kmod
sys-apps/util-linux
virtual/udev
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/asciidoc
app-text/xmlto
virtual/pkgconfig
"
CONFIG_CHECK="~BLK_DEV_RAM_DAX ~FS_DAX ~X86_PMEM_LEGACY ~LIBNVDIMM ~BLK_DEV_PMEM \
~ARCH_HAS_PMEM_API ~TRANSPARENT_HUGEPAGE ~MEMORY_HOTPLUG ~MEMORY_HOTREMOVE \
~ZONE_DEVICE ~FS_DAX_PMD"
src_prepare() {
"${S}"/git-version-gen
default
eautoreconf
}
src_configure() {
econf \
--disable-asciidoctor \
--without-bash \
--without-systemd \
--with-keyutils
}
src_install() {
emake DESTDIR="${D}" install
dobashcomp contrib/${PN}
systemd_dounit ${PN}/ndctl-monitor.service
}
|