File: rules

package info (click to toggle)
nfdump 1.6.22-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,112 kB
  • sloc: ansic: 49,838; yacc: 1,950; perl: 375; sh: 278; lex: 267; makefile: 167
file content (38 lines) | stat: -rwxr-xr-x 889 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

# Build nfdump with nfprofile for nfsen
# --enable-nfprofile

# Build sflow collector daemon.
# --enable-sflow

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-nfprofile \
		--enable-nftrack \
		--enable-nsel \
		--enable-sflow \
		--enable-shared=no \
		CPPFLAGS="$(CFLAGS) $(CPPFLAGS)"

override_dh_strip:
	dh_strip --dbgsym-migration='nfdump-dbg (<< 1.6.16-1~)'

# Test suite only works on amd64/arm64/armhf/i386
override_dh_auto_test:
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 armhf i386))
	dh_auto_test --no-parallel
endif

override_dh_install:
	rm -f debian/tmp/usr/lib/*/libnfdump.a
	rm -f debian/tmp/usr/lib/*/libnfdump.la
	# This manpage is installed but not included, as the flow-tools
	# importer is not built anymore
	rm -f debian/tmp/usr/share/man/man1/ft2nfdump.1
	dh_install