File: rules

package info (click to toggle)
netsniff-ng 0.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,456 kB
  • sloc: ansic: 47,146; yacc: 2,024; sh: 761; makefile: 505; lex: 459; python: 61
file content (34 lines) | stat: -rwxr-xr-x 678 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

#NACL needs this
export NACL_INC_DIR=/usr/include/sodium
export NACL_LIB=sodium

override_dh_auto_clean:
	dh_clean

override_dh_auto_configure:
	./configure

override_dh_auto_build:
	$(MAKE) Q= PREFIX=/usr ETCDIR=/etc

override_dh_auto_install:
	$(MAKE) Q= PREFIX=/usr ETCDIR=/etc DESTDIR=$(CURDIR)/debian/netsniff-ng install
	find debian/netsniff-ng -type d -empty -delete

override_dh_strip:
	dh_strip --no-automatic-dbgsym

%:
	dh $@