| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
# export DH_VERBOSE=1 |
| 5 |
|
| 6 |
# see FEATURE AREAS in dpkg-buildflags(1) |
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
|
| 9 |
# see ENVIRONMENT in dpkg-buildflags(1) |
| 10 |
export DEB_CFLAGS_MAINT_APPEND = -fno-strict-aliasing |
| 11 |
|
| 12 |
PACKAGE = argus-client |
| 13 |
|
| 14 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 15 |
include /usr/share/dpkg/default.mk |
| 16 |
|
| 17 |
%: |
| 18 |
dh ${@} |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
touch .threads |
| 22 |
dh_auto_configure -- --with-libmaxminddb |
| 23 |
|
| 24 |
override_dh_autoreconf: |
| 25 |
# don't do this |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
# done by dh_install |
| 29 |
|
| 30 |
override_dh_install: |
| 31 |
dh_install |
| 32 |
rm -rf debian/$(PACKAGE)/usr/share/doc/argus-clients-* |
| 33 |
|
| 34 |
override_dh_installexamples: |
| 35 |
dh_installexamples |
| 36 |
chmod -x debian/$(PACKAGE)/usr/share/doc/argus-client/examples/Config/racolor.conf |
| 37 |
gzip debian/$(PACKAGE)/usr/share/doc/argus-client/examples/Config/delegated-ipv4-latest |
| 38 |
|
| 39 |
override_dh_installsystemd: |
| 40 |
# Do not start/enable by default on purpose. |
| 41 |
# The user should start it only after making sure the configuration is |
| 42 |
# appropriate for his/her computer. |
| 43 |
dh_installsystemd --no-enable --no-start --name radium |
| 44 |
dh_installsystemd --no-enable --no-start --name rastream |