]> git.proxmox.com Git - drbd-utils.git/blob - debian/rules
Avoid debian Bug #768456 by installing sysv init script
[drbd-utils.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Uncomment this to turn on verbose mode.
4 # export DH_VERBOSE=1
5
6 PKG_VERSION=$(shell dpkg-parsechangelog | awk '/^Version:/ { print $$2 }')
7
8 %:
9 dh $@ --with=quilt,systemd
10
11 override_dh_auto_clean:
12 dh_auto_clean
13 rm -f debian/drbd-utils.drbd.init
14
15 override_dh_auto_configure:
16 ./configure \
17 --prefix=/usr \
18 --localstatedir=/var \
19 --sysconfdir=/etc \
20 --sbindir=/usr/sbin \
21 --without-83support \
22 --without-84support \
23 --without-xen \
24 --with-distro debian \
25 --with-udev \
26 --with-pacemaker \
27 --with-bashcompletion \
28 --with-systemdunitdir=/lib/systemd/system \
29 --with-initscripttype=both
30
31 override_dh_auto_install:
32 dh_auto_install --destdir debian/drbd-utils
33
34 override_dh_systemd_enable:
35 dh_systemd_enable -p drbd-utils --no-enable drbd.service
36
37 override_dh_gencontrol:
38 dh_gencontrol -Ndrbd8-utils
39 # Add the previous epoch to drbd8-utils
40 dh_gencontrol -pdrbd8-utils -- -v2:$(PKG_VERSION)
41