summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-23 11:42:22 +0100
committerGitHub <noreply@github.com>2020-03-23 11:42:22 +0100
commit72a2011cb12a2fbf74abf7c32fba8505a5f4e8f6 (patch)
tree9c378cf688839641b0e2d808db47ee17fcff3ad9 /Makefile
parentd6c9f3e7bf83f870a5929c9d37d29f5993e73d08 (diff)
parent8ab686f0e08d90f0353648446ae49cd4ba85cdfb (diff)
downloadpodman-72a2011cb12a2fbf74abf7c32fba8505a5f4e8f6.tar.gz
podman-72a2011cb12a2fbf74abf7c32fba8505a5f4e8f6.tar.bz2
podman-72a2011cb12a2fbf74abf7c32fba8505a5f4e8f6.zip
Merge pull request #5567 from rhatdan/service
Add APIV2 service files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d0f7d9382..7e5a564a0 100644
--- a/Makefile
+++ b/Makefile
@@ -527,6 +527,11 @@ install.systemd:
# For user units the default.target that's the default is fine.
sed -e 's,^WantedBy=.*,WantedBy=default.target,' < contrib/varlink/io.podman.service > ${DESTDIR}${USERSYSTEMDDIR}/io.podman.service
install ${SELINUXOPT} -m 644 contrib/varlink/podman.conf ${DESTDIR}${TMPFILESDIR}/podman.conf
+ # Install APIV2 services
+ install ${SELINUXOPT} -m 644 contrib/systemd/user/podman.socket ${DESTDIR}${USERSYSTEMDDIR}/podman.socket
+ install ${SELINUXOPT} -m 644 contrib/systemd/user/podman.service ${DESTDIR}${USERSYSTEMDDIR}/podman.service
+ install ${SELINUXOPT} -m 644 contrib/systemd/system/podman.socket ${DESTDIR}${SYSTEMDDIR}/podman.socket
+ install ${SELINUXOPT} -m 644 contrib/systemd/system/podman.service ${DESTDIR}${SYSTEMDDIR}/podman.service
.PHONY: uninstall
uninstall:
@@ -545,6 +550,10 @@ uninstall:
rm -f ${DESTDIR}${SYSTEMDDIR}/io.podman.socket
rm -f ${DESTDIR}${USERSYSTEMDDIR}/io.podman.socket
rm -f ${DESTDIR}${SYSTEMDDIR}/io.podman.service
+ rm -f ${DESTDIR}${SYSTEMDDIR}/podman.service
+ rm -f ${DESTDIR}${SYSTEMDDIR}/podman.socket
+ rm -f ${DESTDIR}${USERSYSTEMDDIR}/podman.socket
+ rm -f ${DESTDIR}${USERSYSTEMDDIR}/podman.service
.PHONY: .gitvalidation
.gitvalidation: .gopathok