| 1 |
#!/usr/bin/make -f |
| 2 |
export DH_VERBOSE = 1 |
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 5 |
include /usr/share/dpkg/buildflags.mk |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
override_dh_autoreconf: |
| 11 |
dh_autoreconf autoreconf -- -f -i -Iconfig |
| 12 |
|
| 13 |
override_dh_auto_test: |
| 14 |
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) |
| 15 |
# Running test suite. Errors are being ignored because several tests |
| 16 |
# are bound to fail: |
| 17 |
# * check_addr: fails because glibc gethostbyname() accepts malformed |
| 18 |
# IPs |
| 19 |
# * check_ip: fails because test includes binding to a RAW socket |
| 20 |
# which requires CAP_NET_ADMIN |
| 21 |
# * check_fw: fails because Linux doesn't provide a simple userspace |
| 22 |
# fw API (and libdumbnet therefore includes its fw-none module which |
| 23 |
# just returns ENOSYS) |
| 24 |
-$(MAKE) -C test/check check-am |
| 25 |
endif |