Summary: Device driver for 3Dfx boards for 2.x kernels Name: Device3Dfx Version: 2.3.4 Release: 7mdk Source: Device3Dfx.tar.bz2 License: GPL Group: System/Kernel and hardware Buildroot: /var/tmp/%{name}-%{version}-root ExclusiveArch: i386 i486 i586 i686 k6 k7 %changelog * Mon May 15 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.3.4-7mdk - ExclusiveArch: i386 i486 i586 i686 k6 k7. * Mon May 15 2000 Warly <warly@mandrakesoft.com> 2.3.4-6mdk - recompile with a 2.2.15-4mdk * Tue Apr 18 2000 Pixel <pixel@mandrakesoft.com> 2.3.4-5mdk - disable silly depmod -a while in install (% post) * Thu Apr 13 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 2.3.4-4mdk - fix invalid distribution tag * Mon Mar 20 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 2.3.4-3mdk - bziped - Mandrakeized - 3dfx team increment the release number even for bugfix, so just use it as a version number. - Check for conf.modules and modules.conf. - Do not use a world writable character device, create a tdfx group... User which want to use the card should be in this group. * Wed Jan 04 2000 Joseph Kain <joseph@3dfx.com> Release 2.3-4 - Forgot to include kinfo.h in 3dfx_driver.c in the last release. This fixes some build problems for SMP kernels. * Wed Dec 22 1999 Joseph Kain <joseph@3dfx.com> Release 2.3-3 - Fixes to the Makefile to stop grepping the header files. Changes to mtrr.c and 3dfx_driver.c to support these Makefile changes. - 3dfx_driver.c now supports 2.3.14+ kernels. * Mon Dec 13 1999 Joseph Kain <joseph@3dfx.com> Release 2.3-2 - Removed depmod -a from the Makefile. This elliminates errors in the build on systems with modules with broken depedancies (Happens on Madrake) - Changed depmod -a to depmod -a > /dev/null in the post and postun to elliminate any warnings/errors with modules that don't have anything to do with Device3Dfx. Warnings scare people. * Tue Nov 09 1999 Joseph Kain <joseph@3dfx.com> Release 2.3: - Made cards static to remove conflict with hisax ISDN driver. - Removed 3dfx.o from the source distribution * Fri Jun 25 1999 Daryll Strauss <daryll@harlot.rb.ca.us> Release 2.2: - Set MTRR for VB/V3 boards - Allow build without kernel sources installed - Code cleanup - Improvements in /etc/conf.modules setup * Sun May 16 1999 Daryll Strauss <daryll@harlot.rb.ca.us> Release 2.1: - Added support for multiple board mappings - Enlarged size of mappings - Changes to support VB/V3 boards * Sun Apr 4 1999 Daryll Strauss <daryll@harlot.rb.ca.us> Release 2.0-1: - This is just a rename of Michael's version to return it to my original naming scheme. - Added the License field to the spec file. * Thu Mar 11 1999 Michael Vance <mkv102@psu.edu> Release 2.5-2: - Fixed for 2.2.3 kernels because of an mmap() update * Fri Oct 30 1998 Carlo Wood <carlo@runaway.xs4all.nl> Release 2.5-1: - Upped source to Dev3Dfx-2.5.tar.gz - Boosted version number of rpm to the version of the tar.gz. Moved everything to the Makefile, so Dev3Dfx-2.5.tar.gz is self containing and will work without rpm too. * Wed Oct 21 1998 Carlo Wood <carlo@runaway.xs4all.nl> Release 1.2-5: - Upped source to Dev3Dfx-2.4.tar.gz - Removed dangerous and confusing use of /lib/modules/preferred - Removed the use of `uname': It now will compile for the kernel version in /usr/src/linux and not be bothered by the running kernel version. * Wed Oct 21 1998 Carlo Wood <carlo@runaway.xs4all.nl> Release 1.2-4: - Upped source to Dev3Dfx-2.3.tar.gz * Mon Oct 19 1998 Carlo Wood <carlo@runaway.xs4all.nl> Release 1.2-3: - Corrected Summary and Description to refer to 2.x rather then 2.1 kernels. - Removed script lines that write an `option' line to /etc/conf.modules. - Upped source to Dev3Dfx-2.2.tar.gz * Sun Oct 18 1998 Carlo Wood <carlo@runaway.xs4all.nl> Release 1.2-2: - Added OPT_CFLAGS stuff. * Sun Oct 18 1998 Carlo Wood <carlo@runaway.xs4all.nl> Release 1.2-1: - Packaged version 1.2 with support for 2.1 kernels by John Taylor and MTRR settings added by Jens Axboe. %description This package installs the 3Dfx device driver to allow access to 3Dfx boards without the user having root privledges. It should work on both 2.0 and 2.1/2.2 kernels and set the MTRR settings correctly. It should also work with SMP kernels (2.1/2.2). %prep %setup -c %build make OPT_CFLAGS="$RPM_OPT_FLAGS" %install #make RPM_INSTALL="1" install | grep '^/lib/modules/' > modules-file-list mkdir -p $RPM_BUILD_ROOT/lib/modules/`uname -r`/misc cp 3dfx.o $RPM_BUILD_ROOT/lib/modules/`uname -r`/misc/3dfx.o if [ -d $RPM_BUILD_ROOT/usr/man ]; then find $RPM_BUILD_ROOT/usr/man -type f -exec bzip2 -9f {} \; fi if [ -d $RPM_BUILD_ROOT/usr/info ]; then find $RPM_BUILD_ROOT/usr/info -type f -exec bzip2 -9f {} \; fi if [ -d $RPM_BUILD_ROOT/usr/X11R6/man ]; then find $RPM_BUILD_ROOT/usr/X11R6/man -type f -exec bzip2 -9f {} \; fi if [ -d $RPM_BUILD_ROOT/usr/lib/perl5/man ]; then find $RPM_BUILD_ROOT/usr/lib/perl5/man -type f -exec bzip2 -9f {} \; fi cd $RPM_BUILD_ROOT echo '%defattr(-,root,root)' > $RPM_BUILD_DIR/file.list.%{name} find . -type d | sed -e '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \ $RPM_BUILD_DIR/file.list.%{name} find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \ -e '/\/etc\//s|^|%config|' \ -e '/\/config\//s|^|%config|' \ >> $RPM_BUILD_DIR/file.list.%{name} find . -type l | sed -e 's,^\.,\%attr(-\,root\,root) ,' >> \ $RPM_BUILD_DIR/file.list.%{name} %pre groupadd tdfx >& /dev/null %post if [ "$1" = 1 ]; then if [ ! -c /dev/3dfx ]; then mknod /dev/3dfx c 107 0 chown root.tdfx /dev/3dfx chmod 660 /dev/3dfx fi if [[ -f /etc/conf.modules ]]; then if ! grep -q 3dfx /etc/conf.modules; then echo alias char-major-107 3dfx >> /etc/conf.modules fi fi if [[ -f /etc/modules.conf ]]; then if ! grep -q 3dfx /etc/modules.conf; then echo alias char-major-107 3dfx >> /etc/modules.conf fi fi fi if [ "$DURING_INSTALL" = "" ]; then /sbin/depmod -a > /dev/null fi %postun if [ "$1" = 0 ]; then if [[ -f /etc/conf.modules ]]; then grep -v 3dfx /etc/conf.modules > /etc/conf.modules.tmp mv /etc/conf.modules.tmp /etc/conf.modules fi if [[ -f /etc/modules.conf ]]; then grep -v 3dfx /etc/modules.conf > /etc/modules.conf.tmp mv /etc/modules.conf.tmp /etc/modules.conf fi if [ -c /dev/3dfx ]; then rm -f /dev/3dfx fi # Delete the 3dfx group. groupdel tdfx >& /dev/null fi /sbin/depmod -a > /dev/null %verifyscript inconf=`grep 'alias char-major-107 3dfx' /etc/conf.modules` if [ "x$inconf" = "x" ]; then echo "3dfx entry not included in /etc/conf.modules" fi #%files -f modules-file-list #%attr (-,root,tdfx) /dev/3dfx %files -f ../file.list.%{name} %clean rm -rf $RPM_BUILD_ROOT file.list.%{name}