system/fglrx-module: Added to 12.1 repository

This commit is contained in:
Antonio Hernández Blas 2010-05-11 22:55:16 +02:00 committed by David Somero
parent 737b3139fa
commit 565d7cfb6e
5 changed files with 117 additions and 0 deletions

View File

@ -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).

View File

@ -0,0 +1 @@
chroot . /sbin/depmod -a

View File

@ -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

View File

@ -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"

View File

@ -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: