summaryrefslogtreecommitdiffstats
path: root/recipes-containers/netavark/netavark_2.0.0-dev+git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/netavark/netavark_2.0.0-dev+git.bb')
-rw-r--r--recipes-containers/netavark/netavark_2.0.0-dev+git.bb61
1 files changed, 61 insertions, 0 deletions
diff --git a/recipes-containers/netavark/netavark_2.0.0-dev+git.bb b/recipes-containers/netavark/netavark_2.0.0-dev+git.bb
new file mode 100644
index 00000000..2df8c750
--- /dev/null
+++ b/recipes-containers/netavark/netavark_2.0.0-dev+git.bb
@@ -0,0 +1,61 @@
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 = "a1f4894834ffc4cf7b7e5b83dc3b20d27f630239"
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;branch=main \
12 file://run-ptest"
13require ${BPN}-crates.inc
14
15PACKAGECONFIG ?= "aardvark-dns"
16
17# From the documentation of netavark
18# https://github.com/containers/netavark/blob/v1.1.0/DISTRO_PACKAGE.md#dependency-on-aardvark-dns
19# The aardvark-dns will be installed by default with netavark, but
20# netavark will be functional without it.
21PACKAGECONFIG[aardvark-dns] = ",,, aardvark-dns"
22
23inherit cargo cargo-update-recipe-crates features_check ptest
24
25# Cargo installs the binary to bin so move it to where podman expects it
26do_install:append() {
27 install -d ${D}${libexecdir}
28 mv ${D}${bindir} ${D}${libexecdir}/podman
29}
30
31do_install_ptest() {
32 cp -r ${S}/test ${D}${PTEST_PATH}
33 for i in 200-bridge-firewalld.bats 400-ipvlan.bats 500-plugin.bats; do
34 [ -f ${D}${PTEST_PATH}/test/${i} ] && mv ${D}${PTEST_PATH}/test/${i} ${D}${PTEST_PATH}/test/${i}.bak;
35 done
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
47# iputils is used because busybox ping behaves differently
48RDEPENDS:${PN}-ptest += " \
49 bash \
50 bats \
51 bind-utils \
52 coreutils \
53 dbus-daemon-proxy \
54 iproute2 \
55 iputils \
56 jq \
57 nftables \
58 procps-ps \
59 util-linux-nsenter \
60 util-linux-unshare \
61"