diff options
author | feld <feld@FreeBSD.org> | 2013-09-19 02:09:11 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2013-09-19 02:09:11 +0800 |
commit | bd1239587f841019c7016255ee7999694e6347ec (patch) | |
tree | 54eb750bb3ed4c9660c2007b90f21fa4a60ff6bb | |
parent | d2cc025be46daf694af6f88585a4475fdee8fb79 (diff) | |
download | freebsd-ports-gnome-bd1239587f841019c7016255ee7999694e6347ec.tar.gz freebsd-ports-gnome-bd1239587f841019c7016255ee7999694e6347ec.tar.zst freebsd-ports-gnome-bd1239587f841019c7016255ee7999694e6347ec.zip |
add new port: sysutils/mfid
mfid is a monitoring daemon for mfi raid controllers designed by our
very own jhb@ when he worked at Yahoo.
Approved by: crees (mentor), sbruno
Sponsored by: Yahoo
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/mfid/Makefile | 18 | ||||
-rw-r--r-- | sysutils/mfid/distinfo | 2 | ||||
-rw-r--r-- | sysutils/mfid/files/mfid.in | 27 | ||||
-rw-r--r-- | sysutils/mfid/pkg-descr | 3 |
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/ |