blob: 3dea72032b79e41bde92ab45e94882e4bca3081f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
export deb_systemdsystemunitdir=$(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
%:
dh $@ --with python3
override_dh_autoreconf:
echo $(DEB_VERSION_UPSTREAM_REVISION) > .tarball-version
dh_autoreconf
override_dh_auto_configure:
dh_auto_configure -- --sbindir=/usr/sbin --libexecdir=/usr/libexec \
--with-ocf-root=/usr/lib/ocf --with-initdir=/etc/init.d \
--with-rsctmpdir=/run/resource-agents \
--prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--mandir=/usr/share/man --libdir=/usr/lib --disable-fatal-warnings \
SHELL=/bin/bash PYTHON=/usr/bin/python3 \
BASH_SHELL=/bin/bash RM=/bin/rm \
ROUTE=/sbin/route GREP=/bin/grep \
TAR=/bin/tar PING=/bin/ping IFCONFIG=/sbin/ifconfig \
REBOOT=/sbin/reboot POWEROFF_CMD=/sbin/poweroff
# fix manpage header
override_dh_auto_install:
dh_auto_install
sed -i -e 's/^\(\.TH "[^"]*\?\)\\"/\1"/' $(CURDIR)/debian/tmp/usr/share/man/man7/*.7
override_dh_python3:
dh_python3 /usr/lib/ocf/lib/heartbeat
override_dh_auto_clean:
dh_auto_clean
rm -f .version .tarball-version
find . -name Makefile.in | xargs -r rm
override_dh_gencontrol:
set -e; \
export OCF_ROOT=$(CURDIR)/debian/resource-agents/usr/lib/ocf; \
export LC_ALL=C; \
( \
echo -n "agents="; \
for agent in debian/resource-agents/usr/lib/ocf/resource.d/heartbeat/*; do \
echo "$$agent meta-data ..." >&2; \
desc=$$($$agent meta-data 2>/dev/null | xml_grep --root resource-agent/shortdesc --text_only /dev/stdin | sed -n '/^$$/!{s/^[[:space:]]*//p; q}'); \
line=$$(echo "$$(basename $$agent): $$desc" | sed -e 's/^\(.\{75\}\).\{4\}.*/\1.../'); \
echo -n " $$line\$${Newline}"; \
done; \
echo \
) >> debian/resource-agents.substvars
rm -rf debian/resource-agents/usr/lib/ocf/lib/heartbeat/__pycache__
dh_gencontrol
|