Skip site navigation (1)Skip section navigation (2)
Date:      7 Dec 2004 01:03:44 -0000
From:      Colin Percival <cperciva@daemonology.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/74795: [MAINTAINER UPDATE] sysutils/estctrl 0.8
Message-ID:  <20041207010344.12478.qmail@hexahedron.daemonology.net>
Resent-Message-ID: <200412070110.iB71AOks036187@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         74795
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] sysutils/estctrl 0.8
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 01:10:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Colin Percival
>Release:        FreeBSD 5.2.1-SECURITY i386
>Organization:
>Environment:
System: FreeBSD hexahedron.daemonology.net 5.2.1-SECURITY FreeBSD 5.2.1-SECURITY #0: Tue Sep 28 17:27:41 GMT 2004 root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

Update sysutils/estctrl to version 0.8.  This adds support for using
APM to determine the power status[1] and a default behaviour if the
power status cannot be determined[2].

[1] Submitted by Casey Ransom
[2] Submitted by Guido Berhoerster

Note to committer: files/estctrl.c.diff.fbsd4 no longer exists after 
this patch.

--- estctrl.diff begins here ---
diff -ruN sysutils/estctrl/Makefile sysutils/estctrl.new/Makefile
--- sysutils/estctrl/Makefile	Tue Oct 12 10:48:58 2004
+++ sysutils/estctrl.new/Makefile	Thu Nov 11 23:39:32 2004
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	estctrl
-PORTVERSION=	0.7
-PORTREVISION=	1
+PORTVERSION=	0.8
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.daemonology.net/freebsd-est/
 
@@ -26,12 +25,6 @@
 
 MAKE_ENV=	BINDIR=${PREFIX}/sbin
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500101
-EXTRA_PATCHES=	${FILESDIR}/estctrl.c.diff.fbsd4
-.endif
-
 post-extract:
 	${SED}	${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}	\
 		${FILESDIR}/estctrl.sh > ${WRKDIR}/estctrl.sh
@@ -40,4 +33,4 @@
 	${INSTALL_SCRIPT} ${WRKDIR}/estctrl.sh ${PREFIX}/etc/rc.d/estctrl.sh
 	${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN sysutils/estctrl/distinfo sysutils/estctrl.new/distinfo
--- sysutils/estctrl/distinfo	Wed Sep  1 21:16:40 2004
+++ sysutils/estctrl.new/distinfo	Mon Dec  6 16:25:01 2004
@@ -1,2 +1,2 @@
-MD5 (estctrl-0.7.tar.gz) = 03dc1b69dd2ee37638eaba85d04655ba
-SIZE (estctrl-0.7.tar.gz) = 2547
+MD5 (estctrl-0.8.tar.gz) = e177322556aa0a2302d8f3294947c71f
+SIZE (estctrl-0.8.tar.gz) = 2994
diff -ruN sysutils/estctrl/files/estctrl.c.diff.fbsd4 sysutils/estctrl.new/files/estctrl.c.diff.fbsd4
--- sysutils/estctrl/files/estctrl.c.diff.fbsd4	Tue Oct 12 10:48:58 2004
+++ sysutils/estctrl.new/files/estctrl.c.diff.fbsd4	Wed Dec 31 16:00:00 1969
@@ -1,11 +0,0 @@
---- estctrl.c.orig	Tue Oct 12 17:46:13 2004
-+++ estctrl.c	Tue Oct 12 17:46:21 2004
-@@ -28,7 +28,7 @@
-  */
- 
- #include <sys/types.h>
--#include <sys/resource.h>
-+#include <sys/dkstat.h>
- #include <sys/sysctl.h>
- 
- #include<err.h>
diff -ruN sysutils/estctrl/files/estctrl.sh sysutils/estctrl.new/files/estctrl.sh
--- sysutils/estctrl/files/estctrl.sh	Wed Sep  1 21:16:40 2004
+++ sysutils/estctrl.new/files/estctrl.sh	Mon Dec  6 16:26:24 2004
@@ -17,6 +17,7 @@
 estctrl_enable="NO"
 estctrl_speed_ac="adaptive"
 estctrl_speed_battery="adaptive"
+estctrl_speed_default="adaptive"
 
 . %%RC_SUBR%%
 
@@ -26,6 +27,9 @@
 load_rc_config $name
 
 command="%%PREFIX%%/sbin/estctrl"
-command_args="-a ${estctrl_speed_ac} -b ${estctrl_speed_battery} &"
+command_args="-a ${estctrl_speed_ac}"
+command_args="${command_args} -b ${estctrl_speed_battery}"
+command_args="${command_args} -d ${estctrl_speed_default}"
+command_args="${command_args &"
 
 run_rc_command "$1"
--- estctrl.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041207010344.12478.qmail>