-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·47 lines (39 loc) · 1.55 KB
/
rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
define COMMON_CONFIGURE_ARGS
--prefix=/usr
--sysconfdir=/var/lib/aide/please-dont-call-aide-without-parameters
--without-config-file --disable-default-db --with-zlib
--with-xattr
--with-posix-acl
--with-e2fsattrs
--disable-static
endef
EXTRA_CONFIGURE_ARGS= $(shell dpkg-buildflags --export=cmdline)
ifeq ($(DEB_HOST_ARCH_OS),linux)
EXTRA_CONFIGURE_ARGS+= --with-selinux --with-audit --with-capabilities
BUILT_USING_PACKAGES+= libselinux1-dev libaudit-dev libcap-dev
endif
BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W $(BUILT_USING_PACKAGES))
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(strip ${COMMON_CONFIGURE_ARGS}) $(strip ${EXTRA_CONFIGURE_ARGS}) $$(\
. /etc/os-release && case $$VERSION_ID in 8) echo '--without-posix-acl --without-xattr --without-e2fsattrs --without-audit';; esac)
# make this execute_after_dh_auto_install after bookworm
override_dh_auto_install:
dh_auto_install
if ! dh_installsystemd --name=dailyaidecheck; then \
echo "ALAS! no dh_installsystemd. Please add manual cron stuff!" >&2; \
fi
## this is needed until dh compat 14
#dh_installsysusers
if ! dh_installsysusers; then \
install -m0644 -DT debian/aide-common.sysusers debian/aide-common/usr/lib/sysusers.d/aide-common.conf; \
fi