diff options
| -rw-r--r-- | recipes-containers/aardvark-dns/aardvark-dns.inc | 34 | ||||
| -rw-r--r-- | recipes-containers/aardvark-dns/aardvark-dns_1.2.0.bb | 57 |
2 files changed, 35 insertions, 56 deletions
diff --git a/recipes-containers/aardvark-dns/aardvark-dns.inc b/recipes-containers/aardvark-dns/aardvark-dns.inc deleted file mode 100644 index 8c744398..00000000 --- a/recipes-containers/aardvark-dns/aardvark-dns.inc +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | inherit ptest | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://run-ptest \ | ||
| 5 | " | ||
| 6 | |||
| 7 | # Cargo installs the binary to bin so move it to where podman expects it | ||
| 8 | do_install:append() { | ||
| 9 | install -d ${D}${libexecdir}/podman/ | ||
| 10 | mv ${D}${bindir}/* ${D}${libexecdir}/podman/ | ||
| 11 | rm -rf ${D}${bindir}/ | ||
| 12 | } | ||
| 13 | |||
| 14 | |||
| 15 | do_install_ptest () { | ||
| 16 | cp -r ${S}/test ${D}${PTEST_PATH} | ||
| 17 | } | ||
| 18 | |||
| 19 | # Rdepends on slirp4netns | ||
| 20 | inherit features_check | ||
| 21 | REQUIRED_DISTRO_FEATURES ?= "seccomp" | ||
| 22 | |||
| 23 | RDEPENDS:${PN}-ptest += " \ | ||
| 24 | bats \ | ||
| 25 | bash \ | ||
| 26 | coreutils \ | ||
| 27 | jq \ | ||
| 28 | iproute2 \ | ||
| 29 | slirp4netns \ | ||
| 30 | dbus-daemon-proxy \ | ||
| 31 | util-linux-unshare \ | ||
| 32 | bind-utils \ | ||
| 33 | ipcalc \ | ||
| 34 | " | ||
diff --git a/recipes-containers/aardvark-dns/aardvark-dns_1.2.0.bb b/recipes-containers/aardvark-dns/aardvark-dns_1.2.0.bb index a3793018..4e21d9a2 100644 --- a/recipes-containers/aardvark-dns/aardvark-dns_1.2.0.bb +++ b/recipes-containers/aardvark-dns/aardvark-dns_1.2.0.bb | |||
| @@ -1,30 +1,43 @@ | |||
| 1 | # Auto-Generated by cargo-bitbake 0.3.16 | 1 | SUMMARY = "A container-focused DNS server" |
| 2 | # | 2 | HOMEPAGE = "https://github.com/containers/aardvark-dns" |
| 3 | inherit cargo cargo-update-recipe-crates | ||
| 4 | 3 | ||
| 5 | # If this is git based prefer versioned ones if they exist | 4 | LICENSE = "Apache-2.0" |
| 6 | # DEFAULT_PREFERENCE = "-1" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
| 7 | 6 | ||
| 8 | # how to get aardvark-dns could be as easy as but default to a git checkout: | 7 | SRCREV = "cb1a462dd8427e33355f6907394a0646f5a26bf2" |
| 9 | # SRC_URI += "crate://crates.io/aardvark-dns/1.2.0" | 8 | |
| 10 | SRC_URI += "git://github.com/containers/aardvark-dns;protocol=https;nobranch=1" | 9 | # It is possible to fetch the source using the crate fetcher instead: |
| 10 | #SRC_URI = "crate://crates.io/${BPN}/${PV}" | ||
| 11 | SRC_URI = "git://github.com/containers/aardvark-dns;protocol=https;nobranch=1 \ | ||
| 12 | file://run-ptest" | ||
| 11 | require ${BPN}-crates.inc | 13 | require ${BPN}-crates.inc |
| 12 | 14 | ||
| 13 | SRCREV = "cb1a462dd8427e33355f6907394a0646f5a26bf2" | ||
| 14 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
| 15 | CARGO_SRC_DIR = "" | ||
| 16 | 16 | ||
| 17 | # FIXME: update generateme with the real MD5 of the license file | 17 | inherit cargo cargo-update-recipe-crates features_check ptest |
| 18 | LIC_FILES_CHKSUM = " \ | ||
| 19 | file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
| 20 | " | ||
| 21 | 18 | ||
| 22 | SUMMARY = "A container-focused DNS server" | 19 | # Cargo installs the binary to bin so move it to where podman expects it |
| 23 | HOMEPAGE = "https://github.com/containers/aardvark-dns" | 20 | do_install:append() { |
| 24 | LICENSE = "Apache-2.0" | 21 | install -d ${D}${libexecdir} |
| 22 | mv ${D}${bindir} ${D}${libexecdir}/podman | ||
| 23 | } | ||
| 25 | 24 | ||
| 26 | # includes this file if it exists but does not fail | 25 | do_install_ptest() { |
| 27 | # this is useful for anything you may want to override from | 26 | cp -r ${S}/test ${D}${PTEST_PATH} |
| 28 | # what cargo-bitbake generates. | 27 | } |
| 29 | include aardvark-dns-${PV}.inc | 28 | |
| 30 | include aardvark-dns.inc | 29 | # rdepends on slirp4netns |
| 30 | REQUIRED_DISTRO_FEATURES ?= "seccomp" | ||
| 31 | |||
| 32 | RDEPENDS:${PN}-ptest += " \ | ||
| 33 | bash \ | ||
| 34 | bats \ | ||
| 35 | bind-utils \ | ||
| 36 | coreutils \ | ||
| 37 | dbus-daemon-proxy \ | ||
| 38 | ipcalc \ | ||
| 39 | iproute2 \ | ||
| 40 | jq \ | ||
| 41 | slirp4netns \ | ||
| 42 | util-linux-unshare \ | ||
| 43 | " | ||
