| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 7 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 8 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 9 |
|
| 10 |
include /usr/share/dpkg/default.mk |
| 11 |
|
| 12 |
define COMMON_CONFIGURE_ARGS |
| 13 |
--prefix=/usr |
| 14 |
--sysconfdir=/var/lib/aide/please-dont-call-aide-without-parameters |
| 15 |
--without-config-file --disable-default-db --with-zlib |
| 16 |
--with-xattr |
| 17 |
--with-posix-acl |
| 18 |
--with-e2fsattrs |
| 19 |
--disable-static |
| 20 |
endef |
| 21 |
EXTRA_CONFIGURE_ARGS= $(shell dpkg-buildflags --export=cmdline) |
| 22 |
|
| 23 |
ifeq ($(DEB_HOST_ARCH_OS),linux) |
| 24 |
EXTRA_CONFIGURE_ARGS+= --with-selinux --with-audit --with-capabilities |
| 25 |
BUILT_USING_PACKAGES+= libselinux1-dev libaudit-dev libcap-dev |
| 26 |
endif |
| 27 |
|
| 28 |
BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W $(BUILT_USING_PACKAGES)) |
| 29 |
|
| 30 |
%: |
| 31 |
dh $@ |
| 32 |
|
| 33 |
override_dh_auto_configure-arch: |
| 34 |
dh_auto_configure -- $(strip ${COMMON_CONFIGURE_ARGS}) $(strip ${EXTRA_CONFIGURE_ARGS}) |
| 35 |
|
| 36 |
override_dh_autoreconf-indep: |
| 37 |
override_dh_auto_configure-indep: |
| 38 |
|
| 39 |
|
| 40 |
override_dh_auto_install: |
| 41 |
dh_auto_install |
| 42 |
dh_installsystemd --name=dailyaidecheck |
| 43 |
dh_installsystemd --name=dailyaidecheck-buildcache |
| 44 |
|
| 45 |
dh_installsysusers |