* Depends on libudev-devel * Install systemd files.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- mdadm/mdadm.nm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/mdadm/mdadm.nm b/mdadm/mdadm.nm index 533795dd2..733f8ec7f 100644 --- a/mdadm/mdadm.nm +++ b/mdadm/mdadm.nm @@ -4,7 +4,7 @@ ###############################################################################
name = mdadm -version = 3.4 +version = 4.2 release = 1
groups = System/Base @@ -25,6 +25,7 @@ sources = %{thisapp}.tar.xz
build requires + libudev-devel groff end
@@ -35,10 +36,19 @@ build end
build - make %{PARALLELISMFLAGS} CXFLAGS="%{CFLAGS}" \ - CWFLAGS= SYSCONFDIR="%{sysconfdir}" MDASSEMBLE_AUTO=1 + make %{PARALLELISMFLAGS} \ + CXFLAGS="%{CFLAGS}" \ + CWFLAGS= \ + SYSCONFDIR="%{sysconfdir}" + MDASSEMBLE_AUTO=1 end
+ make_install_targets += \ + install-systemd \ + BINDIR=%{sbindir} \ + UDEVDIR=%{prefix}/%{lib}/udev \ + SYSTEMD_DIR="%{unitdir}" + install_cmds mkdir -pv %{BUILDROOT}/var/run/mdadm chmod 700 %{BUILDROOT}/var/run/mdadm