summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Franzmann2022-05-20 21:25:13 +0200
committerFlorian Franzmann2022-05-22 19:00:01 +0200
commit15c77d180efdbd8ccbad1f6ba5697cc30a49c50b (patch)
tree0267eaf6cd6859117bfc02b12c50df117089c394
parent66e4fd76f8a3be957e8f4d9034d45e92f40058e9 (diff)
disk/mdadm: optionally install systemd services
-rwxr-xr-xdisk/mdadm/DEPENDS5
-rw-r--r--disk/mdadm/HISTORY3
-rwxr-xr-xdisk/mdadm/INSTALL4
3 files changed, 11 insertions, 1 deletions
diff --git a/disk/mdadm/DEPENDS b/disk/mdadm/DEPENDS
index b6913373d5..b431bb0a13 100755
--- a/disk/mdadm/DEPENDS
+++ b/disk/mdadm/DEPENDS
@@ -1 +1,4 @@
-depends groff
+depends gcc &&
+depends groff &&
+
+suggest_depends systemd '' '' 'install systemd services'
diff --git a/disk/mdadm/HISTORY b/disk/mdadm/HISTORY
index db3d9ffea2..bd566f80a5 100644
--- a/disk/mdadm/HISTORY
+++ b/disk/mdadm/HISTORY
@@ -1,3 +1,6 @@
+2022-05-20 Florian Franzmann <bwlf@bandrate.org>
+ * DEPENDS, INSTALL: optionally install systemd services
+
2021-05-27 Florian Franzmann <bwlf@bandrate.org>
* BUILD: disable fortify source to prevent build error, build mdmon here
instead of in INSTALL
diff --git a/disk/mdadm/INSTALL b/disk/mdadm/INSTALL
index b4b7c5ddb7..f0f41df977 100755
--- a/disk/mdadm/INSTALL
+++ b/disk/mdadm/INSTALL
@@ -1,3 +1,7 @@
default_install &&
+if is_depends_enabled $SPELL systemd; then
+ make DESTDIR="$INSTALL_ROOT" install-systemd
+fi &&
+
install -m 755 mdadm.static "${INSTALL_ROOT}/sbin/mdadm.static"