diff options
-rw-r--r-- | recipes-containers/podman/podman_git.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index c9960287..aa6b25b3 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb | |||
@@ -97,6 +97,12 @@ do_install() { | |||
97 | if ${@bb.utils.contains('PACKAGECONFIG', 'docker', 'true', 'false', d)}; then | 97 | if ${@bb.utils.contains('PACKAGECONFIG', 'docker', 'true', 'false', d)}; then |
98 | oe_runmake install.docker DESTDIR="${D}" | 98 | oe_runmake install.docker DESTDIR="${D}" |
99 | fi | 99 | fi |
100 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
101 | install -d ${D}${systemd_unitdir}/system | ||
102 | install -m 644 ${S}/src/import/contrib/systemd/system/podman.service ${D}/${systemd_unitdir}/system | ||
103 | install -m 644 ${S}/src/import/contrib/systemd/system/podman.socket ${D}/${systemd_unitdir}/system | ||
104 | rm -f ${D}/${systemd_unitdir}/system/docker.service.rpm | ||
105 | fi | ||
100 | } | 106 | } |
101 | 107 | ||
102 | FILES_${PN} += " \ | 108 | FILES_${PN} += " \ |
@@ -106,6 +112,8 @@ FILES_${PN} += " \ | |||
106 | ${sysconfdir}/cni \ | 112 | ${sysconfdir}/cni \ |
107 | " | 113 | " |
108 | 114 | ||
115 | SYSTEMD_SERVICE_${PN} = "podman.service podman.socket" | ||
116 | |||
109 | RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo" | 117 | RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo" |
110 | RRECOMMENDS_${PN} += "slirp4netns" | 118 | RRECOMMENDS_${PN} += "slirp4netns" |
111 | RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}" | 119 | RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}" |