public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] mdadm: Update to 4.2
Date: Tue, 21 Feb 2023 12:12:57 +0100	[thread overview]
Message-ID: <20230221111257.604861-1-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]

* Depends on libudev-devel
* Install systemd files.

Signed-off-by: Stefan Schantl <stefan.schantl(a)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
-- 
2.30.2


                 reply	other threads:[~2023-02-21 11:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230221111257.604861-1-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox