aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/mfid/Makefile18
-rw-r--r--sysutils/mfid/distinfo2
-rw-r--r--sysutils/mfid/files/mfid.in27
-rw-r--r--sysutils/mfid/pkg-descr3
5 files changed, 51 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 1b1115d89570..5c60c81a4f9f 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -509,6 +509,7 @@
SUBDIR += memtest86
SUBDIR += memtest86+
SUBDIR += metalog
+ SUBDIR += mfid
SUBDIR += mgeupsd
SUBDIR += minirsyslogd
SUBDIR += mixer
diff --git a/sysutils/mfid/Makefile b/sysutils/mfid/Makefile
new file mode 100644
index 000000000000..c7f7a651a1a7
--- /dev/null
+++ b/sysutils/mfid/Makefile
@@ -0,0 +1,18 @@
+# Created by: Mark Felder <feld@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= mfid
+PORTVERSION= 0.01
+CATEGORIES= sysutils
+MASTER_SITES= https://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
+
+MAINTAINER= feld@FreeBSD.org
+COMMENT= Monitoring daemon for mfi RAID controllers
+
+USE_RC_SUBR= mfid
+PLIST_FILES+= sbin/mfid
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mfid ${PREFIX}/sbin/mfid
+
+.include <bsd.port.mk>
diff --git a/sysutils/mfid/distinfo b/sysutils/mfid/distinfo
new file mode 100644
index 000000000000..1016ba4e69ec
--- /dev/null
+++ b/sysutils/mfid/distinfo
@@ -0,0 +1,2 @@
+SHA256 (mfid-0.01.tar.gz) = 5f6814849555343620fd14fb3ce97448146e1b3f262b75c9696aa9de41772863
+SIZE (mfid-0.01.tar.gz) = 6535
diff --git a/sysutils/mfid/files/mfid.in b/sysutils/mfid/files/mfid.in
new file mode 100644
index 000000000000..141b7996ca56
--- /dev/null
+++ b/sysutils/mfid/files/mfid.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+# PROVIDE: mfid
+# REQUIRE: root ldconfig devfs syslogd mail
+# KEYWORD: nojail noyroot shutdown
+
+. /etc/rc.subr
+
+name=mfid
+rcvar=mfid_enable
+load_rc_config $name
+
+raid_alert_mailto=${mfid_alert_mailto:-"root@localhost"}
+start_cmd=mfid_start
+stop_cmd="killall -9 mfid > /dev/null 2>&1"
+
+mfid_start()
+{
+ if [ -x "%%PREFIX%%/sbin/mfid" -a -e "/dev/mfi0" ]; then
+ echo "Starting mfid."
+ %%PREFIX%%/sbin/mfid ${raid_alert_mailto}
+ fi
+}
+
+run_rc_command "$1"
diff --git a/sysutils/mfid/pkg-descr b/sysutils/mfid/pkg-descr
new file mode 100644
index 000000000000..b60b61bf365f
--- /dev/null
+++ b/sysutils/mfid/pkg-descr
@@ -0,0 +1,3 @@
+Monitoring daemon for mfi RAID controllers
+
+WWW: http://www.freebsd.org/