| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -Wextra |
| 6 |
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 |
| 7 |
|
| 8 |
|
| 9 |
KCAPI_RNG ?= $(shell grep CONFIG_CRYPTO_USER_API_RNG /boot/config-$(shell uname -r) | cut -f2 -d=) |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
kcapi_tools = \ |
| 22 |
--enable-kcapi-rngapp \ |
| 23 |
--enable-kcapi-encapp \ |
| 24 |
--enable-kcapi-dgstapp |
| 25 |
|
| 26 |
override_dh_auto_configure: |
| 27 |
dh_auto_configure -- $(kcapi_tools) |
| 28 |
|
| 29 |
override_dh_auto_build-indep: |
| 30 |
dh_auto_build -- html |
| 31 |
dh_auto_build -- man |
| 32 |
|
| 33 |
override_dh_auto_install-indep: |
| 34 |
dh_auto_install -- install-html |
| 35 |
|
| 36 |
override_dh_install-indep: |
| 37 |
find $(CURDIR)/debian/tmp -name "*.la" -delete |
| 38 |
dh_install |
| 39 |
|
| 40 |
|
| 41 |
override_dh_auto_test-indep: |
| 42 |
|
| 43 |
override_dh_auto_build-arch: |
| 44 |
dh_auto_build |
| 45 |
|
| 46 |
override_dh_auto_install-arch: |
| 47 |
dh_auto_install -- install-man |
| 48 |
|
| 49 |
override_dh_install-arch: |
| 50 |
find $(CURDIR)/debian/tmp -name "*.la" -delete |
| 51 |
dh_install |
| 52 |
|
| 53 |
override_dh_auto_test-arch: |
| 54 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 55 |
ifeq ($(KCAPI_RNG), m) |
| 56 |
|
| 57 |
(cd test ; ENABLE_FUZZ_TEST=1 NO_32BIT_TEST=1 ./test-invocation.sh) |
| 58 |
endif |
| 59 |
endif |
| 60 |
|
| 61 |
get-orig-source: |
| 62 |
uscan --verbose --force-download --rename |