]> git.proxmox.com Git - drbd-utils.git/blame - debian/rules
Avoid debian Bug #768456 by installing sysv init script
[drbd-utils.git] / debian / rules
CommitLineData
df7efe7f
DM
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Uncomment this to turn on verbose mode.
4# export DH_VERBOSE=1
5
6PKG_VERSION=$(shell dpkg-parsechangelog | awk '/^Version:/ { print $$2 }')
7
8%:
b99f23c6 9 dh $@ --with=quilt,systemd
df7efe7f
DM
10
11override_dh_auto_clean:
12 dh_auto_clean
13 rm -f debian/drbd-utils.drbd.init
14
15override_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 \
a7d80f8d 29 --with-initscripttype=both
df7efe7f
DM
30
31override_dh_auto_install:
32 dh_auto_install --destdir debian/drbd-utils
33
b99f23c6 34override_dh_systemd_enable:
271c4235 35 dh_systemd_enable -p drbd-utils --no-enable drbd.service
df7efe7f
DM
36
37override_dh_gencontrol:
38 dh_gencontrol -Ndrbd8-utils
39 # Add the previous epoch to drbd8-utils
40 dh_gencontrol -pdrbd8-utils -- -v2:$(PKG_VERSION)
41