add new port: sysutils/mptd

mptd is a monitoring daemon for mpt 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:10:59 +00:00
parent 61d86c14a1
commit 480f5bfc9c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327571
5 changed files with 52 additions and 0 deletions

View File

@ -534,6 +534,7 @@
SUBDIR += mount.app
SUBDIR += mountsmb2
SUBDIR += mpiexec
SUBDIR += mptd
SUBDIR += msktutil
SUBDIR += msyslog
SUBDIR += mtpfs

18
sysutils/mptd/Makefile Normal file
View File

@ -0,0 +1,18 @@
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$
PORTNAME= mptd
PORTVERSION= 0.01
CATEGORIES= sysutils
MASTER_SITES= https://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
MAINTAINER= feld@FreeBSD.org
COMMENT= Monitoring daemon for mpt RAID controllers
USE_RC_SUBR= mptd
PLIST_FILES+= sbin/mptd
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mptd ${PREFIX}/sbin/mptd
.include <bsd.port.mk>

2
sysutils/mptd/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (mptd-0.01.tar.gz) = efa6d9c463b4064a220019d89e14d9ca3cfd0d7b645f99e20456d05b8dcef220
SIZE (mptd-0.01.tar.gz) = 8342

View File

@ -0,0 +1,28 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mptd
# REQUIRE: dumpon root ldconfig devfs syslogd mail
# KEYWORD: nojail noyroot shutdown
. /etc/rc.subr
name=mptd
rcvar=mptd_enable
load_rc_config $name
raid_alert_mailto=${mptd_raid_alert_mailto:-"root@localhost"}
start_cmd=mptd_start
stop_cmd="killall -9 mptd > /dev/null 2>&1"
mptd_start()
{
if [ -x "%%PREFIX%%/bin/mptd" -a -e "/dev/mpt0" ]; then
echo "Starting mptd."
%%PREFIX%%/bin/mptd ${raid_alert_mailto}
fi
}
run_rc_command "$1"

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

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