]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: [Debian] initscripts need installing when making the package
authorAndy Whitcroft <apw@canonical.com>
Fri, 3 Apr 2015 13:03:12 +0000 (14:03 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
debian/rules.d/3-binary-indep.mk

index 1e7bc9bcc7a8350e2897e506c7dd99b770e2d8c3..4dbaf4f02f00fe9b5da859ca3d38a8c488dc1077 100644 (file)
@@ -134,11 +134,6 @@ ifeq ($(do_tools_common),true)
        install -d $(cloudman)/man8
        install -m644 $(CURDIR)/tools/hv/*.8 $(cloudman)/man8
 
-       dh_systemd_enable
-       dh_installinit -p$(cloudpkg) --name hv-kvp-daemon
-       dh_installinit -p$(cloudpkg) --name hv-vss-daemon
-       dh_installinit -p$(cloudpkg) --name hv-fcopy-daemon
-       dh_systemd_start
 endif
 
 install-indep: install-tools
@@ -157,6 +152,7 @@ binary-headers: install-headers
        dh_md5sums -p$(indep_hdrpkg)
        dh_builddeb -p$(indep_hdrpkg)
 
+binary-indep: cloudpkg = $(cloud_common_pkg_name)
 binary-indep: install-indep
        @echo Debug: $@
 
@@ -164,6 +160,13 @@ binary-indep: install-indep
        dh_installdocs -i
        dh_compress -i
        dh_fixperms -i
+ifeq ($(do_tools_common),true)
+       dh_systemd_enable
+       dh_installinit -p$(cloudpkg) --name hv-kvp-daemon
+       dh_installinit -p$(cloudpkg) --name hv-vss-daemon
+       dh_installinit -p$(cloudpkg) --name hv-fcopy-daemon
+       dh_systemd_start
+endif
        dh_installdeb -i
        $(lockme) dh_gencontrol -i
        dh_md5sums -i