| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 4 |
# move modsec-rules-check (lib debugging/testing tool) to libexec to avoid |
| 5 |
# an extra package while keeping the library package multiarch |
| 6 |
CONFIGURE_EXTRA_FLAGS += --bindir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)/libexec --with-pcre2 --with-pcre=no --enable-examples |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_auto_configure: |
| 12 |
dh_auto_configure -- $(CONFIGURE_EXTRA_FLAGS) |
| 13 |
|
| 14 |
override_dh_auto_install: |
| 15 |
dh_auto_install |
| 16 |
# clean dependency_libs in .la files (Policy 10.2) |
| 17 |
sed -i "/dependency_libs/ s/'.*'/''/" $$(find debian/tmp/ -name '*.la') |
| 18 |
|
| 19 |
override_dh_clean: |
| 20 |
dh_clean |
| 21 |
rm -rf .pc |
| 22 |
rm -rf configure~ |
| 23 |
rm -f src/config.h.in~ |
| 24 |
rm -f config.log |
| 25 |
rm -f configure aclocal.m4 configure config.guess |
| 26 |
rm -f Makefile.in doc/Makefile.in examples/Makefile.in examples/multiprocess_c/Makefile.in \ |
| 27 |
examples/reading_logs_via_rule_message/Makefile.in examples/reading_logs_with_offset/Makefile.in \ |
| 28 |
examples/simple_example_using_c/Makefile.in examples/using_bodies_in_chunks/Makefile.in others/Makefile.in \ |
| 29 |
src/Makefile.in src/parser/Makefile.in test/Makefile.in test/benchmark/Makefile.in test/fuzzer/Makefile.in \ |
| 30 |
tools/Makefile.in tools/rules-check/Makefile.in |
| 31 |
rm -f modsecurity.pc |