View | Details | Raw Unified | Return to bug 134954
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	smartmontools
8
PORTNAME=	smartmontools
9
PORTVERSION=	5.38
9
PORTVERSION=	5.38
10
PORTREVISION=	4
10
PORTREVISION=	5
11
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
(-)files/smart.in (-6 / +13 lines)
Lines 12-23 Link Here
12
smartctl=%%PREFIX%%/sbin/smartctl
12
smartctl=%%PREFIX%%/sbin/smartctl
13
: ${daily_status_smartctl_flags="-H"}
13
: ${daily_status_smartctl_flags="-H"}
14
: ${daily_status_smartctl_extra_status_flags="-a"}
14
: ${daily_status_smartctl_extra_status_flags="-a"}
15
# no default for ${daily_status_smart_devices}
15
16
case "${daily_status_smart_devices}" in
17
	# XXX AUTO mode selects only regular ad/da disks 
18
	[Aa][Uu][Tt][Oo])
19
		daily_status_smart_devices=`ls /dev/da*[0-9] /dev/ad*[0-9] 2>/dev/null`
20
		;;
21
	*)	;;
22
esac
23
16
if [ -z "${daily_status_smart_devices}" ]; then
24
if [ -z "${daily_status_smart_devices}" ]; then
17
	: ${daily_status_smart_enabled="NO"}
25
	: ${daily_status_smart_enable="NO"}
18
else
26
else
19
	: ${daily_status_smart_enabled="YES"}
27
	: ${daily_status_smart_enable="YES"}
20
fi
28
fi
29
21
trim_junk="tail -n +4"
30
trim_junk="tail -n +4"
22
31
23
tmpfile="$(mktemp /var/run/daily.XXXXXXXX)"
32
tmpfile="$(mktemp /var/run/daily.XXXXXXXX)"
Lines 25-33 Link Here
25
34
26
rc=0
35
rc=0
27
case "${daily_status_smart_enable}" in
36
case "${daily_status_smart_enable}" in
28
	[Nn][Oo])
37
	[Yy][Ee][Ss])
29
		;;
30
	*)
31
		for device in ${daily_status_smart_devices}; do
38
		for device in ${daily_status_smart_devices}; do
32
			if [ -e ${device} ]; then
39
			if [ -e ${device} ]; then
33
				echo
40
				echo

Return to bug 134954