Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2013 18:11:00 +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: r327571 - in head/sysutils: . mptd mptd/files
Message-ID:  <201309181811.r8IIB0mH062620@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Wed Sep 18 18:10:59 2013
New Revision: 327571
URL: http://svnweb.freebsd.org/changeset/ports/327571

Log:
  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

Added:
  head/sysutils/mptd/
  head/sysutils/mptd/Makefile   (contents, props changed)
  head/sysutils/mptd/distinfo   (contents, props changed)
  head/sysutils/mptd/files/
  head/sysutils/mptd/files/mptd.in   (contents, props changed)
  head/sysutils/mptd/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Wed Sep 18 18:09:11 2013	(r327570)
+++ head/sysutils/Makefile	Wed Sep 18 18:10:59 2013	(r327571)
@@ -534,6 +534,7 @@
     SUBDIR += mount.app
     SUBDIR += mountsmb2
     SUBDIR += mpiexec
+    SUBDIR += mptd
     SUBDIR += msktutil
     SUBDIR += msyslog
     SUBDIR += mtpfs

Added: head/sysutils/mptd/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mptd/Makefile	Wed Sep 18 18:10:59 2013	(r327571)
@@ -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>

Added: head/sysutils/mptd/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mptd/distinfo	Wed Sep 18 18:10:59 2013	(r327571)
@@ -0,0 +1,2 @@
+SHA256 (mptd-0.01.tar.gz) = efa6d9c463b4064a220019d89e14d9ca3cfd0d7b645f99e20456d05b8dcef220
+SIZE (mptd-0.01.tar.gz) = 8342

Added: head/sysutils/mptd/files/mptd.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mptd/files/mptd.in	Wed Sep 18 18:10:59 2013	(r327571)
@@ -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"

Added: head/sysutils/mptd/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mptd/pkg-descr	Wed Sep 18 18:10:59 2013	(r327571)
@@ -0,0 +1,3 @@
+Monitoring daemon for mpt RAID controllers
+
+WWW: http://www.freebsd.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309181811.r8IIB0mH062620>