]> git.proxmox.com Git - pve-ha-manager.git/blob - debian/rules
bump version to 4.0.4
[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 $@ --with=systemd
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 --fail-missing
28
29 # dh_systemd_enable watchdog-mux despite it being static to get it installed in
30 # the correct location/package without manual intervention
31 override_dh_systemd_enable:
32 dh_systemd_enable -ppve-ha-manager --name watchdog-mux watchdog-mux.service
33 dh_systemd_enable -ppve-ha-manager --name pve-ha-crm pve-ha-crm.service
34 dh_systemd_enable -ppve-ha-manager --name pve-ha-lrm pve-ha-lrm.service
35
36 # restart LRM first, else single-node clusters with configured HA will deadlock
37 override_dh_systemd_start:
38 dh_systemd_start -ppve-ha-manager --name pve-ha-lrm --restart-after-upgrade pve-ha-lrm.service
39 dh_systemd_start -ppve-ha-manager --name pve-ha-crm --restart-after-upgrade pve-ha-crm.service