diff options
author | jlam <jlam@pkgsrc.org> | 2000-01-05 18:02:18 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-01-05 18:02:18 +0000 |
commit | 86cf8e7d6fa5dba6c8c5d309c66915552bd48dbc (patch) | |
tree | 5e89b9719faacafcd2af4d9667633ba73f93b2ee /sysutils/aperture | |
parent | c76cd127e187f7d38d4eafde7d1a198b61190503 (diff) | |
download | pkgsrc-86cf8e7d6fa5dba6c8c5d309c66915552bd48dbc.tar.gz |
XFree86 Framebuffer "aperture" driver for NetBSD
Diffstat (limited to 'sysutils/aperture')
-rw-r--r-- | sysutils/aperture/Makefile | 38 | ||||
-rw-r--r-- | sysutils/aperture/files/md5 | 3 | ||||
-rw-r--r-- | sysutils/aperture/files/patch-sum | 4 | ||||
-rw-r--r-- | sysutils/aperture/patches/patch-aa | 13 | ||||
-rw-r--r-- | sysutils/aperture/patches/patch-ab | 15 | ||||
-rw-r--r-- | sysutils/aperture/pkg/COMMENT | 1 | ||||
-rw-r--r-- | sysutils/aperture/pkg/DESCR | 16 | ||||
-rw-r--r-- | sysutils/aperture/pkg/INSTALL | 28 | ||||
-rw-r--r-- | sysutils/aperture/pkg/PLIST | 12 |
9 files changed, 130 insertions, 0 deletions
diff --git a/sysutils/aperture/Makefile b/sysutils/aperture/Makefile new file mode 100644 index 00000000000..46c984b8d14 --- /dev/null +++ b/sysutils/aperture/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/01/05 18:02:18 jlam Exp $ + +DISTNAME= apNetBSD +PKGNAME= aperture-2.0 +CATEGORIES= sysutils x11 +MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/xsrc/xc/programs/Xserver/hw/xfree86/etc/ +EXTRACT_SUFX= .shar + +MAINTAINER= packages@netbsd.org + +EXTRACT_CMD= ${SH} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} +ALL_TARGET= cleandir depend all +INSTALL_TARGET= dirs includes install +NO_WRKSUBDIR= yes +NO_CONFIGURE= yes + +ONLY_FOR_PLATFORM= NetBSD-*-i386 + +.BEGIN: + @if [ ! -f /sys/lib/libkern/libkern.h ]; then \ + ${ECHO_MSG} "==================================================="; \ + ${ECHO_MSG} " Kernel sources are required to build LKMs."; \ + ${ECHO_MSG} " Please fetch them and make a link from /sys"; \ + ${ECHO_MSG} " to the kernel source directory (typically"; \ + ${ECHO_MSG} " /usr/src/sys)."; \ + ${ECHO_MSG}; \ + ${ECHO_MSG} " Information for fetching kernel sources may be"; \ + ${ECHO_MSG} " found at the following URL:"; \ + ${ECHO_MSG}; \ + ${ECHO_MSG} " http://www.netbsd.org/Documentation/"; \ + ${ECHO_MSG} "==================================================="; \ + ${FALSE}; \ + fi + +.include "../../mk/bsd.pkg.mk" + +LDFLAGS= # empty since we use BSD-style makefiles + diff --git a/sysutils/aperture/files/md5 b/sysutils/aperture/files/md5 new file mode 100644 index 00000000000..295041606d4 --- /dev/null +++ b/sysutils/aperture/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/01/05 18:02:19 jlam Exp $ + +MD5 (apNetBSD.shar) = 6babfea61ec565c7357d133395e7e0b8 diff --git a/sysutils/aperture/files/patch-sum b/sysutils/aperture/files/patch-sum new file mode 100644 index 00000000000..88aef9c8adf --- /dev/null +++ b/sysutils/aperture/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/01/05 18:02:19 jlam Exp $ + +MD5 (patch-aa) = 2eff82bf1a230de43a83a4cb4c96eba7 +MD5 (patch-ab) = f45a6989db23e6019effe4683898d9c8 diff --git a/sysutils/aperture/patches/patch-aa b/sysutils/aperture/patches/patch-aa new file mode 100644 index 00000000000..20ea7b6a33f --- /dev/null +++ b/sysutils/aperture/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/01/05 18:02:20 jlam Exp $ + +--- Makefile.inc.orig Wed Jan 5 02:34:12 2000 ++++ Makefile.inc Wed Jan 5 02:34:14 2000 +@@ -3,7 +3,7 @@ + # NetBSDApertureDir variable in xc/config/cf/host.def before rebuilding + # the X server + +-APDIR= /usr/local/aperture ++APDIR= ${PREFIX} + + KMODDIR= ${APDIR}/lkm + BINDIR= ${APDIR}/bin diff --git a/sysutils/aperture/patches/patch-ab b/sysutils/aperture/patches/patch-ab new file mode 100644 index 00000000000..5e60e48d078 --- /dev/null +++ b/sysutils/aperture/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/01/05 18:02:20 jlam Exp $ + +--- module/xf86_mod.c.orig Wed Jan 5 11:47:26 2000 ++++ module/xf86_mod.c Wed Jan 5 11:48:24 2000 +@@ -33,8 +33,8 @@ + + MOD_DEV("xf86", LM_DT_CHAR, -1, &newdev) + +-char *xf86_major_version = "1"; +-char *xf86_minor_version = "99b"; ++char *xf86_major_version = "2"; ++char *xf86_minor_version = "0"; + + static int xf86action __P((struct lkm_table *lktmp, int cmd)); + diff --git a/sysutils/aperture/pkg/COMMENT b/sysutils/aperture/pkg/COMMENT new file mode 100644 index 00000000000..fdc33dfe19d --- /dev/null +++ b/sysutils/aperture/pkg/COMMENT @@ -0,0 +1 @@ +XFree86 Framebuffer "aperture" driver for NetBSD diff --git a/sysutils/aperture/pkg/DESCR b/sysutils/aperture/pkg/DESCR new file mode 100644 index 00000000000..58cd39010e5 --- /dev/null +++ b/sysutils/aperture/pkg/DESCR @@ -0,0 +1,16 @@ +This module was originally written to help work around the security +feature of NetBSD that prevents read/write access to /dev/mem. It also +provide Pentium II and AMD K6 MTRR control in order to control +write-combining to the framebuffer memory. + +XFree86 can take advantage of having direct access to video +memory (especially with VLB and PCI cards) and even requires it for +the most recent PCI or AGP video boards. + +This driver works like the standard /dev/mem driver. It just allows +mapping of the VGA framebuffer and BIOS even if kernel security level +is > 0. The driver only implements the open(), close(), ioctl() and +mmap() calls. In order not to defeat kernel security, only one open() +at a time is allowed and only a process with effective user id of 0 can +perform it. So while you're running XFree86, no other process will be +allowed to open /dev/xf86. diff --git a/sysutils/aperture/pkg/INSTALL b/sysutils/aperture/pkg/INSTALL new file mode 100644 index 00000000000..3e1bdfc1926 --- /dev/null +++ b/sysutils/aperture/pkg/INSTALL @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2000/01/05 18:02:19 jlam Exp $ + +case $2 in +PRE-INSTALL) + ;; +POST-INSTALL) + /bin/cat << EOF +=========================================================================== +Add the following line to /etc/lkm.conf: + + ${PKG_PREFIX}/lkm/xf86.o - - ${PKG_PREFIX}/lkm/xf86_mod_install - - + +and set: + + lkm=YES + +in /etc/rc.conf. Then, reboot your system. +=========================================================================== +EOF + ;; +*) + echo "Unexpected argument: $2" + exit 1 + ;; +esac +exit 0 diff --git a/sysutils/aperture/pkg/PLIST b/sysutils/aperture/pkg/PLIST new file mode 100644 index 00000000000..03a4d4e7bc3 --- /dev/null +++ b/sysutils/aperture/pkg/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/01/05 18:02:19 jlam Exp $ +bin/memconfig +bin/xf86test +include/memrange.h +lkm/xf86.o +lkm/xf86_mod_install +@unexec rm -f %D/lkm/xf86 +man/cat4/xf86.0 +man/cat8/memconfig.0 +man/man4/xf86.4 +man/man8/memconfig.8 +@dirrm lkm |