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

Collapse All | Expand All

(-)ataidle/Makefile (-5 / +7 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	ataidle
8
PORTNAME=	ataidle
9
PORTVERSION=	1.0
9
PORTVERSION=	2.2
10
PORTREVISION=	1
11
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
12
MASTER_SITES=	http://www.cran.org.uk/bruce/software/
11
MASTER_SITES=	http://www.cran.org.uk/bruce/software/
13
12
Lines 16-22 Link Here
16
15
17
USE_RC_SUBR=	${PORTNAME}
16
USE_RC_SUBR=	${PORTNAME}
18
MAN8=		ataidle.8
17
MAN8=		ataidle.8
19
PORTDOCS=	COPYING ChangeLog README
18
PORTDOCS=	COPYING Changelog README
20
PLIST_FILES=	sbin/ataidle
19
PLIST_FILES=	sbin/ataidle
21
20
22
do-install:
21
do-install:
Lines 27-36 Link Here
27
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
26
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
28
.endif
27
.endif
29
28
29
post-install:
30
	@${CAT} ${PKGMESSAGE}
31
30
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
31
33
32
.if ${OSVERSION} < 501105
34
.if ${OSVERSION} < 600034
33
IGNORE=		requires FreeBSD 5.2 or newer
35
IGNORE=		requires FreeBSD 6.1 or newer
34
.endif
36
.endif
35
37
36
.include <bsd.port.post.mk>
38
.include <bsd.port.post.mk>
(-)ataidle/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (ataidle-1.0.tar.gz) = 2d5a49587f8b42042eff4408c2cb6f7d
1
MD5 (ataidle-2.2.tar.gz) = 05e3c48c33ccb354bf4d43289491b398
2
SHA256 (ataidle-1.0.tar.gz) = 5b9a853e00c7d7a925f05ddacb555d1e21cfb875c0a0809e2609a0382c5683e5
2
SHA256 (ataidle-2.2.tar.gz) = fb4b290d948ead48a9cfa850f4a6e2c0ece4e3eb1647823b460b07c3ddee385c
3
SIZE (ataidle-1.0.tar.gz) = 14182
3
SIZE (ataidle-2.2.tar.gz) = 12403
(-)ataidle/files/ataidle.in (-10 / +15 lines)
Lines 8-26 Link Here
8
#
8
#
9
# ataidle_enable (bool): set to NO by default.
9
# ataidle_enable (bool): set to NO by default.
10
#         Set to YES to enable ataidle.
10
#         Set to YES to enable ataidle.
11
# ataidle_device: list of devices on which to run ataidle
11
# ataidle_devices: list of devices on which to run ataidle
12
# ataidle_adX: parameters to pass to ataidle(8)
12
# ataidle_adX: parameters to pass to ataidle(8)
13
13
14
# Example:
14
# Example:
15
# Put the disks ad1, ad2 and ad3 into Idle mode after 60
15
# Put the disks ad0, ad1 and ad2 into Idle mode after 60
16
# minutes and Standby mode after 120 minutes. Also, set the
16
# minutes and Standby mode after 120 minutes. Also, set the
17
# AAM and APM values to their maximum so the drives run at
17
# AAM and APM values to their maximum so the drives run at
18
# their maximum performance.
18
# their maximum performance.
19
#
19
#
20
# ataidle_device="ad1 ad2 ad3"
20
# ataidle_devices="ad0 ad1 ad2"
21
# ataidle_ad1="-I 60 -S 120 -A 127 -P 254 0 1"
21
# ataidle_ad0="-I 60 -S 120 -A 127 -P 254"
22
# ataidle_ad2="-I 60 -S 120 -A 127 -P 254 1 0"
22
# ataidle_ad1="-I 60 -S 120 -A 127 -P 254"
23
# ataidle_ad3="-I 60 -S 120 -A 127 -P 254 1 1"
23
# ataidle_ad2="-I 60 -S 120 -A 127 -P 254"
24
#
24
#
25
25
26
. %%RC_SUBR%%
26
. %%RC_SUBR%%
Lines 37-49 Link Here
37
37
38
ataidle_start()
38
ataidle_start()
39
{
39
{
40
    if [ -n "${ataidle_device}" ]; then
40
    if [ -n "${ataidle_device}" -a -z "${ataidle_devices}" ]; then
41
        for i in ${ataidle_device}; do
41
        echo "warning: old ataidle rc settings found"
42
        ataidle_devices=${ataidle_device}
43
    fi
44
45
    if [ -n "${ataidle_devices}" ]; then
46
        for i in ${ataidle_devices}; do
42
            eval ataidle_args=\$ataidle_${i}
47
            eval ataidle_args=\$ataidle_${i}
43
            ${command} ${ataidle_args}
48
            echo "ATAidle: configuring device /dev/${i}"
49
            ${command} ${ataidle_args} /dev/${i}
44
        done
50
        done
45
    fi
51
    fi
46
}
52
}
47
53
48
run_rc_command "$1"
54
run_rc_command "$1"
49

Return to bug 119731