Date: Wed, 18 Sep 2013 18:09:11 +0000 (UTC) From: Mark Felder <feld@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r327570 - in head/sysutils: . mfid mfid/files Message-ID: <201309181809.r8II9Bvl060009@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: feld Date: Wed Sep 18 18:09:11 2013 New Revision: 327570 URL: http://svnweb.freebsd.org/changeset/ports/327570 Log: 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 Added: head/sysutils/mfid/ head/sysutils/mfid/Makefile (contents, props changed) head/sysutils/mfid/distinfo (contents, props changed) head/sysutils/mfid/files/ head/sysutils/mfid/files/mfid.in (contents, props changed) head/sysutils/mfid/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Wed Sep 18 17:33:42 2013 (r327569) +++ head/sysutils/Makefile Wed Sep 18 18:09:11 2013 (r327570) @@ -509,6 +509,7 @@ SUBDIR += memtest86 SUBDIR += memtest86+ SUBDIR += metalog + SUBDIR += mfid SUBDIR += mgeupsd SUBDIR += minirsyslogd SUBDIR += mixer Added: head/sysutils/mfid/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/mfid/Makefile Wed Sep 18 18:09:11 2013 (r327570) @@ -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> Added: head/sysutils/mfid/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/mfid/distinfo Wed Sep 18 18:09:11 2013 (r327570) @@ -0,0 +1,2 @@ +SHA256 (mfid-0.01.tar.gz) = 5f6814849555343620fd14fb3ce97448146e1b3f262b75c9696aa9de41772863 +SIZE (mfid-0.01.tar.gz) = 6535 Added: head/sysutils/mfid/files/mfid.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/mfid/files/mfid.in Wed Sep 18 18:09:11 2013 (r327570) @@ -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" Added: head/sysutils/mfid/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/mfid/pkg-descr Wed Sep 18 18:09:11 2013 (r327570) @@ -0,0 +1,3 @@ +Monitoring daemon for mfi RAID controllers + +WWW: http://www.freebsd.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309181809.r8II9Bvl060009>