File: rules

package info (click to toggle)
sysdig 0.40.0%2Brepack-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,684 kB
  • sloc: cpp: 16,251; sh: 1,080; ansic: 999; makefile: 13
file content (27 lines) | stat: -rwxr-xr-x 783 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

# Increase hardening to maximum, considering attack surface
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

# I set the CHISEL_TOOL_LIBRARY_NAME because of this:
#   https://github.com/draios/sysdig/issues/2063
# In 0.36.0 this is the default, but I want to be explicit
override_dh_auto_configure:
	dh_auto_configure -- \
		-DUSE_BUNDLED_DEPS=OFF \
		-DDIR_ETC="/etc" \
		-DSYSDIG_VERSION="$(DEB_VERSION_UPSTREAM)" \
		-DFALCOSECURITY_LIBS_VERSION=$(shell dpkg-query -W -f '$${Version}' libfalcosecurity0-dev | sed 's/-.*//') \
		-DCHISEL_TOOL_LIBRARY_NAME="sysdig"

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp