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

(-)Makefile (-13 / +8 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	est
8
PORTNAME=	est
9
PORTVERSION=	0.7.2
9
PORTVERSION=	0.7.2
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
12
MASTER_SITES=	http://www.daemonology.net/freebsd-est/
12
MASTER_SITES=	http://www.daemonology.net/freebsd-est/
13
13
Lines 18-44 Link Here
18
KMODDIR=	${PREFIX}/modules
18
KMODDIR=	${PREFIX}/modules
19
MAKE_ARGS=	KMODDIR="${KMODDIR}"
19
MAKE_ARGS=	KMODDIR="${KMODDIR}"
20
20
21
USE_RC_SUBR=	yes
21
USE_RC_SUBR=	${PORTNAME}
22
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
23
24
PLIST_FILES=	modules/est.ko			\
25
		etc/rc.d/est.sh
26
22
27
.include <bsd.port.pre.mk>
23
.include <bsd.port.pre.mk>
28
24
29
.if ${OSVERSION} > 600015
25
.if ${OSVERSION} > 600015
30
IGNORE=		est now contained in the base system (see cpufreq(4))
26
IGNORE=		is now contained in the base system (see cpufreq(4))
31
.endif
27
.endif
32
28
33
post-extract:
29
.if !exists(${SRC_BASE}/sys/Makefile)
34
	${SED}	${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}	\
30
IGNORE=		needs kernel source files
35
		${FILESDIR}/est.sh > ${WRKDIR}/est.sh
31
.endif
36
32
37
pre-install:
33
pre-install:
38
	${MKDIR} ${KMODDIR}
34
	@${MKDIR} ${KMODDIR}
39
35
40
post-install:
36
post-install:
41
	${INSTALL_SCRIPT} ${WRKDIR}/est.sh ${PREFIX}/etc/rc.d/est.sh
37
	@${CAT} ${PKGMESSAGE}
42
	${CAT} ${PKGMESSAGE}
43
38
44
.include <bsd.port.post.mk>
39
.include <bsd.port.post.mk>
(-)pkg-message (+2 lines)
Lines 1-5 Link Here
1
===============================================================================
1
To load the Enhanced Speedstep kernel module at boot:
2
To load the Enhanced Speedstep kernel module at boot:
2
	echo 'est_enable="YES"' >> /etc/rc.conf
3
	echo 'est_enable="YES"' >> /etc/rc.conf
3
4
4
To log every change of CPU frequency:
5
To log every change of CPU frequency:
5
	echo 'est_verbose="YES"' >> /etc/rc.conf
6
	echo 'est_verbose="YES"' >> /etc/rc.conf
7
===============================================================================
(-)pkg-plist (+3 lines)
Added Link Here
1
modules/est.ko
2
@unexec MOD_FNR=`ls -1 %D/modules |wc -l`; MOD_L=`ls -1 %D/modules |grep linker.hints|wc -l`; if [ "${MOD_FNR}" -eq "${MOD_L}" ]; then rm -rf %D/modules; fi
3
@dirrmtry modules
(-)files/est.in (+43 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/sysutils/est/files/est.sh,v 1.4 2006/02/20 20:47:41 dougb Exp $
4
#
5
6
# PROVIDE: est
7
# REQUIRE: abi
8
# BEFORE: securelevel
9
10
# Define est_* variables in one of these files:
11
#	/etc/rc.conf
12
#	/etc/rc.conf.local
13
#	/etc/rc.conf.d/est
14
#
15
# DO NOT CHANGE THESE DEFAULT VALUES HERE
16
#
17
est_enable="${est_enable-NO}"
18
est_verbose="NO"
19
20
. %%RC_SUBR%%
21
22
name="est"
23
rcvar=`set_rcvar`
24
25
start_cmd="est_start"
26
stop_cmd="est_stop"
27
28
load_rc_config $name
29
30
kmoddir="%%PREFIX%%/modules"
31
32
est_start () {
33
	/sbin/kldload ${kmoddir}/est.ko
34
	if checkyesno est_verbose; then
35
		sysctl hw.est_verbose=1
36
	fi
37
}
38
39
est_stop () {
40
	/sbin/kldunload $name
41
}
42
43
run_rc_command "$1"
(-)files/est.sh (-43 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/sysutils/est/files/est.sh,v 1.4 2006/02/20 20:47:41 dougb Exp $
4
#
5
6
# PROVIDE: est
7
# REQUIRE: abi
8
# BEFORE: securelevel
9
10
# Define est_* variables in one of these files:
11
#	/etc/rc.conf
12
#	/etc/rc.conf.local
13
#	/etc/rc.conf.d/est
14
#
15
# DO NOT CHANGE THESE DEFAULT VALUES HERE
16
#
17
est_enable="${est_enable-NO}"
18
est_verbose="NO"
19
20
. %%RC_SUBR%%
21
22
name="est"
23
rcvar=`set_rcvar`
24
25
start_cmd="est_start"
26
stop_cmd="est_stop"
27
28
load_rc_config $name
29
30
kmoddir="%%PREFIX%%/modules"
31
32
est_start () {
33
	/sbin/kldload ${kmoddir}/est.ko
34
	if checkyesno est_verbose; then
35
		sysctl hw.est_verbose=1
36
	fi
37
}
38
39
est_stop () {
40
	/sbin/kldunload $name
41
}
42
43
run_rc_command "$1"

Return to bug 93985