]> git.proxmox.com Git - pve-ha-manager.git/blob - debian/rules
d/rules: update to systemd dh changes
[pve-ha-manager.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 %:
13 dh $@
14
15 override_dh_install:
16 # embed copies of libpve-common-perl files needed by simulator
17 install -d -m 0755 debian/tmp/usr/share/pve-ha-simulator/PVE
18 install -m 0644 \
19 /usr/share/perl5/PVE/Exception.pm \
20 /usr/share/perl5/PVE/JSONSchema.pm \
21 /usr/share/perl5/PVE/ProcFSTools.pm \
22 /usr/share/perl5/PVE/SafeSyslog.pm \
23 /usr/share/perl5/PVE/SectionConfig.pm \
24 /usr/share/perl5/PVE/Syscall.pm \
25 /usr/share/perl5/PVE/Tools.pm \
26 debian/tmp/usr/share/pve-ha-simulator/PVE/
27 dh_install
28
29 override_dh_missing:
30 dh_missing --fail-missing
31
32 # dh_systemd_enable watchdog-mux despite it being static to get it installed in
33 # the correct location/package without manual intervention
34 override_dh_installsystemd:
35 dh_installsystemd -ppve-ha-manager --name watchdog-mux --no-restart-after-upgrade --no-stop-on-upgrade watchdog-mux.service
36 # restart LRM first, else single-node clusters with configured HA will deadlock
37 dh_installsystemd -ppve-ha-manager --name pve-ha-lrm pve-ha-lrm.service
38 dh_installsystemd -ppve-ha-manager --name pve-ha-crm pve-ha-crm.service