File: rules

package info (click to toggle)
corosync-qdevice 3.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,496 kB
  • sloc: ansic: 22,252; sh: 11,872; makefile: 369
file content (34 lines) | stat: -rwxr-xr-x 1,099 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

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

# Ensure that we link against all needed libraries (cf. Policy 10.2)
export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs

%:
	dh $@

# Explicit BASHPATH fixes reproducible build on merged-usr vs non-merged:
override_dh_auto_configure:
	dh_auto_configure -- \
	    BASHPATH=/bin/bash \
	    ac_cv_prog_GROFF="" \
	    --with-initconfigdir=/etc/default \
	    --with-systemddir=/usr/lib/systemd/system \
	    --enable-systemd

override_dh_auto_install:
	dh_auto_install
# we don't need the upstream license
	rm debian/tmp/usr/share/doc/corosync-qdevice/LICENSE
# install sysconfig files
	install -D -m 644 init/corosync-qdevice.sysconfig.example debian/tmp/etc/default/corosync-qdevice
	install -D -m 644 init/corosync-qnetd.sysconfig.example debian/tmp/etc/default/corosync-qnetd

override_dh_installsystemd:
	dh_installsystemd -p corosync-qdevice --no-enable --no-start
	dh_installsystemd --remaining-packages

# dh_dwz fails with "Too few files for multifile optimization", so:
override_dh_dwz: