diff options
author | sergei <sergei@FreeBSD.org> | 2003-10-24 15:45:38 +0800 |
---|---|---|
committer | sergei <sergei@FreeBSD.org> | 2003-10-24 15:45:38 +0800 |
commit | deb197a1466192cd4f491fcb47cbb3022d6ddc7c (patch) | |
tree | 820d1e57538ead3ce3dca361cd0508234cd5fbc0 /sysutils/smartmontools-devel | |
parent | 2264ff0ec2a31431dda4514c55ea17a0cec7c087 (diff) | |
download | freebsd-ports-gnome-deb197a1466192cd4f491fcb47cbb3022d6ddc7c.tar.gz freebsd-ports-gnome-deb197a1466192cd4f491fcb47cbb3022d6ddc7c.tar.zst freebsd-ports-gnome-deb197a1466192cd4f491fcb47cbb3022d6ddc7c.zip |
Add smartmontools 5.21, S.M.A.R.T. disk monitoring tools.
The smartmontools package contains two utility programs (smartctl and smartd)
to control and monitor storage systems using the Self-Monitoring, Analysis and
Reporting Technology System (S.M.A.R.T.) built into most modern ATA and SCSI
hard disks. It is derived from the smartsuite package, and includes support
for ATA/ATAPI-5 disks.
PR: 58085
Submitted by: Eduard Martinescu <martines@rochester.rr.com>
Approved by: krion (implicit)
Diffstat (limited to 'sysutils/smartmontools-devel')
-rw-r--r-- | sysutils/smartmontools-devel/Makefile | 52 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/distinfo | 1 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/pkg-descr | 10 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/pkg-message | 14 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/pkg-plist | 21 |
5 files changed, 98 insertions, 0 deletions
diff --git a/sysutils/smartmontools-devel/Makefile b/sysutils/smartmontools-devel/Makefile new file mode 100644 index 000000000000..973845057c37 --- /dev/null +++ b/sysutils/smartmontools-devel/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: smartmontools +# Date created: 12 October 2003 +# Whom: Eduard Martinescu +# +# $FreeBSD$ +# + +PORTNAME= smartmontools +PORTVERSION= 5.21 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= martines@rochester.rr.com +COMMENT= S.M.A.R.T. disk monitoring tools + +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-initscriptdir=${PREFIX}/etc/rc.d \ + --with-docdir=${DOCSDIR} --enable-sample +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} + +PROGRAMS= smartctl smartd +MAN5= smartd.conf.5 +MAN8= smartd.8 smartctl.8 +DOCS= AUTHORS CHANGELOG INSTALL NEWS README TODO WARNINGS +EXAMPLES= smartd.conf examplescripts/README examplescripts/Example? + +do-install: + cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGRAMS} ${PREFIX}/sbin + cd ${WRKSRC} && ${INSTALL_MAN} ${MAN5} ${MANPREFIX}/man/man5 + cd ${WRKSRC} && ${INSTALL_MAN} ${MAN8} ${MANPREFIX}/man/man8 + ${INSTALL_DATA} ${WRKSRC}/smartd.conf.sample ${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/smartd.initd \ + ${PREFIX}/etc/rc.d/smartd.sh.sample + @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.endif + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +IGNORE= smartmontools currently support only FreeBSD 5.x +.endif + +post-install: + ${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/sysutils/smartmontools-devel/distinfo b/sysutils/smartmontools-devel/distinfo new file mode 100644 index 000000000000..30a2c9056db1 --- /dev/null +++ b/sysutils/smartmontools-devel/distinfo @@ -0,0 +1 @@ +MD5 (smartmontools-5.21.tar.gz) = 64878e77158000d7be2e0c0cbae24cb9 diff --git a/sysutils/smartmontools-devel/pkg-descr b/sysutils/smartmontools-devel/pkg-descr new file mode 100644 index 000000000000..4b984795fe92 --- /dev/null +++ b/sysutils/smartmontools-devel/pkg-descr @@ -0,0 +1,10 @@ +The smartmontools package contains two utility programs (smartctl and smartd) +to control and monitor storage systems using the Self-Monitoring, Analysis +and Reporting Technology System (S.M.A.R.T.) built into most modern ATA and +SCSI hard disks. It is derived from the smartsuite package, and includes +support for ATA/ATAPI-5 disks. + +WWW: http://smartmontools.sourceforge.net + +-- Eduard Martinescu +martines@frontiernet.net diff --git a/sysutils/smartmontools-devel/pkg-message b/sysutils/smartmontools-devel/pkg-message new file mode 100644 index 000000000000..0a0870090abb --- /dev/null +++ b/sysutils/smartmontools-devel/pkg-message @@ -0,0 +1,14 @@ +smartmontools has been installed + +To check the status of drives, use the following: + + ${PREFIX}/sbin/smartctl -a ad0 for first ATA drive + ${PREFIX}/sbin/smartctl -a da0 for first SCSI drive + +To enable monitor of drives, you can use ${PREFIX}/sbin/smartd +A sample configuration file has been installed as ${PREFIX}/etc/smartd.conf.sample +Copy this file to ${PREFIX}/etc/smartd.conf and edit appropriately + +To have smartd start at boot + cp ${PREFIX}/etc/rc.d/smartd.sample ${PREFIX}/etc/rc.d/smartd.sh + chmod 555 ${PREFIX}/etc/rc.d/smartd.sh diff --git a/sysutils/smartmontools-devel/pkg-plist b/sysutils/smartmontools-devel/pkg-plist new file mode 100644 index 000000000000..a8ea2df1cba6 --- /dev/null +++ b/sysutils/smartmontools-devel/pkg-plist @@ -0,0 +1,21 @@ +@comment $FreeBSD$ +@unexec /bin/echo "===>" Stopping smartd ... +@unexec /usr/bin/killall smartd 2>/dev/null || true +etc/smartd.conf.sample +etc/rc.d/smartd.sh.sample +sbin/smartctl +sbin/smartd +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%%%DOCSDIR%%/WARNINGS +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%EXAMPLESDIR%%/Example1 +%%EXAMPLESDIR%%/Example2 +%%EXAMPLESDIR%%/Example3 +%%EXAMPLESDIR%%/README +%%EXAMPLESDIR%%/smartd.conf +@dirrm %%EXAMPLESDIR%% |