View | Details | Raw Unified | Return to bug 157762 | Differences between
and this patch

Collapse All | Expand All

(-)/root/tmp/smartmontools/Makefile (-3 / +4 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	smartmontools
8
PORTNAME=	smartmontools
9
PORTVERSION=	5.40
9
PORTVERSION=	5.41
10
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
11
MASTER_SITES=	SF
11
MASTER_SITES=	SF
12
12
Lines 22-31 Link Here
22
GMAKE=		make
22
GMAKE=		make
23
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
24
CONFIGURE_ARGS=	--with-docdir=${DOCSDIR} --enable-sample \
24
CONFIGURE_ARGS=	--with-docdir=${DOCSDIR} --enable-sample \
25
    --disable-dependency-tracking --enable-drivedb
25
    --disable-dependency-tracking --enable-drivedb \
26
    --with-initscriptdir=${PREFIX}/etc/rc.d
26
27
27
SUB_FILES=	pkg-message smart
28
SUB_FILES=	pkg-message smart
28
USE_RC_SUBR=	smartd
29
29
30
MAN5=		smartd.conf.5
30
MAN5=		smartd.conf.5
31
MAN8=		smartd.8 smartctl.8
31
MAN8=		smartd.8 smartctl.8
Lines 38-43 Link Here
38
post-install:
38
post-install:
39
	${MKDIR} ${PREFIX}/etc/periodic/daily
39
	${MKDIR} ${PREFIX}/etc/periodic/daily
40
	${INSTALL_SCRIPT} ${WRKDIR}/smart ${PREFIX}/etc/periodic/daily/smart
40
	${INSTALL_SCRIPT} ${WRKDIR}/smart ${PREFIX}/etc/periodic/daily/smart
41
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/smartd.freebsd.initd ${PREFIX}/etc/rc.d/smartd
41
	@${CAT} ${PKGMESSAGE}
42
	@${CAT} ${PKGMESSAGE}
42
43
43
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)/root/tmp/smartmontools/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (smartmontools-5.40.tar.gz) = 2a68ed20d5d6bd198e1aa6bf0b6037f0f216e3b14da022115244f1af9d248bfd
1
SHA256 (smartmontools-5.41.tar.gz) = 173eb14e3253a30230f38c7e684085bcae7fa021efff58bdf94c2702ac76fa32
2
SIZE (smartmontools-5.40.tar.gz) = 705592
2
SIZE (smartmontools-5.41.tar.gz) = 740661
(-)/root/tmp/smartmontools/files/pkg-message.in (-1 / +2 lines)
Lines 2-9 Link Here
2
2
3
To check the status of drives, use the following:
3
To check the status of drives, use the following:
4
4
5
	%%PREFIX%%/sbin/smartctl -a /dev/ad0		for first ATA drive
5
	%%PREFIX%%/sbin/smartctl -a /dev/ad0		for first (S)ATA drive
6
	%%PREFIX%%/sbin/smartctl -a /dev/da0		for first SCSI drive
6
	%%PREFIX%%/sbin/smartctl -a /dev/da0		for first SCSI drive
7
	%%PREFIX%%/sbin/smartctl -a /dev/ada0		for first SATA drive
7
8
8
To include drive health information in your daily status reports,
9
To include drive health information in your daily status reports,
9
add a line like the following to /etc/periodic.conf:
10
add a line like the following to /etc/periodic.conf:
(-)/root/tmp/smartmontools/files/smartd.in (-44 lines)
Lines 1-44 Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/sysutils/smartmontools/files/smartd.in,v 1.2 2010/03/27 00:15:05 dougb Exp $
3
4
# PROVIDE: smartd
5
# REQUIRE: DAEMON
6
# BEFORE: LOGIN
7
# KEYWORD: shutdown
8
9
# Define these smartd_* variables in one of these files:
10
#	/etc/rc.conf
11
#	/etc/rc.conf.local
12
#	/etc/rc.conf.d/smartd
13
#
14
# DO NOT CHANGE THESE DEFAULT VALUES HERE
15
#
16
smartd_enable="${smartd_enable-NO}"
17
smartd_pidfile="/var/run/smartd.pid"
18
19
. /etc/rc.subr
20
21
name="smartd"
22
rcvar=`set_rcvar`
23
command="%%PREFIX%%/sbin/smartd"
24
25
load_rc_config $name
26
27
: ${smartd_config="%%PREFIX%%/etc/smartd.conf"}
28
: ${smartd_flags="-c ${smartd_config}"}
29
30
pidfile="${smartd_pidfile}"
31
required_files="${smartd_config}"
32
33
case "${smartd_flags}" in
34
*-p\ *)
35
	echo "ERROR: \$smartd_flags includes -p option." \
36
		"Please use \$smartd_pidfile instead."
37
	exit 1
38
	;;
39
*)
40
	smartd_flags="-p ${pidfile} ${smartd_flags}"
41
	;;
42
esac
43
44
run_rc_command "$1"
(-)/root/tmp/smartmontools/pkg-plist (+1 lines)
Lines 3-8 Link Here
3
@unexec /usr/bin/killall smartd 2>/dev/null || true
3
@unexec /usr/bin/killall smartd 2>/dev/null || true
4
etc/periodic/daily/smart
4
etc/periodic/daily/smart
5
etc/smartd.conf.sample
5
etc/smartd.conf.sample
6
etc/rc.d/smartd
6
sbin/smartctl
7
sbin/smartctl
7
sbin/smartd
8
sbin/smartd
8
sbin/update-smart-drivedb
9
sbin/update-smart-drivedb

Return to bug 157762