- hardening fixes
authorDinko Korunic <kreator@carnet.hr>
Thu, 15 Aug 2013 17:50:01 +0000 (19:50 +0200)
committerDinko Korunic <kreator@carnet.hr>
Thu, 15 Aug 2013 17:50:01 +0000 (19:50 +0200)
debian/control
debian/rules

index ccabecb..921f66d 100644 (file)
@@ -2,7 +2,7 @@ Source: ossec-hids
 Section: admin
 Priority: extra
 Maintainer: Dinko Korunic <kreator@CARNet.hr>
-Build-Depends: debhelper (>= 9.20120909)
+Build-Depends: debhelper (>= 9.20120909), hardening-wrapper (>= 2.2)
 Standards-Version: 3.9.4
 
 Package: ossec-hids
index 032ac9a..924bd44 100755 (executable)
@@ -13,12 +13,7 @@ SUBDIRS = .ssh active-response active-response/bin agentless bin etc etc/shared
 
 ###################### hardening #################
 
-include /usr/share/hardening-includes/hardening.make
-
-CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
-LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
-CFLAGS+=$(HARDENING_CFLAGS)
-LDFLAGS+=$(HARDENING_LDFLAGS)
+export DEB_BUILD_HARDENING=1
 
 ###################### main ######################