From 99f984c6c3048ae5b98da61c8050a71c3e483f22 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:01:59 +0100 Subject: [PATCH] install systemd scripts [release 3.3.2-2mamba;Tue Jun 16 2015] --- mdadm.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/mdadm.spec b/mdadm.spec index e8508b3..d7b9d15 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,6 +1,6 @@ Name: mdadm Version: 3.3.2 -Release: 1mamba +Release: 2mamba Summary: A tool to manage MD devices aka Linux Software RAID Group: System/Kernel and Hardware Vendor: openmamba @@ -14,6 +14,7 @@ License: GPL BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root +%systemd_requires Provides: mdadm-static Obsoletes: mdadm-static @@ -40,7 +41,7 @@ The particular differences to raidtools is that mdadm is a single program, and i %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall \ +%makeinstall install-systemd \ BINDIR=/sbin install -D -m 644 %{name}.conf-example \ @@ -54,11 +55,17 @@ install -D -m 644 %{name}.conf-example \ %files %defattr(-,root,root) -/lib/udev/rules.d/63-md-raid-arrays.rules -/lib/udev/rules.d/64-md-raid-assembly.rules +%config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf /sbin/%{name} /sbin/mdmon -%config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf +/lib/udev/rules.d/63-md-raid-arrays.rules +/lib/udev/rules.d/64-md-raid-assembly.rules +/lib/systemd/system-shutdown/mdadm.shutdown +%{_unitdir}/mdadm-grow-continue@.service +%{_unitdir}/mdadm-last-resort@.service +%{_unitdir}/mdadm-last-resort@.timer +%{_unitdir}/mdmon@.service +%{_unitdir}/mdmonitor.service %{_mandir}/man4/* %{_mandir}/man5/* %{_mandir}/man8/* @@ -70,6 +77,9 @@ install -D -m 644 %{name}.conf-example \ #%{_sbindir}/%{name}.static %changelog +* Tue Jun 16 2015 Silvan Calarco 3.3.2-2mamba +- install systemd scripts + * Fri Aug 22 2014 Automatic Build System 3.3.2-1mamba - automatic update by autodist