Name mdadm
Description tool for managing Linux MD devices (software RAID)
Version 4.4-11
Package Base
Homepage https://github.com/md-raid-utilities/mdadm
Maintainers ['Daniel Baumann <daniel@debian.org>']
Contributors []
Distro-repo https://forgejo.debian.net/linux/mdadm
Sources ['https://sources.debian.org/data/main/m/mdadm/4.4-11/debian/watch', 'https://sources.debian.org/src/mdadm/4.4-11/debian/patches/debian', 'https://sources.debian.org/src/mdadm/4.4-11/debian/patches/series', 'https://sources.debian.org/src/mdadm/4.4-11/debian/patches/upstream']
Dependencies ['debconf', 'libc6', 'libudev1', 'udev']
Optional-Dependencies ['default-mta', 'kmod', 'mail-transport-agent']
Build-Dependencies ['debhelper-compat', 'libudev-dev', 'pkgconf', 'systemd-dev']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 6b659c6c053d7b069924a1b254c17dfb11980f4035198b7e30161fe5f0d8f6b9
#!/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 $@

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

execute_before_dh_install:
	$(MAKE) install-systemd DESTDIR=$(CURDIR)/debian/tmp

execute_after_dh_install:
	mkdir -p $(CURDIR)/debian/mdadm/etc/mdadm
	chmod +x $(CURDIR)/debian/mdadm/usr/share/mdadm/mdcheck

override_dh_installsystemd:
	dh_installsystemd -pmdadm mdcheck_continue.timer mdcheck_start.timer mdmonitor-oneshot.timer