Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2013 11:35:03 +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: r331477 - in head/sysutils/mptd: . files
Message-ID:  <201310241135.r9OBZ32p043010@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Thu Oct 24 11:35:03 2013
New Revision: 331477
URL: http://svnweb.freebsd.org/changeset/ports/331477

Log:
  STAGE support
  Fix incorrect path in rc script
  
  Approved by:	swills (mentor)

Modified:
  head/sysutils/mptd/Makefile
  head/sysutils/mptd/files/mptd.in

Modified: head/sysutils/mptd/Makefile
==============================================================================
--- head/sysutils/mptd/Makefile	Thu Oct 24 11:34:55 2013	(r331476)
+++ head/sysutils/mptd/Makefile	Thu Oct 24 11:35:03 2013	(r331477)
@@ -3,6 +3,7 @@
 
 PORTNAME=	mptd
 PORTVERSION=	0.01
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	https://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
 
@@ -12,8 +13,7 @@ COMMENT=	Monitoring daemon for mpt RAID 
 USE_RC_SUBR=	mptd
 PLIST_FILES+=	sbin/mptd
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/mptd ${PREFIX}/sbin/mptd
+	${INSTALL_PROGRAM} ${WRKSRC}/mptd ${STAGEDIR}${PREFIX}/sbin/mptd
 
 .include <bsd.port.mk>

Modified: head/sysutils/mptd/files/mptd.in
==============================================================================
--- head/sysutils/mptd/files/mptd.in	Thu Oct 24 11:34:55 2013	(r331476)
+++ head/sysutils/mptd/files/mptd.in	Thu Oct 24 11:35:03 2013	(r331477)
@@ -19,9 +19,9 @@ stop_cmd="killall -9 mptd > /dev/null 2>
 
 mptd_start()
 {
-	if [ -x "%%PREFIX%%/bin/mptd" -a -e "/dev/mpt0" ]; then
+	if [ -x "%%PREFIX%%/sbin/mptd" -a -e "/dev/mpt0" ]; then
 	        echo "Starting mptd."
-		%%PREFIX%%/bin/mptd ${raid_alert_mailto}
+		%%PREFIX%%/sbin/mptd ${raid_alert_mailto}
 	fi
 }
 



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