Date: Fri, 22 Aug 2003 17:13:04 +0200 (CEST) From: carl@servicefactory.se To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/56035: New port: Toshctl, a command-line tool to access parts of the Toshiba hardware interface Message-ID: <200308221513.h7MFD4iM011321@servicefactory.se> Resent-Message-ID: <200308271310.h7RDACDC075310@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 56035 >Category: ports >Synopsis: New port: Toshctl, a command-line tool to access parts of the Toshiba hardware interface >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 27 06:10:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Carl Moberg >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD laptop.servicefactory.se 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Sun Jul 6 13:54:13 CEST 2003 root@laptop.servicefactory.se:/usr/src/sys/i386/compile/CALLE i386 >Description: A command-line tool to access parts of the Toshiba hardware interface >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # toshctl # toshctl/files # toshctl/files/patch-tosh_hci.h # toshctl/files/patch-tosh_hci.cpp # toshctl/files/patch-tosh_bios.cpp # toshctl/files/patch-Makefile # toshctl/pkg-descr # toshctl/distinfo # toshctl/pkg-plist # toshctl/Makefile # echo c - toshctl mkdir -p toshctl > /dev/null 2>&1 echo c - toshctl/files mkdir -p toshctl/files > /dev/null 2>&1 echo x - toshctl/files/patch-tosh_hci.h sed 's/^X//' >toshctl/files/patch-tosh_hci.h << 'END-of-toshctl/files/patch-tosh_hci.h' X--- tosh_hci.h.orig Fri Aug 22 14:38:35 2003 X+++ tosh_hci.h Fri Aug 22 14:39:01 2003 X@@ -80,9 +80,9 @@ X unsigned ecx,unsigned edx) throw(); X X static unsigned hci_read(HCI_FUNCTION fn,unsigned ecx,unsigned edx) X- throw(runtime_error); X+ throw(std::runtime_error); X static void hci_write(HCI_FUNCTION fn,unsigned ecx,unsigned edx) X- throw(runtime_error); X+ throw(std::runtime_error); X protected: X typedef std::pair<unsigned,std::string> VAR_INFO; X END-of-toshctl/files/patch-tosh_hci.h echo x - toshctl/files/patch-tosh_hci.cpp sed 's/^X//' >toshctl/files/patch-tosh_hci.cpp << 'END-of-toshctl/files/patch-tosh_hci.cpp' X--- tosh_hci.cpp.orig Fri Aug 22 14:39:43 2003 X+++ tosh_hci.cpp Fri Aug 22 14:40:01 2003 X@@ -132,7 +132,7 @@ X X unsigned X CToshHCIVar::hci_read(HCI_FUNCTION fn,unsigned ecx,unsigned edx) X- throw (runtime_error) X+ throw (std::runtime_error) X { X unsigned result; X X@@ -144,7 +144,7 @@ X X void X CToshHCIVar::hci_write(HCI_FUNCTION fn,unsigned ecx,unsigned edx) X- throw (runtime_error) X+ throw (std::runtime_error) X { X unsigned result; X END-of-toshctl/files/patch-tosh_hci.cpp echo x - toshctl/files/patch-tosh_bios.cpp sed 's/^X//' >toshctl/files/patch-tosh_bios.cpp << 'END-of-toshctl/files/patch-tosh_bios.cpp' X--- tosh_bios.cpp.orig Fri Aug 22 16:03:37 2003 X+++ tosh_bios.cpp Fri Aug 22 16:03:50 2003 X@@ -130,7 +130,7 @@ X bios_time.tm_mday = str2int(&mem[0xFFFF8],2); X time_t t = mktime(&bios_time); X X- snprintf(buf,32,"%ld",t); X+ snprintf(buf,32,"%d",t); X s = "20";s += mem[0xFFFFB];s += mem[0xFFFFC];s += '-'; X s += mem[0xFFFF5]; s+= mem[0xFFFF6];s+= '-'; X s += mem[0xFFFF8]; s+= mem[0xFFFF9]; END-of-toshctl/files/patch-tosh_bios.cpp echo x - toshctl/files/patch-Makefile sed 's/^X//' >toshctl/files/patch-Makefile << 'END-of-toshctl/files/patch-Makefile' X--- Makefile.orig Thu Mar 20 02:19:07 2003 X+++ Makefile Fri Aug 22 16:11:21 2003 X@@ -34,5 +34,8 @@ X $(PROGRAM):$(OBJS) X $(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJS) X X+install: X+ ${INSTALL} ${PROGRAM} ${LOCALBASE}/bin X+ X clean: X rm -f *.o *.bak $(PROGRAM) END-of-toshctl/files/patch-Makefile echo x - toshctl/pkg-descr sed 's/^X//' >toshctl/pkg-descr << 'END-of-toshctl/pkg-descr' XToshctl is a command-line tool to allow access to much of the XToshiba hardware interface developed by Jonathan Buzzard and XLinux toshset by Charles D. Schwieters. X XIt can do things linke set the LCD brightness, set CPU speed and set Xfan speed. X XWWW: http://freebie.miraclenet.co.th/notebook/toshctl/ END-of-toshctl/pkg-descr echo x - toshctl/distinfo sed 's/^X//' >toshctl/distinfo << 'END-of-toshctl/distinfo' XMD5 (toshctl-0.0.0p2.tgz) = 619f3c42160ee7a4cbd01126c710cbd4 END-of-toshctl/distinfo echo x - toshctl/pkg-plist sed 's/^X//' >toshctl/pkg-plist << 'END-of-toshctl/pkg-plist' Xbin/toshctl END-of-toshctl/pkg-plist echo x - toshctl/Makefile sed 's/^X//' >toshctl/Makefile << 'END-of-toshctl/Makefile' X# New ports collection makefile for: toshctl X# Date created: 22 September 2003 X# Whom: XXX X# X# $FreeBSD$ X# X XPORTNAME= toshctl XPORTVERSION= 0.0.0p2 XCATEGORIES= sysutils XMASTER_SITES= http://freebie.miraclenet.co.th/notebook/toshctl/ XEXTRACT_SUFX= .tgz X XMAINTAINER= carl@servicefactory.se XCOMMENT= A command-line tool to access parts of the Toshiba hardware interface X XWRKSRC= ${WRKDIR}/toshctl X X.include <bsd.port.mk> END-of-toshctl/Makefile exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308221513.h7MFD4iM011321>