File: rules

package info (click to toggle)
firehol 3.1.7+ds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,768 kB
  • sloc: sh: 20,852; makefile: 827; perl: 554; sed: 12
file content (27 lines) | stat: -rwxr-xr-x 802 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
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

default:
	@uscan --no-conf --dehs --report || true

%:
	dh $@ --no-parallel

override_dh_auto_configure:
	dh_auto_configure -- --enable-maintainer-mode

## The test suite relies on `unshare -r` which does not work under chroot
## when /proc/sys/kernel/unprivileged_userns_clone is not set to 0. The issue
## was reported and is discussed in bugreport #982719. The conditional must
## be removed when the issue is fully understood and fixed.
## --- Jerome Benoit <calculus@rezozer.net>  Sun, 28 Feb 2021 09:08:07 +0000
override_dh_auto_test:
ifeq ($(shell cat /proc/sys/kernel/unprivileged_userns_clone),0)
	dh_auto_test
endif

override_dh_installinit:
	dh_installinit --restart-after-upgrade

override_dh_compress:
	dh_compress -X.pdf -Xexamples