]>
Commit | Line | Data |
---|---|---|
df7efe7f DM |
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 | %: | |
b99f23c6 | 9 | dh $@ --with=quilt,systemd |
df7efe7f DM |
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 \ | |
b99f23c6 | 23 | --without-xen \ |
df7efe7f DM |
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 | ||
b99f23c6 DM |
37 | override_dh_systemd_enable: |
38 | dh_systemd_enable --no-enable drbd.service | |
df7efe7f DM |
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 |