Section: admin
Priority: extra
Maintainer: Proxmox Support Team <support@proxmox.com>
-Build-Depends: debhelper (>= 9), flex, xsltproc, docbook-xsl
+Build-Depends: debhelper (>= 9), flex, xsltproc, docbook-xsl, dh-systemd (>= 1.4)
Standards-Version: 3.9.5
Homepage: http://www.drbd.org
Package: drbd-utils
Architecture: linux-any
-Depends: debconf (>= 0.5), ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
+Depends: debconf (>= 0.5), ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, systemd
Breaks: drbd8-utils (<< 2:8.9.0)
Replaces: drbd8-utils (<< 2:8.9.0)
Recommends: heirloom-mailx|mailx
--- /dev/null
+Index: new/scripts/drbd.service
+===================================================================
+--- new.orig/scripts/drbd.service
++++ new/scripts/drbd.service
+@@ -7,11 +7,11 @@ After=network.target sshd.service
+ Type=oneshot
+ RemainAfterExit=yes
+
+-ExecStart=/lib/drbd/drbd start
+-ExecStop=/lib/drbd/drbd stop
++ExecStart=/usr/lib/drbd/drbd start
++ExecStop=/usr/lib/drbd/drbd stop
+
+ # Re-adjust everything on reload
+-ExecReload=/lib/drbd/drbd reload
++ExecReload=/usr/lib/drbd/drbd reload
+
+ [Install]
+ WantedBy=multi-user.target
--- /dev/null
+fix-drbd-path-in-systemd-service.patch
PKG_VERSION=$(shell dpkg-parsechangelog | awk '/^Version:/ { print $$2 }')
%:
- dh $@ --with=systemd
+ dh $@ --with=quilt,systemd
override_dh_auto_clean:
dh_auto_clean
--sbindir=/usr/sbin \
--without-83support \
--without-84support \
+ --without-xen \
--with-distro debian \
--with-udev \
--with-pacemaker \
override_dh_install:
dh_install --fail-missing
- # Place the initscript where dh_installinit can find it
-# mv $(CURDIR)/debian/drbd-utils/etc/init.d/drbd $(CURDIR)/debian/drbd-utils.drbd.init
- # Place the systemd service script ...
-# mv $(CURDIR)/debian/drbd-utils/lib/systemd/system/drbd.service $(CURDIR)/debian
-
-override_dh_installinit:
- dh_installinit --name=drbd --no-start
+override_dh_systemd_enable:
+ dh_systemd_enable --no-enable drbd.service
override_dh_gencontrol:
dh_gencontrol -Ndrbd8-utils