From 1da8833bd35f2bf3812f7c315c096125a3ba21f9 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Mon, 24 Jan 2005 15:07:35 +0000 Subject: Import radeontool-1.5. Radeontool can turn off and on the backlight and external video output. Radeontool requires lspci. --- 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(+) create mode 100644 sysutils/radeontool/DESCR create mode 100644 sysutils/radeontool/Makefile create mode 100644 sysutils/radeontool/PLIST create mode 100644 sysutils/radeontool/distinfo create mode 100644 sysutils/radeontool/patches/patch-aa (limited to 'sysutils') 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 + #include + #include ++#ifdef __NetBSD__ ++#include ++#include ++#else + #include ++#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; + } + }; -- cgit v1.2.3