pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/radeontool Import radeontool-1.5.
details: https://anonhg.NetBSD.org/pkgsrc/rev/f3e72683e160
branches: trunk
changeset: 488055:f3e72683e160
user: jmcneill <jmcneill%pkgsrc.org@localhost>
date: Mon Jan 24 15:07:35 2005 +0000
description:
Import radeontool-1.5.
Radeontool can turn off and on the backlight and external video output.
Radeontool requires lspci.
diffstat:
sysutils/radeontool/DESCR | 2 +
sysutils/radeontool/Makefile | 18 ++++++++++++++++
sysutils/radeontool/PLIST | 2 +
sysutils/radeontool/distinfo | 5 ++++
sysutils/radeontool/patches/patch-aa | 39 ++++++++++++++++++++++++++++++++++++
5 files changed, 66 insertions(+), 0 deletions(-)
diffs (86 lines):
diff -r 29dec0c1790a -r f3e72683e160 sysutils/radeontool/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/radeontool/DESCR Mon Jan 24 15:07:35 2005 +0000
@@ -0,0 +1,2 @@
+Radeontool can turn off and on the backlight and external video output.
+Radeontool requires lspci.
diff -r 29dec0c1790a -r f3e72683e160 sysutils/radeontool/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/radeontool/Makefile Mon Jan 24 15:07:35 2005 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $
+
+DISTNAME= radeontool-1.5
+CATEGORIES= sysutils
+MASTER_SITES= http://fdd.com/software/radeon/
+
+MAINTAINER= jmcneill%NetBSD.org@localhost
+HOMEPAGE= http://fdd.com/software/radeon/
+COMMENT= Toggle backlight and external video output on Radeon cards
+
+USE_BUILDLINK3= yes
+BUILD_TARGET= radeontool
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/radeontool ${PREFIX}/sbin
+
+.include "../../sysutils/pciutils/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 29dec0c1790a -r f3e72683e160 sysutils/radeontool/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/radeontool/PLIST Mon Jan 24 15:07:35 2005 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $
+sbin/radeontool
diff -r 29dec0c1790a -r f3e72683e160 sysutils/radeontool/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/radeontool/distinfo Mon Jan 24 15:07:35 2005 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $
+
+SHA1 (radeontool-1.5.tar.gz) = bd9096d5b18b31a1f1addbea80e6debfc707abf6
+Size (radeontool-1.5.tar.gz) = 20869 bytes
+SHA1 (patch-aa) = 396554a81082c9d326f5b2bbc2aa7fd4585fd91e
diff -r 29dec0c1790a -r f3e72683e160 sysutils/radeontool/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/radeontool/patches/patch-aa Mon Jan 24 15:07:35 2005 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $
+--- radeontool.c.orig 2005-01-24 10:39:22.000000000 -0400
++++ radeontool.c 2005-01-24 10:41:49.000000000 -0400
+@@ -21,7 +21,12 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <sys/mman.h>
++#ifdef __NetBSD__
++#include <sys/lock.h>
++#include <machine/vmparam.h>
++#else
+ #include <asm/page.h>
++#endif
+
+ #include "radeon_reg.h"
+
+@@ -251,7 +256,6 @@
+ } else if(forkrc == 0) { /* if child */
+ close(pipefd[0]);
+ dup2(pipefd[1],1); /* stdout */
+- setenv("PATH","/sbin:/usr/sbin:/bin:/usr/bin",1);
+ execlp("lspci","lspci","-v",NULL);
+ fatal("exec lspci failure\n");
+ }
+@@ -307,7 +311,13 @@
+ }
+ if(debug)
+ printf("%s",line);
+- if(strstr(line,"emory") && strstr(line,"K")) { /* if line contains a "Memory" and "K" string */
++ if(strstr(line,"emory") &&
++#ifdef __NetBSD__
++ strstr(line,"non-prefetch"))
++#else
++ strstr(line,"K"))
++#endif
++ { /* if line contains a "Memory" and "K" string */
+ break;
+ }
+ };
Home |
Main Index |
Thread Index |
Old Index