summaryrefslogtreecommitdiffstats
path: root/recipes-containers/netavark/netavark_1.7.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/netavark/netavark_1.7.0.bb')
-rw-r--r--recipes-containers/netavark/netavark_1.7.0.bb59
1 files changed, 59 insertions, 0 deletions
diff --git a/recipes-containers/netavark/netavark_1.7.0.bb b/recipes-containers/netavark/netavark_1.7.0.bb
new file mode 100644
index 00000000..43c3ee5f
--- /dev/null
+++ b/recipes-containers/netavark/netavark_1.7.0.bb
@@ -0,0 +1,59 @@
1SUMMARY = "A container network stack"
2HOMEPAGE = "https://github.com/containers/netavark"
3
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
6
7SRCREV = "ab03eec05e6271ad2028e46e95941d8551cb69a1"
8
9# It is possible to fetch the source using the crate fetcher instead:
10#SRC_URI = "crate://crates.io/${BPN}/${PV}"
11SRC_URI = "git://github.com/containers/netavark.git;protocol=https;nobranch=1 \
12 file://tests.patch \
13 file://run-ptest"
14require ${BPN}-crates.inc
15
16S = "${WORKDIR}/git"
17
18PACKAGECONFIG ?= "aardvark-dns"
19
20# From the documentation of netavark
21# https://github.com/containers/netavark/blob/v1.1.0/DISTRO_PACKAGE.md#dependency-on-aardvark-dns
22# The aardvark-dns will be installed by default with netavark, but
23# netavark will be functional without it.
24PACKAGECONFIG[aardvark-dns]= ",,, aardvark-dns"
25
26inherit cargo cargo-update-recipe-crates features_check ptest
27
28# Cargo installs the binary to bin so move it to where podman expects it
29do_install:append() {
30 install -d ${D}${libexecdir}
31 mv ${D}${bindir} ${D}${libexecdir}/podman
32}
33
34do_install_ptest() {
35 cp -r ${S}/test ${D}${PTEST_PATH}
36}
37
38# rdepends on aardvark-dns which rdepends on slirp4netns
39REQUIRED_DISTRO_FEATURES ?= "seccomp"
40
41
42DEPENDS += "protobuf-c-native protobuf-c"
43
44# bind-utils is used to install dig
45# procps-ps is necessary because the ps from busybox is
46# not having the same behavior
47RDEPENDS:${PN}-ptest += " \
48 bash \
49 bats \
50 bind-utils \
51 coreutils \
52 dbus-daemon-proxy \
53 iproute2 \
54 jq \
55 nmap \
56 procps-ps \
57 util-linux-nsenter \
58 util-linux-unshare \
59"