2014-07-15 18:30:36 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
# newer dpkg set this by default.
|
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
|
2016-12-24 10:24:09 +01:00
|
|
|
# Enable hardening build flags
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
|
|
|
|
|
|
|
|
CFLAGS += $(CPPFLAGS)
|
|
|
|
|
|
|
|
export AUTOHEADER=true
|
2014-07-15 18:30:36 +02:00
|
|
|
|
|
|
|
%:
|
2016-12-24 10:24:09 +01:00
|
|
|
dh $@ --with autoreconf,systemd --parallel
|
2014-07-15 18:30:36 +02:00
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2016-12-24 10:24:09 +01:00
|
|
|
# Save deterministic "openssl dhparam" output.
|
|
|
|
cp include/dh.h include/dh.h.orig
|
|
|
|
|
|
|
|
dh_auto_configure -- \
|
2014-07-15 18:30:36 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2016-06-24 12:24:47 +02:00
|
|
|
--libdir=/usr/lib/nagios \
|
2016-12-24 10:24:09 +01:00
|
|
|
--libexecdir=/usr/lib/nagios/plugins \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--enable-ssl \
|
|
|
|
--with-ssl-lib=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
|
|
|
--with-piddir=/var/run/nagios
|
|
|
|
|
|
|
|
# Restore deterministic "openssl dhparam" output.
|
|
|
|
cp include/dh.h.orig include/dh.h
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
|
|
|
dh_auto_build -- all
|
2014-07-15 18:30:36 +02:00
|
|
|
|
|
|
|
override_dh_auto_install:
|