[Pkg-fglrx-devel] r310 - in fglrx-driver/trunk/debian: . dkms

Patrick Matthäi pmatthaei at alioth.debian.org
Sun Oct 25 15:19:54 UTC 2009


Author: pmatthaei
Date: 2009-10-25 15:19:52 +0000 (Sun, 25 Oct 2009)
New Revision: 310

Added:
   fglrx-driver/trunk/debian/dkms/
   fglrx-driver/trunk/debian/dkms/dkms.conf
   fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst
   fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm
Modified:
   fglrx-driver/trunk/debian/changelog
   fglrx-driver/trunk/debian/control
Log:
* Implemented dkms support with our new fglrx-modules-dkms package.
_WARNING_:
This is not complete and working, yet!


Modified: fglrx-driver/trunk/debian/changelog
===================================================================
--- fglrx-driver/trunk/debian/changelog	2009-10-23 16:52:59 UTC (rev 309)
+++ fglrx-driver/trunk/debian/changelog	2009-10-25 15:19:52 UTC (rev 310)
@@ -1,3 +1,9 @@
+fglrx-driver (1:9-10-2) UNRELEASED; urgency=low
+
+  * Implemented dkms support with our new fglrx-modules-dkms package.
+
+ -- Patrick Matthäi <pmatthaei at debian.org>  Sun, 25 Oct 2009 16:18:28 +0100
+
 fglrx-driver (1:9-10-1) unstable; urgency=low
 
   * New upstream release.

Modified: fglrx-driver/trunk/debian/control
===================================================================
--- fglrx-driver/trunk/debian/control	2009-10-23 16:52:59 UTC (rev 309)
+++ fglrx-driver/trunk/debian/control	2009-10-25 15:19:52 UTC (rev 310)
@@ -75,6 +75,19 @@
  which are necessary to have accelerated 3D support within the AMD/ATI
  propriertary display driver.
 
+Package: fglrx-modules-dkms
+Section: non-free/kernel
+Architecture: i386 amd64
+Depends: ${misc:Depends}, dkms
+Suggests: fglrx-driver
+Description: kernel module source for the non-free AMD/ATI r6xx - r7xx display driver
+ This package provides the Kernel build environment and the fglrx modules,
+ which are necessary to have accelerated 3D support within the AMD/ATI
+ propriertary display driver.
+ .
+ This package contains the source for the fglrx kernel module, packaged with
+ approriate configuration for DKMS to build new modules dynamically.
+
 Package: fglrx-kernel-src
 Architecture: all
 Depends: ${misc:Depends}, fglrx-source

Added: fglrx-driver/trunk/debian/dkms/dkms.conf
===================================================================
--- fglrx-driver/trunk/debian/dkms/dkms.conf	                        (rev 0)
+++ fglrx-driver/trunk/debian/dkms/dkms.conf	2009-10-25 15:19:52 UTC (rev 310)
@@ -0,0 +1,14 @@
+# DKMS configuration for the fglrx kernel module.
+
+# The version is replaced at build time by debian/rules.
+PACKAGE_NAME="fglrx"
+PACKAGE_VERSION="_VERSION_"
+
+BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
+DEST_MODULE_LOCATION[0]="/updates/dkms/"
+AUTOINSTALL=yes
+
+MAKE[0]="./configure --with-linux-kernel-headers=${kernel_source_dir}
+    && make
+    && mv src/libafs/MODLOAD-*/openafs.ko ."
+CLEAN="rm -f openafs.ko && make -C src/libafs clean"

Added: fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst
===================================================================
--- fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst	                        (rev 0)
+++ fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst	2009-10-25 15:19:52 UTC (rev 310)
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+package=fglrx-modules-dkms
+
+version=`dpkg-query -W -f='${Version}' "$package" \
+	| sed -e 's/[+-].*//' -e 's/\.dfsg.*//' -e 's/~//g'`
+
+dkms add -m fglrx -v "$version"
+
+if [ "$1" = 'configure' ] ; then
+	dkms build -m fglrx -v "$version"
+	dkms install -m fglrx -v "$version" --force
+fi
+
+#DEBHELPER#
+
+exit 0

Added: fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm
===================================================================
--- fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm	                        (rev 0)
+++ fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm	2009-10-25 15:19:52 UTC (rev 310)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+package=fglrx-modules-dkms
+
+version=`dpkg-query -W -f='${Version}' "$package" \
+	| sed -e 's/[+-].*//' -e 's/\.dfsg.*//' -e 's/~//g'`
+
+dkms remove -m fglrx -v "$version" --all || true
+
+#DEBHELPER#
+
+exit 0




More information about the Pkg-fglrx-devel mailing list