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

(-)sysutils/est/Makefile (-4 / +8 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	est
8
PORTNAME=	est
9
PORTVERSION=	0.5
9
PORTVERSION=	0.6
10
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
11
MASTER_SITES=	http://www.daemonology.net/freebsd-est/
11
MASTER_SITES=	http://www.daemonology.net/freebsd-est/
12
12
Lines 17-22 Link Here
17
KMODDIR=	${PREFIX}/modules
17
KMODDIR=	${PREFIX}/modules
18
MAKE_ARGS=	KMODDIR="${KMODDIR}"
18
MAKE_ARGS=	KMODDIR="${KMODDIR}"
19
19
20
USE_RC_SUBR=	yes
21
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
22
20
PLIST_FILES=	modules/est.ko			\
23
PLIST_FILES=	modules/est.ko			\
21
		etc/rc.d/est.sh
24
		etc/rc.d/est.sh
22
25
Lines 27-39 Link Here
27
.endif
30
.endif
28
31
29
post-extract:
32
post-extract:
30
	@${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${FILESDIR}/est.sh	\
33
	${SED}	${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}	\
31
		> ${WRKDIR}/est.sh
34
		${FILESDIR}/est.sh > ${WRKDIR}/est.sh
32
35
33
pre-install:
36
pre-install:
34
	${MKDIR} ${KMODDIR}
37
	${MKDIR} ${KMODDIR}
35
38
36
post-install:
39
post-install:
37
	${INSTALL_SCRIPT} ${WRKDIR}/est.sh ${PREFIX}/etc/rc.d/
40
	${INSTALL_SCRIPT} ${WRKDIR}/est.sh ${PREFIX}/etc/rc.d/est.sh
41
	${CAT} ${PKGMESSAGE}
38
42
39
.include <bsd.port.post.mk>
43
.include <bsd.port.post.mk>
(-)sysutils/est/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (est-0.5.tar.gz) = 9ae866be0144aa0c904279fc8683f650
1
MD5 (est-0.6.tar.gz) = 57cf42fa9d1bf213a25c70e3cf5a2e08
2
SIZE (est-0.5.tar.gz) = 3847
2
SIZE (est-0.6.tar.gz) = 3891
(-)sysutils/est/pkg-message (+5 lines)
Added Link Here
1
To load the Enhanced Speedstep kernel module at boot:
2
	echo 'est_enable="YES"' >> /etc/rc.conf
3
4
To log every change of CPU frequency:
5
	echo 'est_verbose="YES"' >> /etc/rc.conf
(-)sysutils/est/files/est.sh (-16 / +40 lines)
Lines 1-20 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
2
5
3
kmoddir=@@PREFIX@@/modules
6
# PROVIDE: est
4
kmod=est.ko
7
# REQUIRE: abi
8
# BEFORE: securelevel
9
# KEYWORD: FreeBSD
5
10
6
case "$1" in
11
# Define est_* variables in one of these files:
7
start)
12
#	/etc/rc.conf
8
	if [ -x $kmoddir/$kmod ]; then
13
#	/etc/rc.conf.local
9
	    echo -n ' est'
14
#	/etc/rc.conf.d/est
10
	    /sbin/kldload $kmoddir/$kmod
15
#
16
# DO NOT CHANGE THESE DEFAULT VALUES HERE
17
#
18
est_enable="NO"
19
est_verbose="NO"
20
21
. %%RC_SUBR%%
22
23
name="est"
24
rcvar=`set_rcvar`
25
26
start_cmd="est_start"
27
stop_cmd="est_stop"
28
29
load_rc_config $name
30
31
kmoddir="%%PREFIX%%/modules"
32
33
est_start () {
34
	/sbin/kldload ${kmoddir}/est.ko
35
	if checkyesno est_verbose; then
36
		sysctl hw.est_verbose=1
11
	fi
37
	fi
12
	;;
38
}
13
stop)
39
14
	/sbin/kldunload $kmod && echo -n ' est'
40
est_stop () {
15
	;;
41
	/sbin/kldunload $name
16
*)
42
}
17
	echo "Usage: `basename $0` {start|stop}" >&2
43
18
	exit 64
44
run_rc_command "$1"
19
	;;
20
esac

Return to bug 71269