File: rules

package info (click to toggle)
netcat 1.10-50.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,884 kB
  • sloc: ansic: 1,835; sh: 796; makefile: 81
file content (30 lines) | stat: -rwxr-xr-x 791 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export DH_OPTIONS

# We are a network program.
DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/default.mk
-include /usr/share/dpkg/buildtools.mk

# TODO: there are a lot of warnings with -Wall on. Fix them.

INSTALL_PROG = install -m 0755

%:
	dh $@

override_dh_auto_build-arch:
	make linux \
	    CC="$(CC) $(CFLAGS) -Wall $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" STATIC='' \
		DFLAGS='-DLINUX -DTELNET -DGAPING_SECURITY_HOLE -DIP_TOS -DDEBIAN_VERSION=\"$(DEB_VERSION)\"'

override_dh_auto_build-indep:

override_dh_auto_install-arch:
	$(INSTALL_PROG) nc $(CURDIR)/debian/netcat-traditional/usr/bin/nc.traditional
	cp debian/man/nc.1 $(CURDIR)/debian/netcat-traditional/usr/share/man/man1/nc.traditional.1

override_dh_auto_install-indep: