summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/radeontool/DESCR2
-rw-r--r--sysutils/radeontool/Makefile18
-rw-r--r--sysutils/radeontool/PLIST2
-rw-r--r--sysutils/radeontool/distinfo5
-rw-r--r--sysutils/radeontool/patches/patch-aa39
5 files changed, 66 insertions, 0 deletions
diff --git a/sysutils/radeontool/DESCR b/sysutils/radeontool/DESCR
new file mode 100644
index 00000000000..7d987c52345
--- /dev/null
+++ b/sysutils/radeontool/DESCR
@@ -0,0 +1,2 @@
+Radeontool can turn off and on the backlight and external video output.
+Radeontool requires lspci.
diff --git a/sysutils/radeontool/Makefile b/sysutils/radeontool/Makefile
new file mode 100644
index 00000000000..405c0660ae4
--- /dev/null
+++ b/sysutils/radeontool/Makefile
@@ -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
+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 --git a/sysutils/radeontool/PLIST b/sysutils/radeontool/PLIST
new file mode 100644
index 00000000000..b0e64890362
--- /dev/null
+++ b/sysutils/radeontool/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $
+sbin/radeontool
diff --git a/sysutils/radeontool/distinfo b/sysutils/radeontool/distinfo
new file mode 100644
index 00000000000..505849fc57e
--- /dev/null
+++ b/sysutils/radeontool/distinfo
@@ -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 --git a/sysutils/radeontool/patches/patch-aa b/sysutils/radeontool/patches/patch-aa
new file mode 100644
index 00000000000..d536873f1c6
--- /dev/null
+++ b/sysutils/radeontool/patches/patch-aa
@@ -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;
+ }
+ };