From owner-svn-ports-all@FreeBSD.ORG Wed Sep 18 18:11:01 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 679B9781; Wed, 18 Sep 2013 18:11:01 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 46E512C26; Wed, 18 Sep 2013 18:11:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8IIB1rq062633; Wed, 18 Sep 2013 18:11:01 GMT (envelope-from feld@svn.freebsd.org) Received: (from feld@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8IIB0mH062620; Wed, 18 Sep 2013 18:11:00 GMT (envelope-from feld@svn.freebsd.org) Message-Id: <201309181811.r8IIB0mH062620@svn.freebsd.org> From: Mark Felder Date: Wed, 18 Sep 2013 18:11:00 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 18:11:01 -0000 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 +# $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 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/