mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
sysutils/smartmontools-devel|sysutils/smartmontools|2010-02-10|Removed, use sysu
tils/smartmontools instead PR: ports/143592 Submitted by: Marcin Wisnicki <mwisnicki+freebsd@gmail.com> (maintainer)
This commit is contained in:
parent
d822b0671b
commit
8e7fd42f21
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249505
1
MOVED
1
MOVED
@ -4321,3 +4321,4 @@ math/octave-forge-vrml||2010-02-02|Has expired: has been broken for 3 months
|
||||
sysutils/lugtools|sysutils/p5-Plugtools|2010-02-04|Superceeded by sysutils/p5-Plugtools
|
||||
irc/conspire||2010-02-04|Upstream development abandoned
|
||||
x11-toolkits/swt31|x11-toolkits/swt|2010-02-07|Superseded by x11-toolkits/swt
|
||||
sysutils/smartmontools-devel|sysutils/smartmontools|2010-02-10|Removed, use sysutils/smartmontools instead
|
||||
|
@ -742,7 +742,6 @@
|
||||
SUBDIR += sloth
|
||||
SUBDIR += slst
|
||||
SUBDIR += smartmontools
|
||||
SUBDIR += smartmontools-devel
|
||||
SUBDIR += snap
|
||||
SUBDIR += snowlog
|
||||
SUBDIR += socket
|
||||
|
@ -1,47 +0,0 @@
|
||||
# New ports collection makefile for: smartmontools
|
||||
# Date created: 12 October 2003
|
||||
# Whom: Eduard Martinescu
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= smartmontools
|
||||
PORTVERSION= 5.38.r${SVNREVISION}
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://wisnia21.freeshell.org/f/ports/distfiles/
|
||||
PKGNAMESUFFIX= -devel
|
||||
|
||||
MAINTAINER= mwisnicki+freebsd@gmail.com
|
||||
COMMENT= S.M.A.R.T. disk monitoring tools (SVN snapshot)
|
||||
|
||||
SVNREVISION= 2874
|
||||
|
||||
CONFLICTS= smartmontools-[0-9]*
|
||||
|
||||
USE_AUTOTOOLS= aclocal:110 autoheader:262 automake:110 autoconf:262
|
||||
USE_BZIP2= yes
|
||||
GNU_CONFIGURE= yes
|
||||
AUTOMAKE_ARGS= --add-missing --copy --foreign
|
||||
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} --enable-sample --with-initscriptdir=no
|
||||
|
||||
SUB_FILES= pkg-message smart
|
||||
USE_RC_SUBR= smartd
|
||||
|
||||
MAN5= smartd.conf.5
|
||||
MAN8= smartd.8 smartctl.8
|
||||
|
||||
CFLAGS:= ${CFLAGS:S/-O2/-O/}
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${PREFIX}/etc/periodic/daily
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/smart ${PREFIX}/etc/periodic/daily/smart
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
x-maintainer-make-snapshot:
|
||||
svn export -r${SVNREVISION} \
|
||||
https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools \
|
||||
${DISTNAME}
|
||||
${TAR} -cjvf ${DISTNAME}.tar.bz2 ${DISTNAME}
|
||||
${RM} -rf ${DISTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,3 +0,0 @@
|
||||
MD5 (smartmontools-5.38.r2874.tar.bz2) = d2cadaaa1a8390c38372f5c4f5972219
|
||||
SHA256 (smartmontools-5.38.r2874.tar.bz2) = 96c1f34daddedf6575caa6bfe4621023f8a861b248b1b3f87a5b79e9e00d0875
|
||||
SIZE (smartmontools-5.38.r2874.tar.bz2) = 477163
|
@ -1,11 +0,0 @@
|
||||
--- os_freebsd.cpp.orig 2008-03-04 23:09:47.000000000 +0100
|
||||
+++ os_freebsd.cpp 2008-03-14 13:52:37.000000000 +0100
|
||||
@@ -525,7 +524,7 @@
|
||||
return -1;
|
||||
}
|
||||
|
||||
- if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
|
||||
+ if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_SCSI_STATUS_ERROR)) {
|
||||
#if __FreeBSD_version > 500000
|
||||
cam_error_print(cam_dev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr);
|
||||
#endif
|
@ -1,19 +0,0 @@
|
||||
smartmontools has been installed
|
||||
|
||||
To check the status of drives, use the following:
|
||||
|
||||
%%PREFIX%%/sbin/smartctl -a /dev/ad0 for first ATA drive
|
||||
%%PREFIX%%/sbin/smartctl -a /dev/da0 for first SCSI drive
|
||||
|
||||
To include drive health information in your daily status reports,
|
||||
add a line like the following to /etc/periodic.conf:
|
||||
daily_status_smart_devices="/dev/ad0 /dev/da0"
|
||||
substituting the appropriate device names for your SMART-capable disks.
|
||||
|
||||
To enable drive monitoring, 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
|
||||
echo 'smartd_enable="YES"' >> /etc/rc.conf
|
@ -1,60 +0,0 @@
|
||||
#!/bin/sh
|
||||
# This script is in the public domain. Original author: Garrett Wollman
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
if [ -r /etc/defaults/periodic.conf ]; then
|
||||
. /etc/defaults/periodic.conf
|
||||
source_periodic_confs
|
||||
fi
|
||||
|
||||
smartctl=%%PREFIX%%/sbin/smartctl
|
||||
: ${daily_status_smartctl_flags="-H"}
|
||||
: ${daily_status_smartctl_extra_status_flags="-a"}
|
||||
|
||||
case "${daily_status_smart_devices}" in
|
||||
# XXX AUTO mode selects only regular ad/da disks
|
||||
[Aa][Uu][Tt][Oo])
|
||||
daily_status_smart_devices=`sysctl -n kern.disks`
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
if [ -z "${daily_status_smart_devices}" ]; then
|
||||
: ${daily_status_smart_enable="NO"}
|
||||
else
|
||||
: ${daily_status_smart_enable="YES"}
|
||||
fi
|
||||
|
||||
trim_junk="tail -n +4"
|
||||
|
||||
tmpfile="$(mktemp /var/run/daily.XXXXXXXX)"
|
||||
trap "rm -f ${tmpfile}" 0 1 3 15
|
||||
|
||||
rc=0
|
||||
case "${daily_status_smart_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
cd /dev
|
||||
for device in ${daily_status_smart_devices}; do
|
||||
if [ -e ${device} ]; then
|
||||
echo
|
||||
echo "Checking health of ${device}:"
|
||||
echo
|
||||
${smartctl} ${daily_status_smartctl_flags} ${device} > "${tmpfile}"
|
||||
status=$?
|
||||
if [ $((status & 3)) -ne 0 ]; then
|
||||
rc=2
|
||||
${trim_junk} "${tmpfile}"
|
||||
elif [ $status -ne 0 ]; then
|
||||
rc=1
|
||||
${smartctl} ${daily_status_smartctl_extra_status_flags} ${device} | ${trim_junk}
|
||||
else
|
||||
${trim_junk} "${tmpfile}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
exit "$rc"
|
@ -1,44 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
# PROVIDE: smartd
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Define these smartd_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/smartd
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
smartd_enable="${smartd_enable-NO}"
|
||||
smartd_pidfile="/var/run/smartd.pid"
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="smartd"
|
||||
rcvar=`set_rcvar`
|
||||
command="%%PREFIX%%/sbin/smartd"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${smartd_config="%%PREFIX%%/etc/smartd.conf"}
|
||||
: ${smartd_flags="-c ${smartd_config}"}
|
||||
|
||||
pidfile="${smartd_pidfile}"
|
||||
required_files="${smartd_config}"
|
||||
|
||||
case "${smartd_flags}" in
|
||||
*-p\ *)
|
||||
echo "ERROR: \$smartd_flags includes -p option." \
|
||||
"Please use \$smartd_pidfile instead."
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
smartd_flags="-p ${pidfile} ${smartd_flags}"
|
||||
;;
|
||||
esac
|
||||
|
||||
run_rc_command "$1"
|
@ -1,11 +0,0 @@
|
||||
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.
|
||||
|
||||
Compared to version 5.38 this SVN snapshot brings more USB hardware support:
|
||||
http://sourceforge.net/apps/trac/smartmontools/wiki/Supported_USB-Devices
|
||||
as well as other improvements.
|
||||
|
||||
WWW: http://smartmontools.sourceforge.net
|
@ -1,25 +0,0 @@
|
||||
@comment $FreeBSD$
|
||||
@unexec /bin/echo "===>" Stopping smartd ...
|
||||
@unexec /usr/bin/killall smartd 2>/dev/null || true
|
||||
etc/periodic/daily/smart
|
||||
etc/smartd.conf.sample
|
||||
sbin/smartctl
|
||||
sbin/smartd
|
||||
%%DOCSDIR%%/AUTHORS
|
||||
%%DOCSDIR%%/CHANGELOG
|
||||
%%DOCSDIR%%/COPYING
|
||||
%%DOCSDIR%%/INSTALL
|
||||
%%DOCSDIR%%/NEWS
|
||||
%%DOCSDIR%%/README
|
||||
%%DOCSDIR%%/TODO
|
||||
%%DOCSDIR%%/WARNINGS
|
||||
%%DOCSDIR%%/examplescripts/Example1
|
||||
%%DOCSDIR%%/examplescripts/Example2
|
||||
%%DOCSDIR%%/examplescripts/Example3
|
||||
%%DOCSDIR%%/examplescripts/Example4
|
||||
%%DOCSDIR%%/examplescripts/README
|
||||
%%DOCSDIR%%/smartd.conf
|
||||
@dirrm %%DOCSDIR%%/examplescripts
|
||||
@dirrm %%DOCSDIR%%
|
||||
@dirrmtry etc/periodic/daily
|
||||
@dirrmtry etc/periodic
|
Loading…
Reference in New Issue
Block a user