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

View File

@@ -0,0 +1,2 @@
Radeontool can turn off and on the backlight and external video output.
Radeontool requires lspci.

View File

@@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.9 2012/10/23 19:51:21 asau Exp $
DISTNAME= radeontool-1.5
PKGREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= http://fdd.com/software/radeon/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://fdd.com/software/radeon/
COMMENT= Toggle backlight and external video output on Radeon cards
BUILD_TARGET= radeontool
INSTALLATION_DIRS= sbin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/radeontool ${DESTDIR}${PREFIX}/sbin
.include "../../sysutils/pciutils/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $
sbin/radeontool

View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.6 2008/12/30 20:25:54 hasso Exp $
SHA1 (radeontool-1.5.tar.gz) = bd9096d5b18b31a1f1addbea80e6debfc707abf6
RMD160 (radeontool-1.5.tar.gz) = 1cdeeb7ad379afa7bc03e1cd79adbb09f6a9cb85
Size (radeontool-1.5.tar.gz) = 20869 bytes
SHA1 (patch-aa) = b2b765131bfcb22eb0e5082d529fb0f01644a9a3

View File

@@ -0,0 +1,55 @@
$NetBSD: patch-aa,v 1.4 2008/12/30 20:25:54 hasso Exp $
--- radeontool.c.orig 2004-02-11 05:50:27 +0200
+++ radeontool.c 2008-12-30 21:47:53 +0200
@@ -21,7 +21,19 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
+#ifdef __NetBSD__
+#include <sys/param.h>
+#if __NetBSD_Prereq__(4,99,32)
+#include <sys/mutex.h>
+#else
+#include <sys/lock.h>
+#endif
+#include <machine/vmparam.h>
+#elif defined(__DragonFly__)
+#include <sys/param.h>
+#else /* ! __NetBSD__ */
#include <asm/page.h>
+#endif
#include "radeon_reg.h"
@@ -107,7 +119,7 @@ static unsigned char * map_devince_memor
mem_fd,
base
);
- if ((long)device_mem < 0) {
+ if (device_mem == MAP_FAILED) {
if(debug)
fprintf(stderr,"mmap returned %d\n",(int)device_mem);
fatal("mmap error \n");
@@ -251,7 +263,6 @@ static void map_radeon_cntl_mem(void)
} 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 +318,13 @@ We need to look through it to find the s
}
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;
}
};