]> git.proxmox.com Git - pve-ha-manager.git/blame - debian/rules
lrm: fix comment typos
[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
b7e7495b
TL
34override_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