summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-containers/podman/podman_git.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb
index cad48f48..64e26723 100644
--- a/recipes-containers/podman/podman_git.bb
+++ b/recipes-containers/podman/podman_git.bb
@@ -66,6 +66,11 @@ EXTRA_OEMAKE = " \
66 SYSTEMDDIR=${systemd_unitdir}/system USERSYSTEMDDIR=${systemd_unitdir}/user \ 66 SYSTEMDDIR=${systemd_unitdir}/system USERSYSTEMDDIR=${systemd_unitdir}/user \
67" 67"
68 68
69# remove 'docker' from the packageconfig if you don't want podman to
70# build and install the docker wrapper. If docker is enabled in the
71# packageconfig, the podman package will rconfict with docker.
72PACKAGECONFIG ?= "docker"
73
69do_compile() { 74do_compile() {
70 cd ${S}/src 75 cd ${S}/src
71 rm -rf .gopath 76 rm -rf .gopath
@@ -95,7 +100,10 @@ do_compile() {
95do_install() { 100do_install() {
96 cd ${S}/src/.gopath/src/"${PODMAN_PKG}" 101 cd ${S}/src/.gopath/src/"${PODMAN_PKG}"
97 102
98 oe_runmake install install.docker DESTDIR="${D}" 103 oe_runmake install DESTDIR="${D}"
104 if ${@bb.utils.contains('PACKAGECONFIG', 'docker', 'true', 'false', d)}; then
105 oe_runmake install.docker DESTDIR="${D}"
106 fi
99} 107}
100 108
101FILES_${PN} += " \ 109FILES_${PN} += " \
@@ -109,3 +117,4 @@ FILES_${PN} += " \
109# runc provider. 117# runc provider.
110RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo" 118RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo"
111RRECOMMENDS_${PN} += "slirp4netns" 119RRECOMMENDS_${PN} += "slirp4netns"
120RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}"