1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

STAGE support

Fix incorrect path in rc script

Approved by:	swills (mentor)
This commit is contained in:
Mark Felder 2013-10-24 11:35:03 +00:00
parent b9f534fd68
commit c2e2766a2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331477
2 changed files with 4 additions and 4 deletions

View File

@ -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 controllers
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>

View File

@ -19,9 +19,9 @@ stop_cmd="killall -9 mptd > /dev/null 2>&1"
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
}