diff options
author | Antonio Hernández Blas <hba.nihilismus@gmail.com> | 2010-05-11 22:55:16 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:55:16 +0200 |
commit | 565d7cfb6e1213ecf755c36556978c436bf2f9c9 (patch) | |
tree | 49b6d45fb0d31e46baf09f0d93259639edff5a02 | |
parent | 737b3139faff1e88f626c2993eac297b79bfa4a6 (diff) |
system/fglrx-module: Added to 12.1 repository
-rw-r--r-- | system/fglrx-module/README | 16 | ||||
-rw-r--r-- | system/fglrx-module/doinst.sh | 1 | ||||
-rw-r--r-- | system/fglrx-module/fglrx-module.SlackBuild | 73 | ||||
-rw-r--r-- | system/fglrx-module/fglrx-module.info | 8 | ||||
-rw-r--r-- | system/fglrx-module/slack-desc | 19 |
5 files changed, 117 insertions, 0 deletions
diff --git a/system/fglrx-module/README b/system/fglrx-module/README new file mode 100644 index 0000000000000..38a8e0efce70b --- /dev/null +++ b/system/fglrx-module/README @@ -0,0 +1,16 @@ +fglrx-module (The module of kernel for the ATI proprietary driver) + +This package includes only the kernel module required by the +ATI proprietary driver. + +You need also the package for X server (fglrx-driver) to complete +the installation. You can find a SlackBuild for it at SlackBuilds.org. + +Add the following to /etc/rc.d/rc.modules or an equivalent file: + # Load fglrx modules + modprobe fglrx + +You must rebuild this package each time you update your kernel + +Also, if you upgrade this package(and fglrx-driver) remember to unload +the fglrx module(# modprobe -r fglrx) and load it again(# modprobe fglrx). diff --git a/system/fglrx-module/doinst.sh b/system/fglrx-module/doinst.sh new file mode 100644 index 0000000000000..f66031671284d --- /dev/null +++ b/system/fglrx-module/doinst.sh @@ -0,0 +1 @@ +chroot . /sbin/depmod -a diff --git a/system/fglrx-module/fglrx-module.SlackBuild b/system/fglrx-module/fglrx-module.SlackBuild new file mode 100644 index 0000000000000..664ac408ffac3 --- /dev/null +++ b/system/fglrx-module/fglrx-module.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/sh + +# Slackware build script for fglrx-module + +# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1.- Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# This script is just a binary repackaging. + +PRGNAM=fglrx-module +VERSION=8.512 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +# This doesn't seem to be tunable, but patches are welcome +KERNEL=${KERNEL:-$(uname -r)} + +# Leave this one alone +PKG_VERSION=${VERSION}_$(echo $KERNEL | tr - _) + +SRCNAM=ati-driver-installer-8-7-x86.x86_64.run +ATI_PKG=fglrx-module-$VERSION-x86-1_kernel_$(echo $KERNEL | tr - _).tgz + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $PKG +sh $CWD/$SRCNAM --buildpkg Slackware/Only_Module || exit 1 +explodepkg $PKG/$ATI_PKG +rm $PKG/$ATI_PKG +chown -R root:root . + +# Move the module into a corect place +mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video +mv $PKG/lib/modules/$KERNEL/external/fglrx.ko.gz \ + $PKG/lib/modules/$KERNEL/kernel/drivers/video/fglrx.ko.gz +rmdir $PKG/lib/modules/$KERNEL/external + +# Uncompress the module +gzip -d $PKG/lib/modules/$KERNEL/kernel/drivers/video/fglrx.ko.gz + +mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKG_VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/system/fglrx-module/fglrx-module.info b/system/fglrx-module/fglrx-module.info new file mode 100644 index 0000000000000..a8a689b739a80 --- /dev/null +++ b/system/fglrx-module/fglrx-module.info @@ -0,0 +1,8 @@ +PRGNAM="fglrx-module" +VERSION="8.512" +HOMEPAGE="http://ati.amd.com/support/drivers/linux/linux-radeon.html" +DOWNLOAD="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8-7-x86.x86_64.run" +MD5SUM="2d0788eaba71abcce6105ee659406721" +MAINTAINER="Antonio Hernández Blas" +EMAIL="hba.nihilismus@gmail.com" +APPROVED="David Somero"
\ No newline at end of file diff --git a/system/fglrx-module/slack-desc b/system/fglrx-module/slack-desc new file mode 100644 index 0000000000000..9f410af9088b1 --- /dev/null +++ b/system/fglrx-module/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------| +fglrx-module: fglrx-module (kernel module for the ATI proprietary driver) +fglrx-module: +fglrx-module: This package include only the kernel module required by the +fglrx-module: ATI proprietary driver. You also need the fglrx-driver package +fglrx-module: to complete the installation. +fglrx-module: +fglrx-module: Homepage: http://ati.amd.com +fglrx-module: +fglrx-module: +fglrx-module: +fglrx-module: |