Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

15
sysutils/estd/DESCR Normal file
View File

@@ -0,0 +1,15 @@
The estd daemon dynamically sets the CPU-frequency on SpeedStep-,
PowerNow-, and ACPI P-States-enabled CPUs depending on current cpu-utilization.
It is written for systems running NetBSD or DragonFly.
Examples:
Maximize battery lifetime by limiting CPU-frequency to 1000 MHz and
switching to lower speeds fast:
estd -d -b -M 1000
Maximize performance by running at least at 1400MHz and switching to
higher speeds real fast:
estd -d -a -m 1400

30
sysutils/estd/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.21 2012/12/12 10:44:11 wiz Exp $
DISTNAME= estd-r7
PKGNAME= estd-0.7
CATEGORIES= sysutils
MASTER_SITES= http://www.ecademix.com/JohannesHofmann/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.ecademix.com/JohannesHofmann/estd.html
COMMENT= Dynamically sets the CPU-frequency on SpeedStep and PowerNow CPUs
LICENSE= 2-clause-bsd
INSTALLATION_DIRS= share/examples/rc.d
ONLY_FOR_PLATFORM= NetBSD-2.99.*-i386 NetBSD-[3-9]*-i386 \
NetBSD-[4-9]*-x86_64 DragonFly-*-i386 \
NetBSD-5.99.*-powerpc \
NetBSD-5.99.*-mips64el
RCD_SCRIPTS= estd
RCD_SCRIPT_SRC.estd= ${WRKSRC}/estd.sh
SUBST_CLASSES+= rcd
SUBST_STAGE.rcd= do-configure
SUBST_MESSAGE.rcd= Fixing startup script.
SUBST_FILES.rcd= estd.sh
SUBST_SED.rcd= -e 's|@PREFIX@|${PREFIX}|'
SUBST_SED.rcd+= -e 's|@ECHO@|${ECHO}|'
.include "../../mk/bsd.pkg.mk"

4
sysutils/estd/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.3 2006/07/24 08:11:38 adam Exp $
man/man1/estd.1
sbin/estd
share/examples/rc.d/estd

7
sysutils/estd/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.14 2011/12/14 21:44:32 macallan Exp $
SHA1 (estd-r7.tar.gz) = 41186b82fe2a71a4436e01805522b60d100f84d4
RMD160 (estd-r7.tar.gz) = c91dad3c74ef099d54e546ac0cdf7a4a29c4a4f3
Size (estd-r7.tar.gz) = 8712 bytes
SHA1 (patch-aa) = 539b1bdcfab5815edec76277ee1be9fa9c762323
SHA1 (patch-ab) = f0df22cee99f5750875cbbd2e050cc0302ac0348

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-aa,v 1.7 2011/03/16 05:09:16 macallan Exp $
--- Makefile.orig 2007-12-15 15:51:02.000000000 +0000
+++ Makefile
@@ -19,7 +19,8 @@ estd: estd.c
all: estd
install: all
- install -d -o root -g wheel -m 0755 /usr/local/sbin
- install -s -o root -g wheel -m 0755 estd /usr/local/sbin/estd
- install -d -o root -g wheel -m 0755 /usr/local/man/man1
- install -o root -g wheel -m 0644 estd.1 /usr/local/man/man1/estd.1
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
+ ${BSD_INSTALL_PROGRAM} estd ${DESTDIR}${PREFIX}/sbin/estd
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${BSD_INSTALL_MAN} estd.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/estd.1
+ ${BSD_INSTALL_SCRIPT} estd.sh ${DESTDIR}${PREFIX}/share/examples/rc.d/estd

View File

@@ -0,0 +1,62 @@
$NetBSD: patch-ab,v 1.8 2011/12/14 21:44:32 macallan Exp $
--- estd.c.orig 2009-10-20 16:18:28.000000000 +0000
+++ estd.c
@@ -55,7 +55,9 @@
#define TECH_EST 1
#define TECH_POWERNOW 2
#define TECH_ACPI 3
-#define TECH_MAX 3
+#define TECH_INTREPID 4
+#define TECH_LOONGSON 5
+#define TECH_MAX 5
/* this is ugly, but... <shrug> */
#define MAX_FREQS 32
@@ -116,20 +118,26 @@ int ndomains;
static size_t cp_time_size = sizeof(cp_time[0]) * CPUSTATES;
#endif
-static char *techdesc[4] = {"Unknown",
+static char *techdesc[6] = {"Unknown",
"Enhanced SpeedStep",
"PowerNow",
- "ACPI P-States"
+ "ACPI P-States",
+ "Intrepid",
+ "Loongson"
};
-static char *freqctl[4] = { "",
+static char *freqctl[6] = { "",
"machdep.est.frequency.available",
"machdep.powernow.frequency.available",
- "hw.acpi.cpu.px_dom0.available"
+ "hw.acpi.cpu.px_dom0.available",
+ "machdep.intrepid.frequency.available",
+ "machdep.loongson.frequency.available"
};
-static char *setctl[4] = { "",
+static char *setctl[6] = { "",
"machdep.est.frequency.target",
"machdep.powernow.frequency.target",
- "hw.acpi.cpu.px_dom0.select"
+ "hw.acpi.cpu.px_dom0.select",
+ "machdep.intrepid.frequency.target",
+ "machdep.loongson.frequency.target"
};
void
@@ -400,6 +408,13 @@ main(int argc, char *argv[])
break;
case 'P':
tech = TECH_POWERNOW;
+ break;
+ case 'I':
+ tech = TECH_INTREPID;
+ break;
+ case 'L':
+ tech = TECH_LOONGSON;
+ break;
case 'a':
strategy = AGGRESSIVE;
break;