Systemd units are now installed in multi-arch path

This commit is contained in:
Laurent Bigonville 2012-08-12 23:49:47 +02:00
parent b5e16725fa
commit 4730afcab2

8
debian/rules vendored
View File

@ -68,13 +68,13 @@ common-install-arch::
# Install systemd files only on systems where it's supported # Install systemd files only on systems where it's supported
ifeq (linux,$(DEB_HOST_ARCH_OS)) ifeq (linux,$(DEB_HOST_ARCH_OS))
install -m 644 -D $(CURDIR)/debian/tmp/lib/systemd/system/nut-monitor.service \ install -m 644 -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system/nut-monitor.service \
$(CURDIR)/debian/nut-client/lib/systemd/system/nut-monitor.service $(CURDIR)/debian/nut-client/lib/systemd/system/nut-monitor.service
install -D $(CURDIR)/debian/tmp/lib/systemd/system-shutdown/nutshutdown \ install -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system-shutdown/nutshutdown \
$(CURDIR)/debian/nut-server/lib/systemd/system-shutdown/nutshutdown $(CURDIR)/debian/nut-server/lib/systemd/system-shutdown/nutshutdown
install -m 644 -D $(CURDIR)/debian/tmp/lib/systemd/system/nut-driver.service \ install -m 644 -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system/nut-driver.service \
$(CURDIR)/debian/nut-server/lib/systemd/system/nut-driver.service $(CURDIR)/debian/nut-server/lib/systemd/system/nut-driver.service
install -m 644 -D $(CURDIR)/debian/tmp/lib/systemd/system/nut-server.service \ install -m 644 -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system/nut-server.service \
$(CURDIR)/debian/nut-server/lib/systemd/system/nut-server.service $(CURDIR)/debian/nut-server/lib/systemd/system/nut-server.service
endif endif