| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # https://wiki.debian.org/HardeningWalkthrough |
| 4 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 | |
| 6 | # Needed to pass the dh-generated buildflags to the configure script |
| 7 | export EXTRA_CFLAGS=$(CFLAGS) $(CPPFLAGS) |
| 8 | export EXTRA_LDFLAGS=$(LDFLAGS) |
| 9 | |
| 10 | %: |
| 11 | dh $@ |
| 12 | |
| 13 | override_dh_auto_configure: |
| 14 | $(MAKE) config \ |
| 15 | VERBOSE=1 \ |
| 16 | VAL_PREFIX=/usr \ |
| 17 | VAL_SYSCONFDIR=/etc \ |
| 18 | VAL_MTA=/usr/sbin/sendmail \ |
| 19 | VAL_MAIL=/var/mail |
| 20 | |
| 21 | override_dh_installchangelogs: |
| 22 | dh_installchangelogs NEWS |