]> git.proxmox.com Git - drbd-utils.git/blob - debian/rules
0e0b78747df19b97bf36e5e7cb17ae5fd1eeb8d0
[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=systemd
30
31 override_dh_auto_install:
32 dh_auto_install --destdir debian/drbd-utils
33
34 override_dh_install:
35 dh_install --fail-missing
36
37 override_dh_systemd_enable:
38 dh_systemd_enable --no-enable drbd.service
39
40 override_dh_gencontrol:
41 dh_gencontrol -Ndrbd8-utils
42 # Add the previous epoch to drbd8-utils
43 dh_gencontrol -pdrbd8-utils -- -v2:$(PKG_VERSION)
44