| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 5 |
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 |
| 6 |
|
| 7 |
ifneq (,$(filter nocheck,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS))) |
| 8 |
ifneq (,$(filter noinsttest,$(DEB_BUILD_PROFILES))) |
| 9 |
TESTS = -Dtests=disabled |
| 10 |
endif |
| 11 |
endif |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ |
| 15 |
|
| 16 |
override_dh_auto_clean: |
| 17 |
rm -f subprojects/munit |
| 18 |
|
| 19 |
override_dh_auto_configure: |
| 20 |
ln -s ../munit subprojects/ |
| 21 |
dh_auto_configure -- \ |
| 22 |
-Dauto_features=enabled \ |
| 23 |
-Dsd-bus-provider=libsystemd \ |
| 24 |
$(TESTS) |
| 25 |
|
| 26 |
override_dh_auto_test: |
| 27 |
dh_auto_test -- \ |
| 28 |
--timeout-multiplier 2 |
| 29 |
|
| 30 |
override_dh_missing: |
| 31 |
dh_missing -Xusr/bin/ei-debug-events |
| 32 |
|
| 33 |
# debhelper >= 13.4 makes all of /usr/libexec executable, which is not |
| 34 |
# quite right for installed-tests |
| 35 |
execute_after_dh_fixperms: |
| 36 |
ifneq ($(filter %-tests,$(shell dh_listpackages)),) |
| 37 |
chmod --changes a+r,a-x,u+w,og-w debian/*-tests/usr/libexec/libei/*.so |
| 38 |
endif |