Package: fcgiwrap
Version: 1.1.0-6
Severity: normal
Tags: patch

Dear Maintainer,

The attached patch to debian/rules ensures that fcgiwrap is built with
the hardening flags PIE and BINDNOW. Note that dh-autoreconf takes care
of invoking autoreconf and cleaning up, so no further manual action is
needed.

Regards,
Peter
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
 %:
 	dh $@ --with systemd,autoreconf
 
@@ -9,11 +11,5 @@
 		    	   --with-systemdsystemunitdir=/lib/systemd/system
 endif
 
-override_dh_auto_build:
-	autoreconf -i
-	./configure $(CONFIGURE_FLAGS)
-	$(MAKE)
-
-override_dh_clean:
-	rm -f aclocal.m4
-	dh_clean
+override_dh_auto_configure:
+	dh_auto_configure -- $(CONFIGURE_FLAGS)

Reply via email to