File: rules

package info (click to toggle)
booth 1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 852 kB
  • sloc: ansic: 7,181; sh: 2,166; python: 471; makefile: 280; xml: 7
file content (39 lines) | stat: -rwxr-xr-x 1,122 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-hmac-library=gnutls

# Make generated documentation reproducible
override_dh_auto_build:
	TZ=UTC dh_auto_build
	make test/boothtestenv.py test/runtests.py

override_dh_auto_install:
	dh_auto_install
	install -D -m 644 contrib/geo-cluster.firewalld.xml \
		debian/tmp/usr/lib/firewalld/services/booth.xml
# we can't ship the upstream init script, it uses startproc
	rm -v debian/tmp/etc/init.d/booth-arbitrator
	rm -v debian/tmp/usr/share/doc/booth/COPYING

override_dh_install:
	dh_install --exclude=.md5

# upstream tests fail on some architectures, run them from debian/tests
override_dh_auto_test:

# 1) booth should be started through pacemaker. So, neither enable nor
#    start the service.
# 2) booth-arbitrator should be enabled manually to not conflict with
#    pacemaker setups.
override_dh_installinit:
	dh_installinit --no-enable --no-start
override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start