1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

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
This commit is contained in:
Mark Felder 2013-09-18 18:09:11 +00:00
parent c8a4ba312d
commit 61d86c14a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327570
5 changed files with 51 additions and 0 deletions

View File

@ -509,6 +509,7 @@
SUBDIR += memtest86
SUBDIR += memtest86+
SUBDIR += metalog
SUBDIR += mfid
SUBDIR += mgeupsd
SUBDIR += minirsyslogd
SUBDIR += mixer

18
sysutils/mfid/Makefile Normal file
View File

@ -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>

2
sysutils/mfid/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (mfid-0.01.tar.gz) = 5f6814849555343620fd14fb3ce97448146e1b3f262b75c9696aa9de41772863
SIZE (mfid-0.01.tar.gz) = 6535

View File

@ -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"

3
sysutils/mfid/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
Monitoring daemon for mfi RAID controllers
WWW: http://www.freebsd.org/