2025-02-14 05:52:43 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
include /usr/share/dpkg/vendor.mk
|
|
|
|
|
|
|
|
export CROSS_COMPILE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)-
|
|
|
|
export LDFLAGS = $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get LDFLAGS)
|
|
|
|
export CXFLAGS = $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CFLAGS) \
|
|
|
|
$(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CPPFLAGS)
|
|
|
|
|
|
|
|
export DEBIAN="yes"
|
|
|
|
export EXTRAVERSION=$(DEB_VENDOR) $(DEB_VERSION)
|
|
|
|
|
|
|
|
# these are reversed in the Makefile
|
|
|
|
export CONFFILE="/etc/mdadm/mdadm.conf"
|
|
|
|
export CONFFILE2="/etc/mdadm.conf"
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@
|
|
|
|
|
2025-02-14 06:07:28 +01:00
|
|
|
execute_after_dh_auto_clean:
|
|
|
|
# remove generated files
|
|
|
|
for file in $$(find . -type f -name "*.in"); \
|
|
|
|
do \
|
|
|
|
rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \
|
|
|
|
done
|
|
|
|
|
2025-02-14 06:34:56 +01:00
|
|
|
execute_before_dh_install:
|
2025-02-14 05:52:43 +01:00
|
|
|
$(MAKE) install-systemd DESTDIR=$(CURDIR)/debian/tmp
|
|
|
|
|
2025-02-14 06:34:56 +01:00
|
|
|
execute_after_dh_install:
|
2025-02-14 05:52:43 +01:00
|
|
|
mkdir -p $(CURDIR)/debian/mdadm/etc/mdadm
|
|
|
|
chmod +x $(CURDIR)/debian/mdadm/usr/share/mdadm/mdcheck
|
2025-02-14 06:03:21 +01:00
|
|
|
|
|
|
|
override_dh_installsystemd:
|
|
|
|
dh_installsystemd -pmdadm mdcheck_continue.timer mdcheck_start.timer mdmonitor-oneshot.timer
|