diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-02-10 03:06:14 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-02-10 03:06:14 +0000 |
commit | 8e7fd42f2178feb0bbd8a4c573c0213935667ab5 (patch) | |
tree | 1d7dee93597bf603589294e179c1cc81775f4f8e /sysutils | |
parent | spamass-milter generates "Received" header emulating MTA before passing e-mai... (diff) |
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)
Notes
Notes:
svn path=/head/; revision=249505
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/Makefile | 47 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/distinfo | 3 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/files/patch-os__freebsd.cpp | 11 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/files/pkg-message.in | 19 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/files/smart.in | 60 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/files/smartd.in | 44 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/pkg-descr | 11 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/pkg-plist | 25 |
9 files changed, 0 insertions, 221 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index bd16f8a9c965..0410fe875a91 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -742,7 +742,6 @@ SUBDIR += sloth SUBDIR += slst SUBDIR += smartmontools - SUBDIR += smartmontools-devel SUBDIR += snap SUBDIR += snowlog SUBDIR += socket diff --git a/sysutils/smartmontools-devel/Makefile b/sysutils/smartmontools-devel/Makefile deleted file mode 100644 index e805e1ae954b..000000000000 --- a/sysutils/smartmontools-devel/Makefile +++ /dev/null @@ -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> diff --git a/sysutils/smartmontools-devel/distinfo b/sysutils/smartmontools-devel/distinfo deleted file mode 100644 index bf9f468da914..000000000000 --- a/sysutils/smartmontools-devel/distinfo +++ /dev/null @@ -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 diff --git a/sysutils/smartmontools-devel/files/patch-os__freebsd.cpp b/sysutils/smartmontools-devel/files/patch-os__freebsd.cpp deleted file mode 100644 index f4b184a6205c..000000000000 --- a/sysutils/smartmontools-devel/files/patch-os__freebsd.cpp +++ /dev/null @@ -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 diff --git a/sysutils/smartmontools-devel/files/pkg-message.in b/sysutils/smartmontools-devel/files/pkg-message.in deleted file mode 100644 index 85cab06bfad7..000000000000 --- a/sysutils/smartmontools-devel/files/pkg-message.in +++ /dev/null @@ -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 diff --git a/sysutils/smartmontools-devel/files/smart.in b/sysutils/smartmontools-devel/files/smart.in deleted file mode 100644 index d4ba696d5212..000000000000 --- a/sysutils/smartmontools-devel/files/smart.in +++ /dev/null @@ -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" diff --git a/sysutils/smartmontools-devel/files/smartd.in b/sysutils/smartmontools-devel/files/smartd.in deleted file mode 100644 index 600a0bf2a472..000000000000 --- a/sysutils/smartmontools-devel/files/smartd.in +++ /dev/null @@ -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" diff --git a/sysutils/smartmontools-devel/pkg-descr b/sysutils/smartmontools-devel/pkg-descr deleted file mode 100644 index de4fd32883be..000000000000 --- a/sysutils/smartmontools-devel/pkg-descr +++ /dev/null @@ -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 diff --git a/sysutils/smartmontools-devel/pkg-plist b/sysutils/smartmontools-devel/pkg-plist deleted file mode 100644 index 7ca96cbea442..000000000000 --- a/sysutils/smartmontools-devel/pkg-plist +++ /dev/null @@ -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 |