enable hardening

This commit is contained in:
Jan Wagner 2013-05-22 12:04:36 +00:00
parent cdc3da1486
commit 3582a42ff9
2 changed files with 5 additions and 1 deletions

2
debian/control vendored
View file

@ -2,7 +2,7 @@ Source: dns-flood-detector
Section: net Section: net
Priority: optional Priority: optional
Maintainer: Jan Wagner <waja@cyconet.org> Maintainer: Jan Wagner <waja@cyconet.org>
Build-Depends: debhelper (>= 9), libpcap0.8-dev Build-Depends: debhelper (>= 9), libpcap0.8-dev, hardening-wrapper
Homepage: http://www.adotout.com/ Homepage: http://www.adotout.com/
Vcs-Browser: https://scm.uncompleted.org/projects/debian/repository/show/dns-flood-detector Vcs-Browser: https://scm.uncompleted.org/projects/debian/repository/show/dns-flood-detector
Vcs-Svn: https://scm.uncompleted.org/svn/debian/dns-flood-detector/trunk Vcs-Svn: https://scm.uncompleted.org/svn/debian/dns-flood-detector/trunk

4
debian/rules vendored
View file

@ -4,6 +4,10 @@
# Uncomment this to turn on verbose mode. # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1 #export DH_VERBOSE=1
# hardening
export DEB_BUILD_HARDENING=1
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -D_BSD_SOURCE -Wall -g CFLAGS += -D_BSD_SOURCE -Wall -g
LDLIBS += -lpcap -lpthread -lm LDLIBS += -lpcap -lpthread -lm