]> git.proxmox.com Git - pve-ha-manager.git/blame - debian/rules
bump version to 3.2-1
[pve-ha-manager.git] / debian / rules
CommitLineData
ba878e35
DM
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%:
5868b0cf 13 dh $@
bcde32d4 14
1116ca25
FG
15override_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/
5868b0cf
TL
27 dh_install
28
29override_dh_missing:
30 dh_missing --fail-missing
1116ca25 31
a6b98928
FG
32# dh_systemd_enable watchdog-mux despite it being static to get it installed in
33# the correct location/package without manual intervention
bcde32d4 34override_dh_systemd_enable:
449a03b7
FG
35 dh_systemd_enable -ppve-ha-manager --name watchdog-mux watchdog-mux.service
36 dh_systemd_enable -ppve-ha-manager --name pve-ha-crm pve-ha-crm.service
37 dh_systemd_enable -ppve-ha-manager --name pve-ha-lrm pve-ha-lrm.service
42ea821f 38
a6b98928 39# restart LRM first, else single-node clusters with configured HA will deadlock
42ea821f 40override_dh_systemd_start:
13cf3b88 41 dh_systemd_start -ppve-ha-manager --name pve-ha-lrm --restart-after-upgrade pve-ha-lrm.service
622cb56a 42 dh_systemd_start -ppve-ha-manager --name pve-ha-crm --restart-after-upgrade pve-ha-crm.service