ports/58085: New Port: S.M.A.R.T. disk monitoring tools
Eduard Martinescu
martines at rochester.rr.com
Sat Oct 18 14:10:22 UTC 2003
The following reply was made to PR ports/58085; it has been noted by GNATS.
From: Eduard Martinescu <martines at rochester.rr.com>
To: Sergey Matveychuk <sem at ciam.ru>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: ports/58085: New Port: S.M.A.R.T. disk monitoring tools
Date: Sat, 18 Oct 2003 10:07:35 -0400
--=-BX+dalyPZAPwEqNrjMZY
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Ok, done. Attached is update shar file with corrected pkg-plist and
Makefile.
Ed
On Sat, 2003-10-18 at 03:45, Sergey Matveychuk wrote:
> I guess you should implement NOPORTDOCS behaviour and use DOCSDIR and
> EXAMPLEDIR variable. The best place for examples is
> LOCALBASE/share/examples instead of LOCALBASE/share/doc/PORTNAME/examples.
>
> Yes, you should redefine do-install for that.
--
Eduard Martinescu <martines at rochester.rr.com>
--=-BX+dalyPZAPwEqNrjMZY
Content-Disposition: attachment; filename=smartmontools.shar
Content-Type: application/x-shar; name=smartmontools.shar
Content-Transfer-Encoding: 7bit
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# smartmontools
# smartmontools/Makefile
# smartmontools/pkg-plist
# smartmontools/pkg-descr
# smartmontools/pkg-message
# smartmontools/distinfo
#
echo c - smartmontools
mkdir -p smartmontools > /dev/null 2>&1
echo x - smartmontools/Makefile
sed 's/^X//' >smartmontools/Makefile << 'END-of-smartmontools/Makefile'
X# New ports collection makefile for: smartmontools
X# Date created: 12 October 2003
X# Whom: Eduard Martinescu
X#
X# $FreeBSD$
X#
X
XPORTNAME= smartmontools
XPORTVERSION= 5.21
XCATEGORIES= sysutils
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= smartmontools
X
XMAINTAINER= martines at rochester.rr.com
XCOMMENT= S.M.A.R.T. disk monitoring tools
X
XMAN8= smartd.8 smartctl.8
XMAN5= smartd.conf.5
X
XUSE_GMAKE= yes
XGNU_CONFIGURE= yes
XCONFIGURE_ARGS+= --with-initscriptdir=${PREFIX}/etc/rc.d --with-docdir=${PREFIX}/share/doc/smartmontools --enable-sample
XCONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
Xdo-install:
X @${INSTALL_PROGRAM} ${WRKSRC}/smartctl \
X ${PREFIX}/sbin
X @${INSTALL_PROGRAM} ${WRKSRC}/smartd \
X ${PREFIX}/sbin
X @${INSTALL_MAN} ${WRKSRC}/smartctl.8 \
X ${PREFIX}/man/man8
X @${INSTALL_MAN} ${WRKSRC}/smartd.conf.5 \
X ${PREFIX}/man/man5
X @${INSTALL_MAN} ${WRKSRC}/smartd.8 \
X ${PREFIX}/man/man8
X @${INSTALL_DATA} ${WRKSRC}/smartd.conf.sample \
X ${PREFIX}/etc
X @${INSTALL_SCRIPT} ${WRKSRC}/smartd.initd \
X ${PREFIX}/etc/rc.d/smartd.sh.sample
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/WARNINGS ${DOCSDIR}
X @${MKDIR} ${EXAMPLESDIR}
X @${INSTALL_DATA} ${WRKSRC}/examplescripts/README ${EXAMPLESDIR}
X @${INSTALL_DATA} ${WRKSRC}/examplescripts/Example1 ${EXAMPLESDIR}
X @${INSTALL_DATA} ${WRKSRC}/examplescripts/Example2 ${EXAMPLESDIR}
X @${INSTALL_DATA} ${WRKSRC}/examplescripts/Example3 ${EXAMPLESDIR}
X @${INSTALL_DATA} ${WRKSRC}/smartd.conf ${EXAMPLESDIR}
X.endif
X
Xpost-install:
X @${CAT} pkg-message
X
X.include <bsd.port.mk>
END-of-smartmontools/Makefile
echo x - smartmontools/pkg-plist
sed 's/^X//' >smartmontools/pkg-plist << 'END-of-smartmontools/pkg-plist'
X at unexec /bin/echo "===>" Stopping smartd ...
X at unexec /usr/bin/killall smartd 2>/dev/null || true
Xetc/smartd.conf.sample
Xetc/rc.d/smartd.sh.sample
Xsbin/smartctl
Xsbin/smartd
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/TODO
X%%PORTDOCS%%%%DOCSDIR%%/WARNINGS
X%%PORTDOCS%%%%EXAMPLESDIR%%/Example1
X%%PORTDOCS%%%%EXAMPLESDIR%%/Example2
X%%PORTDOCS%%%%EXAMPLESDIR%%/Example3
X%%PORTDOCS%%%%EXAMPLESDIR%%/README
X%%PORTDOCS%%%%EXAMPLESDIR%%/smartd.conf
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-smartmontools/pkg-plist
echo x - smartmontools/pkg-descr
sed 's/^X//' >smartmontools/pkg-descr << 'END-of-smartmontools/pkg-descr'
XThe smartmontools package contains two utility programs (smartctl and smartd)
Xto control and monitor storage systems using the Self-Monitoring, Analysis
Xand Reporting Technology System (S.M.A.R.T.) built into most modern ATA and
XSCSI hard disks. It is derived from the smartsuite package, and includes
Xsupport for ATA/ATAPI-5 disks.
X
XWWW: http://smartmontools.sourceforge.net
X
X-- Eduard Martinescu
Xmartines at frontiernet.net
END-of-smartmontools/pkg-descr
echo x - smartmontools/pkg-message
sed 's/^X//' >smartmontools/pkg-message << 'END-of-smartmontools/pkg-message'
Xsmartmontools has been installed
X
XTo check the status of drives, use the following:
X
X ${PREFIX}/sbin/smartctl -a ad0 for first ATA drive
X ${PREFIX}/sbin/smartctl -a da0 for first SCSI drive
X
XTo enable monitor of drives, you can use ${PREFIX}/sbin/smartd
XA sample configuration file has been installed as ${PREFIX}/etc/smartd.conf.sample
XCopy this file to ${PREFIX}/etc/smartd.conf and edit appropriately
X
XTo have smartd start at boot
X cp ${PREFIX}/etc/rc.d/smartd.sample ${PREFIX}/etc/rc.d/smartd.sh
X chmod 555 ${PREFIX}/etc/rc.d/smartd.sh
X
END-of-smartmontools/pkg-message
echo x - smartmontools/distinfo
sed 's/^X//' >smartmontools/distinfo << 'END-of-smartmontools/distinfo'
XMD5 (smartmontools-5.21.tar.gz) = 64878e77158000d7be2e0c0cbae24cb9
END-of-smartmontools/distinfo
exit
--=-BX+dalyPZAPwEqNrjMZY--
More information about the freebsd-ports-bugs
mailing list