FreeBSD Bugzilla – Attachment 46213 Details for
Bug 71007
[NEW PORT] sysutils/est
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
est.shar
est.shar (text/plain), 3.37 KB, created by
Colin Percival
on 2004-08-26 23:30:29 UTC
(
hide
)
Description:
est.shar
Filename:
MIME Type:
Creator:
Colin Percival
Created:
2004-08-26 23:30:29 UTC
Size:
3.37 KB
patch
obsolete
># 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: ># ># sysutils/est ># sysutils/est/pkg-descr ># sysutils/est/distinfo ># sysutils/est/Makefile ># sysutils/est/files ># sysutils/est/files/est.sh ># sysutils/est/files/est.c.diff.fbsd4 ># >echo c - sysutils/est >mkdir -p sysutils/est > /dev/null 2>&1 >echo x - sysutils/est/pkg-descr >sed 's/^X//' >sysutils/est/pkg-descr << 'END-of-sysutils/est/pkg-descr' >XThis is a driver for the Enhanced SpeedStep feature in Intel Pentium M >Xprocessors. >X >XWWW: http://www.daemonology.net/freebsd-est/ >X >X- Colin Percival >Xcperciva@daemonology.net >END-of-sysutils/est/pkg-descr >echo x - sysutils/est/distinfo >sed 's/^X//' >sysutils/est/distinfo << 'END-of-sysutils/est/distinfo' >XMD5 (est-0.5.tar.gz) = 9ae866be0144aa0c904279fc8683f650 >XSIZE (est-0.5.tar.gz) = 3847 >END-of-sysutils/est/distinfo >echo x - sysutils/est/Makefile >sed 's/^X//' >sysutils/est/Makefile << 'END-of-sysutils/est/Makefile' >X# New ports collection makefile for: Enhanced SpeedStep driver >X# Date created: 21 August 2004 >X# Whom: cperciva@daemonology.net >X# >X# $FreeBSD$ >X# >X >XPORTNAME= est >XPORTVERSION= 0.5 >XCATEGORIES= sysutils >XMASTER_SITES= http://www.daemonology.net/freebsd-est/ >X >XMAINTAINER= cperciva@daemonology.net >XCOMMENT= Enhanced SpeedStep driver for Pentium M processors >X >XONLY_FOR_ARCHS= i386 >XKMODDIR= ${PREFIX}/modules >XMAKE_ARGS= KMODDIR="${KMODDIR}" >X >XPLIST_FILES= modules/est.ko \ >X etc/rc.d/est.sh >X >X.include <bsd.port.pre.mk> >X >X.if ${OSVERSION} < 500023 >XEXTRA_PATCHES= ${FILESDIR}/est.c.diff.fbsd4 >X.endif >X >Xpost-extract: >X @${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${FILESDIR}/est.sh \ >X > ${WRKDIR}/est.sh >X >Xpre-install: >X ${MKDIR} ${KMODDIR} >X >Xpost-install: >X ${INSTALL_SCRIPT} ${WRKDIR}/est.sh ${PREFIX}/etc/rc.d/ >X >X.include <bsd.port.post.mk> >END-of-sysutils/est/Makefile >echo c - sysutils/est/files >mkdir -p sysutils/est/files > /dev/null 2>&1 >echo x - sysutils/est/files/est.sh >sed 's/^X//' >sysutils/est/files/est.sh << 'END-of-sysutils/est/files/est.sh' >X#!/bin/sh >X >Xkmoddir=@@PREFIX@@/modules >Xkmod=est.ko >X >Xcase "$1" in >Xstart) >X if [ -x $kmoddir/$kmod ]; then >X echo -n ' est' >X /sbin/kldload $kmoddir/$kmod >X fi >X ;; >Xstop) >X /sbin/kldunload $kmod && echo -n ' est' >X ;; >X*) >X echo "Usage: `basename $0` {start|stop}" >&2 >X exit 64 >X ;; >Xesac >END-of-sysutils/est/files/est.sh >echo x - sysutils/est/files/est.c.diff.fbsd4 >sed 's/^X//' >sysutils/est/files/est.c.diff.fbsd4 << 'END-of-sysutils/est/files/est.c.diff.fbsd4' >X--- est.c.orig Thu Aug 26 22:51:42 2004 >X+++ est.c Thu Aug 26 22:53:59 2004 >X@@ -33,7 +33,7 @@ >X #include <sys/sysctl.h> >X #include <sys/module.h> >X #include <sys/kernel.h> >X-#include <sys/pcpu.h> >X+#include <sys/proc.h> >X >X typedef struct { >X int mhz; >X@@ -566,13 +566,13 @@ >X >X switch (what) { >X case MOD_LOAD: >X- err = kernel_sysctlbyname(curthread, "hw.model", hwmodel, >X+ err = kernel_sysctlbyname(curproc, "hw.model", hwmodel, >X &modellen, NULL, 0, NULL); >X if (err) >X return err; >X >X ncpulen = sizeof(ncpu); >X- err = kernel_sysctlbyname(curthread, "hw.ncpu", &ncpu, >X+ err = kernel_sysctlbyname(curproc, "hw.ncpu", &ncpu, >X &ncpulen, NULL, 0, NULL); >X if (err) >X return err; >END-of-sysutils/est/files/est.c.diff.fbsd4 >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 71007
: 46213