--- fglrx-installer-8.600.orig/debian/amdcccle.desktop +++ fglrx-installer-8.600/debian/amdcccle.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=ATI Catalyst Control Center +Comment=ATI graphics adapter settings +Name[de]=ATI Catalyst Control Center +Comment[de]=ATI grafics adapter settings +Icon=ccc_large.xpm +Exec=amdcccle +Path=/usr/bin +Type=Application +Terminal=0 +Categories=Application;Utility --- fglrx-installer-8.600.orig/debian/copyright +++ fglrx-installer-8.600/debian/copyright @@ -0,0 +1,217 @@ +This package was debianized by Mario Limonciello on +Tue, 27 May 2008 10:22:21 -0600. + +The latest Linux graphics driver was downloaded (at this time 8.5) from the +AMD website (www.amd.com), and then this package was generated using: + + sh $VERSION.run --buildpkg Ubuntu/source + +---------------------------------------------------------------------------- + +Driver License: + +Copyright 2008 AMD Inc. + +ATI Software End User License Agreement + +PLEASE READ THIS LICENSE CAREFULLY BEFORE USING THE SOFTWARE. BY +DOWNLOADING, INSTALLING, COPYING OR USING THE SOFTWARE, YOU ARE AGREEING TO +BE BOUND BY THE TERMS OF THIS LICENSE. IF YOU ARE ACCESSING THE SOFTWARE +ELECTRONICALLY, SIGNIFY YOUR AGREEMENT BY CLICKING THE "AGREE/ACCEPT" +BUTTON. IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, PROMPTLY RETURN +THE SOFTWARE TO THE PLACE WHERE YOU OBTAINED IT AND (IF APPLICABLE) YOUR +MONEY WILL BE REFUNDED OR IF THE SOFTWARE WAS ACCESSED ELECTRONICALLY CLICK +"DISAGREE/DECLINE". + +1. License. ATI Technologies Inc., on behalf of itself, its subsidiaries +and licensors (referred collectively as "ATI") grants to you the following +non-exclusive, right to use the software accompanying this License +(hereinafter "Software") subject to the following terms and limitations: + +(a) Regardless of the media upon which it is distributed, the Software is +licensed to you for use solely in conjunction with ATI hardware products to +which the Software relates ("ATI Hardware"). + +(b) You own the medium on which the Software is recorded, but ATI and, if +applicable, its licensors retain title to the Software and related +documentation. + +(c) You may: + + i) use the Software solely in connection with the ATI Hardware on a + single computer; + + ii) make one copy of the Software in machine-readable form for backup + purposes only. You must reproduce on such copy ATI's copyright notice and + any other proprietary legends that were on the original copy of the + Software; + + iii) transfer all your license rights in the Software provided you must + also transfer a copy of this License, the backup copy of the Software, + the ATI Hardware and the related documentation and provided the other + party reads and agrees to accept the terms and conditions of this + License. Upon such transfer your license rights are then terminated. + +(d) In addition to the license terms above, with respect to portions of +the Software in source code or binary form designed exclusively for use +with the Linux operating system ("ATI Linux Code"), you may use, display, +modify, copy, distribute, allow others to re-distribute, package and re- +package such ATI Linux Code for commercial and non-commercial purposes, +provided that: + + i) all binary components of the ATI Linux Code are not modified in any + way; + + ii) the ATI Linux Code is only used as part of the Software and in + connection with ATI Hardware; + + iii) all copyright notices of ATI are reproduced and you refer to these + license terms; + + iv) you may not offer or impose any terms on the use of ATI Linux + Code that alter or restrict this License; and + + v) if you have modified the ATI Linux Code, such modifications will be + made publicly available and are licensed under the same terms provided + herein to ATI or any other third party without further restriction, + royalty or any other license requirement; + + vi) to the extent there is any ATI sample or control panel source + code included in the ATI Linux Code, no rights are granted to modify such + code except for portions thereof that may be subject to third party + license terms that grant such rights; and + + vii) ATI is not obligated to provide any maintenance or technical support + for any code resulting from ATI Linux Code. + +2. Restrictions. The Software contains copyrighted and patented material, +trade secrets and other proprietary material. In order to protect them, +and except as permitted by this license or applicable legislation, you may +not: + + a) decompile, reverse engineer, disassemble or otherwise reduce the + Software to a human-perceivable form; + + b) modify, network, rent, lend, loan, distribute or create derivative + works based upon the Software in whole or in part; or + + c) electronically transmit the Software from one computer to another or + over a network or otherwise transfer the Software except as permitted by + this License. + +3. Termination. This License is effective until terminated. You may +terminate this License at any time by destroying the Software, related +documentation and all copies thereof. This License will terminate +immediately without notice from ATI if you fail to comply with any +provision of this License. Upon termination you must destroy the Software, +related documentation and all copies thereof. + +4. Government End Users. If you are acquiring the Software on behalf of +any unit or agency of the United States Government, the following +provisions apply. The Government agrees the Software and documentation +were developed at private expense and are provided with "RESTRICTED +RIGHTS". Use, duplication, or disclosure by the Government is subject to +restrictions as set forth in DFARS 227.7202-1(a) and 227.7202-3(a) (1995), +DFARS 252.227-7013(c)(1)(ii) (Oct 1988), FAR 12.212(a)(1995), FAR 52.227- +19, (June 1987) or FAR 52.227-14(ALT III) (June 1987),as amended from time +to time. In the event that this License, or any part thereof, is deemed +inconsistent with the minimum rights identified in the Restricted Rights +provisions, the minimum rights shall prevail. + +5. No Other License. No rights or licenses are granted by ATI under this +License, expressly or by implication, with respect to any proprietary +information or patent, copyright, trade secret or other intellectual +property right owned or controlled by ATI, except as expressly provided in +this License. + +6. Additional Licenses. DISTRIBUTION OR USE OF THE SOFTWARE WITH AN +OPERATING SYSTEM MAY REQUIRE ADDITIONAL LICENSES FROM THE OPERATING SYSTEM +VENDOR. + +7. Disclaimer of Warranty on Software. You expressly acknowledge and +agree that use of the Software is at your sole risk. The Software and +related documentation are provided "AS IS" and without warranty of any kind +and ATI EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FORA PARTICULAR PURPOSE, OF QUALITY, OF QUIET ENJOYMENT AND OF NON- +INFRINGEMENT OF THIRD PARTY RIGHTS. ATI DOES NOT WARRANT THAT THE +FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS, OR THAT +THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT +DEFECTS IN THE SOFTWARE WILL BE CORRECTED. THE ENTIRE RISK AS TO THE +RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY YOU. FURTHERMORE, +ATI DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE ORTHE +RESULTS OF THE USE OF THE SOFTWARE OR RELATED DOCUMENTATION IN TERMS OF +THEIR CORRECTNESS, ACCURACY, RELIABILITY, CURRENTNESS, OR OTHERWISE. NO +ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY ATI OR ATI'S AUTHORIZED +REPRESENTATIVE SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF +THIS WARRANTY. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU (AND NOT ATI OR +ATI'S AUTHORIZED REPRESENTATIVE) ASSUME THE ENTIRE COST OF ALL NECESSARY +SERVICING, REPAIR OR CORRECTION. THE SOFTWARE IS NOT INTENDED FOR USE IN +MEDICAL, LIFE SAVING OR LIFE SUSTAINING APPLICATIONS. SOME JURISDICTIONS +DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION +MAY NOT APPLY TO YOU. + +8. Limitation of Liability. TO THE MAXIMUM EXTENT PERMITTED BY LAW, UNDER +NO CIRCUMSTANCES INCLUDING NEGLIGENCE, SHALL ATI, OR ITS DIRECTORS, +OFFICERS, EMPLOYEES OR AGENTS, BE LIABLE TO YOU FOR ANY INCIDENTAL, +INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING DAMAGES FOR LOSS OF +BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESSINFORMATION, AND +THE LIKE) ARISING OUT OF THE USE, MISUSE OR INABILITY TO USE THE SOFTWARE +OR RELATED DOCUMENTATION, BREACH OR DEFAULT, INCLUDING THOSE ARISING FROM +INFRINGEMENT OR ALLEGED INFRINGEMENT OF ANY PATENT, TRADEMARK, COPYRIGHT OR +OTHER INTELLECTUAL PROPERTY RIGHT, BY ATI, EVEN IF ATI OR ATI'S AUTHORIZED +REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME +JURISDICTIONS DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY FOR +INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION OR EXCLUSION +MAY NOT APPLY TO YOU. ATI will not be liable for 1) loss of, or damage to, +your records or data or 2) any damages claimed by you based on any third +party claim. In no event shall ATI's total liability to you for all +damages, losses, and causes of action (whether in contract, tort (including +negligence) or otherwise) exceed the amount paid by you for the Software. +The foregoing limitations will apply even if the above stated limitation +fails of its essential purpose. + +9. Controlling Law and Severability. This License shall be governed by +and construed under the laws of the Province of Ontario, Canada without +reference to its conflict of law principles. Any dispute related hereto +will be brought only in the courts in Toronto, Ontario, Canada and such +courts are agreed to be the convenient forum. In the event of any +conflicts between foreign law, rules, and regulations, and Canadian law, +rules, and regulations, Canadian law, rules and regulations shall prevail +and govern. The United Nations Convention on Contracts for the +International Sale of Goods shall not apply to this License. If for any +reason a court of competent jurisdiction finds any provision of this +License or portion thereof, to be unenforceable, that provision of the +License shall be enforced to the maximum extent permissible so as to effect +the intent of the parties, and the remainder of this License shall continue +in full force and effect. + +10. Complete Agreement. This License constitutes the entire agreement +between the parties with respect to the use of the Software and the related +documentation, and supersedes all prior or contemporaneous understandings +or agreements, written or oral, regarding such subject matter. No +amendment to or modification of this License will be binding unless in +writing and signed by a duly authorized representative of ATI. + +---------------------------------------------------------------------------- +Packaging scripts: + Copyright (C) 2002-2005 Flavio Stanchina + Copyright (C) 2005-2006 Aric Cyr + Copyright (C) 2007-2008 Mario Limonciello + + This Package is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian & Ubuntu systems, a complete copy of the GPL can be found under +/usr/share/common-licenses/GPL --- fglrx-installer-8.600.orig/debian/compat +++ fglrx-installer-8.600/debian/compat @@ -0,0 +1 @@ +5 --- fglrx-installer-8.600.orig/debian/libamdxvba1.postinst +++ fglrx-installer-8.600/debian/libamdxvba1.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ]; then + ldconfig +fi + +#DEBHELPER# --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx-dev.install.in +++ fglrx-installer-8.600/debian/xorg-driver-fglrx-dev.install.in @@ -0,0 +1,7 @@ +debian/overrides/xorg-driver-fglrx-dev usr/share/lintian/overrides + +usr/include/* usr/include +usr/X11R6/include/* usr/include + +#XARCH#/usr/X11R6/#LIBDIR#/modules/*.a usr/lib +arch/#ARCH#/usr/X11R6/#LIBDIR#/*.a usr/lib --- fglrx-installer-8.600.orig/debian/changelog +++ fglrx-installer-8.600/debian/changelog @@ -0,0 +1,299 @@ +fglrx-installer (2:8.600-0ubuntu2) jaunty; urgency=low + + * Update fglrx-rt-compat.patch. Thanks Alessio Igor Bogani (LP: #328856) + * Update location of fglrx-rt-compat.patch from debian/dkms/patches/patches + to debian/dkms/patches + + -- Mario Limonciello Tue, 31 Mar 2009 12:12:37 -0500 + +fglrx-installer (2:8.600-0ubuntu1) jaunty; urgency=low + + * New upstream release. (Closes LP: #313027, #314600) + - Fixes LP: #253988, #179042, #241176, #284408, #287229, #296497, + #288620, #289628 + * README.Debian: Update the update procedure a bit + + -- Bryce Harrington Tue, 17 Mar 2009 15:40:42 -0700 + +fglrx-installer (2:8.573-0ubuntu4) jaunty; urgency=low + + * debian/xorg-driver-fglrx.postinst: + - Transition start of atieventsd with priority 31. It needs to start after + GDM and oem-config to ensure there aren't any lockups. (LP: #330188) + * debian/rules: + - Start atieventsd at 31. + + -- Mario Limonciello Mon, 16 Feb 2009 16:52:25 -0600 + +fglrx-installer (2:8.573-0ubuntu3) jaunty; urgency=low + + * debian/10fglrx.in: + - Check if LD_LIBRARY_PATH is empty when we append to it. (LP: #323327) + + -- Mario Limonciello Mon, 09 Feb 2009 18:50:46 -0600 + +fglrx-installer (2:8.573-0ubuntu2) jaunty; urgency=low + + * debian/control: + - Add libxinerama1 to build depends. + * debian/xorg-driver-fglrx.preinst: + - Move user modifications out of the way for files that are stored in + /etc/ati when upgrading package. Unfortunately, although these files + are stored in /etc, AMD has indicated that they should not be treated + as conf files. (LP: 307643) + * debian/fglrx-kernel-source.prerm: + - Add in a check for old versions of fglrx that might have DKMS directories + sitting around. If any are found, they are removed so as to prevent possible + conflicts. (LP: #303148) + + -- Mario Limonciello Mon, 02 Feb 2009 14:31:34 -0600 + +fglrx-installer (2:8.573-0ubuntu1) jaunty; urgency=low + + * New upstream release. (9-1). + - This release still does *not* meet the Xorg server 1.6 ABI. + It is being uploaded to ensure that there are no other integration + related issues that come up. + + -- Mario Limonciello Thu, 29 Jan 2009 20:37:38 -0600 + +fglrx-installer (2:8.552-0ubuntu1) jaunty; urgency=low + + * New upstream release. + * debian/control: + - Don't list the graphics cards supported, this is a moving target + that is difficult to keep up with. (LP: #292436) + * Move replacements for kernel source into debian/dkms + * Add patch for RT support to debian/dkms (LP: #286961) + * debian/dkms.conf.in: + - Use RT patch. + + -- Mario Limonciello Thu, 13 Nov 2008 10:30:20 -0600 + +fglrx-installer (2:8.543-0ubuntu4) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/rules: + - Don't copy the libAMDXvBA.so* into multiple packages + on AMD64 (LP: #287159) + * debian/control: + - xorg-driver-fglrx: Drop libamdxvba1 to suggests so that fglrx can be put + onto DVDs. + * Replace authatieventsd.sh with our own variation that works with KDM. + (LP: #38915) + + [ Matthias Klose ] + * debian/control: + - xorg-driver-fglrx: Drop dependency on ia32-libs [amd64], add dependencies + on lib32gcc1 [amd64], libc6-i386 [amd64]. + - libamdxvba1: Add dependency on ia32-libs [amd64]. + + -- Mario Limonciello Wed, 22 Oct 2008 11:55:59 -0500 + +fglrx-installer (2:8.543-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Drop build-depends on libstdc++5. (LP: #271794) + - Drop build-depends on ia32-libs + - Install libAMDXvBA.so* into it's own package. + * debian/rules: + - Work around missing libstdc++5 at build-depends time. + * Add the following files to support this new binary package: + - debian/libamdxvba.postinst + - debian/libamdxvba.install.in + + -- Mario Limonciello Thu, 16 Oct 2008 15:04:46 -0500 + +fglrx-installer (2:8.543-0ubuntu2) intrepid; urgency=low + + * debian/control: + - Depends on linux-headers-generic | linux-headers to help + cover more of the 90 percent case that people are using the + generic kernel (LP: #284091) + + -- Mario Limonciello Thu, 16 Oct 2008 08:52:34 -0500 + +fglrx-installer (2:8.543-0ubuntu1) intrepid; urgency=low + + * New upstream release. (Closes lp: #247376) + * control: Re-enabled provides of xserver-xorg-video-2 since + this upload works with the current xserver. + * README.Debian: Itemize update procedure + + -- Bryce Harrington Tue, 14 Oct 2008 14:12:06 -0700 + +fglrx-installer (2:8.532-0ubuntu5) intrepid; urgency=low + + * control: xorg-driver-fglrx Provides: xserver-xorg-video-2. The + driver doesn't work with the current xserver, so no reason to + pretend that it would. This prevents breaking upgrades from hardy + where the driver would be updated and on reboot X would fail. + + -- Timo Aaltonen Thu, 25 Sep 2008 11:46:28 +0300 + +fglrx-installer (2:8.532-0ubuntu4) intrepid; urgency=low + + * Update 2.6.27 patch again. (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 15:32:19 -0500 + +fglrx-installer (2:8.532-0ubuntu3) intrepid; urgency=low + + [ Alberto Milone (tseliot) ] + * debian/modaliases/fglrx_supported: + - Add "xorg-driver-fglrx" to the strings printed to + fglrx-modules.alias.override so that Jockey can + detect the name of the package to install (LP: #258641) + + [ Mario Limonciello ] + * debian/kernel-source-patches/fglrx_8.9_2.6.27.patch: + - Update to compile on x86_64 for 2.6.27 (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 12:29:18 -0500 + +fglrx-installer (2:8.532-0ubuntu2) intrepid; urgency=low + + * debian/fglrx-kernel-source.patches: + - Install to DKMS patches directory (LP: #266956) + + -- Mario Limonciello Fri, 19 Sep 2008 08:49:21 -0500 + +fglrx-installer (2:8.532-0ubuntu1) intrepid; urgency=low + + * Add debian/kernel-source-patches/fglrx_8.9_2.6.27.patch + to allow compiling against 2.6.27. (LP: #266956) + * debian/dkms.conf.in: + - Use 2.6.27 patch when building against 2.6.27 + * debian/fglrx-kernel-source.install.in: + - Install patches in kernel-source-patches. + + -- Mario Limonciello Thu, 18 Sep 2008 12:08:46 -0500 + +fglrx-installer (2:8.522-0ubuntu4) intrepid; urgency=low + + * Rebuild against the new xserver-xorg-dev. + + -- Bryce Harrington Fri, 12 Sep 2008 00:54:13 +0000 + +fglrx-installer (2:8.522-0ubuntu3) intrepid; urgency=low + + "3rd time's a charm" + * Don't divert extensions either. Causes big breakage when starting X. + + -- Mario Limonciello Wed, 20 Aug 2008 12:47:26 -0500 + +fglrx-installer (2:8.522-0ubuntu2) intrepid; urgency=low + + * Don't install extensions directory as no additional + extensions are included in this version. + + -- Mario Limonciello Wed, 20 Aug 2008 12:38:10 -0500 + +fglrx-installer (2:8.522-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Drop 02_2.6.26_support.dpatch as 2.6.26 support is available now. + * debian/control: + - Conflict w/ pentium-builder (LP: #180831) + - Update nvidia conflicts (LP: #254969) + * Correct LIBGL_DRIVERS_PATH (LP: #250944) + * Cleanup diversion prerm scripts (LP: #257003) + + -- Mario Limonciello Wed, 20 Aug 2008 12:34:16 -0500 + +fglrx-installer (2:8.512-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Update 02_2.6.26_support.dpatch for changes in firegl_public.c. + * debian/control: + - Depend upon libstdc++5. + * debian/xorg-driver-fglrx.postrm: + - Clean up AMD64 diversions properly. + + -- Mario Limonciello Mon, 21 Jul 2008 13:58:26 -0500 + +fglrx-installer (2:8.501-0ubuntu3) intrepid; urgency=low + + * drop debian/patches/01_2.6.25.patch: + - Causes regressions on RadeonHD 3670 hardware. + + -- Mario Limonciello Mon, 07 Jul 2008 14:37:55 -0500 + +fglrx-installer (2:8.501-0ubuntu2) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/fglrx-modaliases.install: + - Install to /usr/share/jockey/modaliases instead + * debian/control: + - Bump standards version to 3.8.0. + - Add fglrx-amdcccle to xorg-driver-fglrx Recommends + * debian/rules: + - Don't start atieventsd on package install as it steals X permissions + until the next reboot. + - Add support to apply patches to the development release. This is + determined by querying distro target in the changelog. + -- Don't use packages not intended for your distro! -- + * debian/README.Debian: + - Add a small blurb explaining kernel patches. + + [ Žilvinas Valinskas ] + * debian/patches/01_2.6.25.patch: + - Adds 2.6.25 support (valid for AMD's 8-5 release), at least until + AMD formally adds it. + * debian/patches/02_2.6.26.patch: + - Adds 2.6.26 support (valid for AMD's 8-6 release), at least until + AMD formally adds it. (LP: #239967) + + -- Mario Limonciello Mon, 07 Jul 2008 12:06:05 -0500 + +fglrx-installer (2:8.501-0ubuntu1) intrepid; urgency=low + + * New upstream release. + + -- Mario Limonciello Thu, 19 Jun 2008 01:46:54 -0500 + +fglrx-installer (2:8.493.1-0ubuntu5) intrepid; urgency=low + + * debian/replacements/* + - Include Makefile and make.sh that support passing kernel version + as a parameter until upstream resolves issues. + * debian/dkms.conf.in: + - Explicitly use kernel version as parameter to make scripts. + * debian/fglrx-kernel-source.in: + - Include our variants of make scripts since upstream hasn't fixed + there's yet. + + -- Mario Limonciello Thu, 12 Jun 2008 15:34:14 -0500 + +fglrx-installer (2:8.493.1-0ubuntu4) intrepid; urgency=low + + * debian/control: + - Force the Section to be restricted/misc instead of just restricted. + + -- Mario Limonciello Tue, 27 May 2008 15:26:38 -0500 + +fglrx-installer (2:8.493.1-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Explicitly only indicate i386 and amd64 for ALL binary packages. We don't want + sparc, hppa, or lpia showing up. + + -- Mario Limonciello Tue, 27 May 2008 14:34:13 -0500 + +fglrx-installer (2:8.493.1-0ubuntu2) intrepid; urgency=low + + * debian/rules: + - Specify $(LIBDIR) for calculating modaliases. + Fixes transient failure on AMD64 boxes. + + -- Mario Limonciello Tue, 27 May 2008 14:23:21 -0500 + +fglrx-installer (2:8.493.1-0ubuntu1) intrepid; urgency=low + + * Initial release. + - This package was directly generated from the upstream AMD driver's built-in + scripts. By generating this way, the driver will always be in sync without + integration problems. + + -- Mario Limonciello Tue, 27 May 2008 10:50:16 -0500 + --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.manpages +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.manpages @@ -0,0 +1 @@ +usr/share/man/man8/atieventsd.8 --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.postinst +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.postinst @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +cleanup_init() { + update-rc.d -f atieventsd remove + update-rc.d atieventsd defaults 31 +} + +case "$1" in + configure) + [ -L /etc/rc5.d/S20atieventsd ] && cleanup_init + + #check whether libglx.so got installed. some releases earlier than x740 + #will not actually have this libglx.so + if [ ! -f /usr/lib/xorg/modules/extensions/libglx.so ]; then + dpkg-divert --remove --rename --package xorg-driver-fglrx --divert /usr/lib/fglrx/libglx.so.xlibmesa /usr/lib/xorg/modules/extensions/libglx.so > /dev/null + fi + +esac + +if [ "$1" = "configure" ]; then + ldconfig +fi + +#DEBHELPER# --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.dirs +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.dirs @@ -0,0 +1 @@ +usr/lib/fglrx --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.default +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.default @@ -0,0 +1,3 @@ +# Powerstate switching on ACPI events for +# lid open/close and AC adapter on/off +FGLRX_ACPI_SWITCH_POWERSTATES=false --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.links +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.links @@ -0,0 +1,4 @@ +usr/lib/libfglrx_gamma.so.1.0 usr/lib/libfglrx_gamma.so.1 +usr/lib/libfglrx_pp.so.1.0 usr/lib/libfglrx_pp.so.1 +usr/lib/libfglrx_dm.so.1.0 usr/lib/libfglrx_dm.so.1 +usr/lib/libfglrx_tvout.so.1.0 usr/lib/libfglrx_tvout.so.1 --- fglrx-installer-8.600.orig/debian/libamdxvba1.install.in +++ fglrx-installer-8.600/debian/libamdxvba1.install.in @@ -0,0 +1,3 @@ +#DRI stuff +arch/#ARCH#/usr/X11R6/#LIBDIR#/libAMD* usr/lib + --- fglrx-installer-8.600.orig/debian/README.Debian +++ fglrx-installer-8.600/debian/README.Debian @@ -0,0 +1,82 @@ +ATI video drivers for Ubuntu +============================ + +Further information can be found at http://www.ati.com/ -- look for +the "Drivers & Software" page and follow links to the Linux drivers. + +This package is generated automatically via the official ATI driver +installer that is available from the above homepage. + +DKMS +------------------------- + Ubuntu includes support to build modules using a utility + developed by Dell, called DKMS. It will automatically + build your kernel module for you when you first boot into + the kernel (or as necessary) + + See the DKMS man page for more information. + +Source building +------------------------- +Starting with Intrepid, an extra target has been added to allow +--buildpkg Ubuntu/source. This target should be adequate for +sending up to the Ubuntu archive. By keeping the same source package +in both places, there should be fewer conflicts for people. + +On a semiregular basis, the debian/changelog should be merged +into this package, but people adding to the Ubuntu archive should +be sure to update these sorts of things otherewise. + +Kernel patches +------------------------- +If you need to provide a kernel patch (say for a kernel not formally +supported yet by AMD), you can add this patch in the debian/patches +directory. It will only be used for the current development release, +as indicated in debian/rules. When upgrading from current development +release to next development release, this codename in debian/rules should +be bumped too. + +Update procedure +------------------------- +When a new -fglrx is available, do the following to update +fglrx-installer: + +0. On your build system, make sure you have the prerequisites + installed: + + $ sudo apt-get build-dep fglrx-installer + +1. Download the archive file and unpack it to get the .run file + +2. Do a --buildpkg Ubuntu/source, which will build a diff.gz, + orig.tar.gz and an unsigned dsc. For example: + + $ bash ./ati-driver-installer-*.run --buildpkg Ubuntu/source + + This might prompt for your password for sudo privs. It may + install things to your system it needs for constructing the + source packages, such as cdbs, libstdc++, etc. (As of 8.600 + it seems to no longer do this for source pkgs.) + +3. dpkg-source -x that dsc to unpack it into a directory, then + cd into the resultant directory. + +4. dch -e to update the new changelog entry. + Make sure to mark out any bugs that get closed with it. + + Also doublecheck that it includes debian/ changes up to the current + Ubuntu version; if not, some merging may be required. + +5. debuild -S to produce a new .dsc + +6. Verify the new .dsc produces valid .debs by running it through + pbuilder, sbuild, etc. as usual. + +7. Install and test the .debs, and then dput the .changes file + +If any changes to files in debian/ are needed, make sure to let the +maintainer (Mario aka superm1) know, so he can sync them into the git +tree AMD pulls from. + + + -- Bryce Harrington , Tue, 17 Mar 2009 15:43:42 -0700 --- fglrx-installer-8.600.orig/debian/fglrx-kernel-source.prerm +++ fglrx-installer-8.600/debian/fglrx-kernel-source.prerm @@ -0,0 +1,33 @@ +#!/bin/sh +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007-2008 Mario Limonciello + +#DEBHELPER# + +CVERSION=`dpkg-query -W -f='${Version}' fglrx-kernel-source | awk -F "-" '{print $1}' | cut -d\: -f2` +SOURCES=/var/lib/dkms/fglrx/ + +case "$1" in + remove|upgrade) + if [ -d $SOURCES ]; then + for directory in $(ls $SOURCES); do + kind=$(echo "$directory" | awk '$1 ~ /.*[a-z].*$/ { print "alpha"; next } { print "num" }') + # the names of the directories containing the version of the driver are digits (e.g. 8.573) + if [ "$kind" = "num" ]; then + comparison=$(echo "$directory" | awk -v Version="$CVERSION" '($1 != Version) { print "yes"; next } { print "no" }') + # if the version is less than $VERSION + if [ "$comparison" = "yes" ]; then + echo "Removing old untracked DKMS directory: $SOURCES$directory" + rm -rf $SOURCES$directory 2>/dev/null + fi + fi + done + fi + echo "Removing all DKMS Modules" + dkms remove -m fglrx -v $CVERSION --all > /dev/null + echo "Done." + ;; +esac + + --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx-dev.links +++ fglrx-installer-8.600/debian/xorg-driver-fglrx-dev.links @@ -0,0 +1,4 @@ +usr/lib/libfglrx_gamma.so.1 usr/lib/libfglrx_gamma.so +usr/lib/libfglrx_pp.so.1 usr/lib/libfglrx_pp.so +usr/lib/libfglrx_dm.so.1 usr/lib/libfglrx_dm.so +usr/lib/libfglrx_tvout.so.1 usr/lib/libfglrx_tvout.so --- fglrx-installer-8.600.orig/debian/fglrx-modaliases.install +++ fglrx-installer-8.600/debian/fglrx-modaliases.install @@ -0,0 +1 @@ +debian/modaliases/fglrx-modules.alias.override usr/share/jockey/modaliases --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.preinst +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.preinst @@ -0,0 +1,126 @@ +#! /bin/sh +# preinst script for xorg-driver-fglrx +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# For details see /usr/share/doc/packaging-manual/ + +PKGNAME=xorg-driver-fglrx + +if [ `dpkg --print-installation-architecture` = "amd64" ]; then + HAS_LIB32="yes" +fi + +# Snippet from http://www.dpkg.org/dpkg/ConffileHandling +mv_conffile() { + CONFFILE="$1" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' $CONFFILE'{s/.* //;p}}\" /var/lib/dpkg/status`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Conffile $CONFFILE has been modified by you." + echo "AMD graphics driver requires $CONFFILE to be updated when driver is updated." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + fi + fi +} + + +fix_diversions() +{ + # Remove very old style diversions + if [ -d /usr/share/fglrx/diversions ]; then + if [ -n "$HAS_LIB32" ]; then + dpkg-divert --remove --package $PKGNAME \ + --divert /usr/share/fglrx/diversions/libGL.so.1.2_32bit \ + --rename /usr/lib32/libGL.so.1.2 + fi + + dpkg-divert --remove --package $PKGNAME \ + --divert /usr/share/fglrx/diversions/libGL.so.1.2 \ + --rename /usr/lib/libGL.so.1.2 + + rmdir /usr/share/fglrx/diversions || true + fi + + #remove old and unnecessary libGL.so.1 symlinks + if [ -L /usr/lib/fglrx/libGL.so.1.xlibmesa ]; then + rm /usr/lib/fglrx/libGL.so.1.xlibmesa + fi + + if [ -L /usr/lib32/fglrx/libGL.so.1.xlibmesa ]; then + rm /usr/lib32/fglrx/libGL.so.1.xlibmesa + fi + #remove unnecessary X11R6 symlinks that may not have + #been cleaned up in earlier releases + for i in /usr/lib/libGL.so.1 \ + /usr/lib32/libGL.so.1 \ + /usr/X11R6/lib/libGL.so.1 \ + /usr/X11R6/lib/libGL.so.1.2 \ + /usr/X11R6/lib32/libGL.so.1 \ + /usr/X11R6/lib32/libGL.so.1.2 ; do \ + dpkg-divert --remove --package $PKGNAME $i > /dev/null; \ + done +} + +case "$1" in + install|upgrade) + + ### remove old fglrx diversions ### + fix_diversions + + ### make new diversions ### + if [ ! -d /usr/lib/fglrx ]; then ### + mkdir -p /usr/lib/fglrx + fi + dpkg-divert --add --rename --package $PKGNAME --divert /usr/lib/fglrx/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1.2 > /dev/null + dpkg-divert --add --rename --package $PKGNAME --divert /usr/lib/fglrx/libdri.so.xlibmesa /usr/lib/xorg/modules/extensions/libdri.so > /dev/null + dpkg-divert --add --rename --package $PKGNAME --divert /usr/lib/fglrx/libglx.so.xlibmesa /usr/lib/xorg/modules/extensions/libglx.so > /dev/null + + if [ -n "$HAS_LIB32" ]; then + if [ ! -d /usr/lib32/fglrx ]; then + mkdir -p /usr/lib32/fglrx + fi + dpkg-divert --add --rename --package $PKGNAME --divert /usr/lib32/fglrx/libGL.so.1.2.xlibmesa /usr/lib32/libGL.so.1.2 > /dev/null + fi + + ### Remove user changes to "conffiles"" ### + ### These files are stored in /etc but shouldn't be treated ### + ### as conf files because updated drivers may stop working ### + ### if they are modified. ### + mv_conffile "/etc/ati/amdpcsdb.default" + mv_conffile "/etc/ati/atiogl.xml" + mv_conffile "/etc/ati/authatieventsd.sh" + mv_conffile "/etc/ati/control" + mv_conffile "/etc/ati/logo_mask.xbm.example" + mv_conffile "/etc/ati/signature" + mv_conffile "/etc/ati/logo.xbm.example" + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- fglrx-installer-8.600.orig/debian/fglrx-kernel-source.install.in +++ fglrx-installer-8.600/debian/fglrx-kernel-source.install.in @@ -0,0 +1,8 @@ +#Lintian overrides +debian/overrides/fglrx-kernel-source usr/share/lintian/overrides + +#Actual kernel modules +lib/modules/fglrx/build_mod/* usr/src/fglrx-#CVERSION# +debian/dkms/* usr/src/fglrx-#CVERSION# +arch/#ARCH#/lib/modules/fglrx/build_mod/lib* usr/src/fglrx-#CVERSION# +debian/dkms.conf usr/src/fglrx-#CVERSION# --- fglrx-installer-8.600.orig/debian/fglrx-kernel-source.postinst +++ fglrx-installer-8.600/debian/fglrx-kernel-source.postinst @@ -0,0 +1,22 @@ +#!/bin/sh +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007 Mario Limonciello + +CVERSION=`dpkg-query -W -f='${Version}' fglrx-kernel-source | awk -F "-" '{print $1}' | cut -d\: -f2` + +#DEBHELPER# + +case "$1" in + configure) + echo "Adding Module to DKMS build system" + dkms add -m fglrx -v $CVERSION > /dev/null + echo "Doing initial module build" + dkms build -m fglrx -v $CVERSION > /dev/null + echo "Installing initial module" + dkms install -m fglrx -v $CVERSION --force > /dev/null + echo "Done." + ;; +esac + + --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.install.in +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.install.in @@ -0,0 +1,28 @@ +debian/overrides/xorg-driver-fglrx usr/share/lintian/overrides +debian/acpi/fglrx-*-aticonfig etc/acpi/events +debian/acpi/fglrx-powermode.sh etc/acpi +debian/10fglrx etc/X11/Xsession.d +etc/ati etc +debian/replacements/authatieventsd.sh etc/ati + +#binaries +arch/#ARCH#/usr/sbin/* usr/sbin +arch/#ARCH#/usr/X11R6/bin/ati* usr/bin +arch/#ARCH#/usr/X11R6/bin/fgl* usr/bin +usr/sbin/*sh usr/share/fglrx + +#DRI stuff +arch/#ARCH#/usr/X11R6/#LIBDIR#/liba*.so* usr/lib +arch/#ARCH#/usr/X11R6/#LIBDIR#/libf*.so* usr/lib +arch/#ARCH#/usr/X11R6/#LIBDIR#/libX*.so* usr/lib +arch/#ARCH#/usr/X11R6/#LIBDIR#/libG*.so* usr/lib +arch/#ARCH#/usr/X11R6/#LIBDIR#/modules/dri #DRIDIR# + +#Xorg stuff +#XARCH#/usr/X11R6/#LIBDIR#/modules/*.so #XMODDIR# +#XARCH#/usr/X11R6/#LIBDIR#/modules/drivers #XMODDIR# +#XARCH#/usr/X11R6/#LIBDIR#/modules/linux #XMODDIR# +#XARCH#/usr/X11R6/#LIBDIR#/modules/extensions #XMODDIR# + +#CAL stuff +arch/#ARCH#/usr/#LIBDIR#/* usr/lib --- fglrx-installer-8.600.orig/debian/dkms.conf.in +++ fglrx-installer-8.600/debian/dkms.conf.in @@ -0,0 +1,9 @@ +PACKAGE_NAME="fglrx" +PACKAGE_VERSION="#CVERSION#" +CLEAN="rm -f *.*o" +BUILT_MODULE_NAME[0]="fglrx" +MAKE[0]="pushd ${dkms_tree}/fglrx/#CVERSION#/build; sh make.sh --nohints --uname_r=$kernelver; popd" +DEST_MODULE_LOCATION[0]="/kernel/drivers/char/drm" +AUTOINSTALL="yes" +PATCH[0]="fglrx-rt-compat.patch" +PATCH_MATCH[0]="rt" --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.postrm +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.postrm @@ -0,0 +1,41 @@ +#! /bin/sh +# postrm script for xorg-driver-fglrx +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +PKGNAME=xorg-driver-fglrx + +case "$1" in + remove|purge) + dpkg-divert --remove --rename --package $PKGNAME --divert /usr/lib/fglrx/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1.2 > /dev/null + dpkg-divert --remove --rename --package $PKGNAME --divert /usr/lib32/fglrx/libGL.so.1.2.xlibmesa /usr/lib32/libGL.so.1.2 > /dev/null + dpkg-divert --remove --rename --package $PKGNAME --divert /usr/lib/fglrx/libdri.so.xlibmesa /usr/lib/xorg/modules/extensions/libdri.so > /dev/null + dpkg-divert --remove --rename --package $PKGNAME --divert /usr/lib/fglrx/libglx.so.xlibmesa /usr/lib/xorg/modules/extensions/libglx.so > /dev/null + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# --- fglrx-installer-8.600.orig/debian/xorg-driver-fglrx.atieventsd.init +++ fglrx-installer-8.600/debian/xorg-driver-fglrx.atieventsd.init @@ -0,0 +1,56 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: atieventsd +# Required-Start: $syslog +# Required-Stop: $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start daemon at boot time +# Description: Enable service provided by daemon. +### END INIT INFO + +# Original design: +# Copyright (c) 2006, ATI Technologies Inc. All rights reserved. + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +DAEMONPATH=/usr/sbin/atieventsd +DAEMONNAME=atieventsd +DAEMONOPTS="" + +[ -f $DAEMONPATH ] || exit 0 + +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DAEMONNAME" + start-stop-daemon --start --quiet --oknodo --exec $DAEMONPATH -- $DAEMONOPTS + log_end_msg $? + ;; + + stop) + log_daemon_msg "Stopping $DAEMONNAME" + start-stop-daemon --stop --quiet --exec $DAEMONPATH --oknodo + log_end_msg $? + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + reload|force-reload) log_daemon_msg "Reloading isn't supported by $DAEMONNAME" + log_end_msg 0 + ;; + + *) + echo "$0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 + --- fglrx-installer-8.600.orig/debian/rules +++ fglrx-installer-8.600/debian/rules @@ -0,0 +1,127 @@ +#!/usr/bin/make -f +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007-2008 Mario Limonciello + +include /usr/share/cdbs/1/rules/debhelper.mk + +# Figure out some magic versioning +CVERSION := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 | cut -d- -f1 | cut -d\: -f2) +DVERSION := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 | cut -d\: -f2) +DISTRO := $(shell dpkg-parsechangelog | grep '^Distribution:' | cut -d' ' -f2 | cut -d\: -f2) + +#Kernel patches for newer development release kernel +#In case these break stuff, don't apply to stable +ifeq ($(DISTRO),intrepid) + include /usr/share/cdbs/1/rules/simple-patchsys.mk +endif + +#Directory naming schemes +DRIDIR := usr/lib +DRIDIR32 := usr/lib32 +XMODDIR := $(DRIDIR)/xorg/modules +LIBDIR := lib +ARCH := x86 +XARCH := x740 + +ifeq ($(DISTRO),hardy) + XARCH := x710 +endif + +ifeq ($(DISTRO),gutsy) + XARCH := x710 +endif + +ifeq ($(DEB_BUILD_ARCH),amd64) + LIBDIR := lib64 + ARCH := x86_64 + XARCH := $(XARCH)_64a +endif + +# Package names +PKG_driver := xorg-driver-fglrx +PKG_driver_dev := xorg-driver-fglrx-dev +PKG_kernel_src := fglrx-kernel-source +PKG_control := fglrx-amdcccle +PKG_UVD_library := libamdxvba1 + + +# Unfortunately, we won't have libstdc++5 at build time +# Also, we can't go and use debian/shlibs.local. It requires +# that you have the library installed, and that library +# just forgot to ship a shlibs file. +# See (LP: #271794) for more information +DEB_DH_SHLIBDEPS_ARGS_ALL="-Xlib32" +DEB_DH_SHLIBDEPS_ARGS_$(PKG_UVD_library)="-XlibAMD" + +configure/$(PKG_driver):: + + #Create important strings + for i in 10fglrx \ + dkms.conf \ + $(PKG_driver).install \ + $(PKG_driver_dev).install \ + $(PKG_kernel_src).install \ + $(PKG_control).install \ + $(PKG_UVD_library).install \ + overrides/$(PKG_kernel_src); do \ + sed -e "s|#XMODDIR#|$(XMODDIR)|" \ + -e "s|#XMODDIR32#|$(XMODDIR32)|" \ + -e "s|#DRIDIR32#|$(DRIDIR32)|" \ + -e "s|#LIBDIR#|$(LIBDIR)|" \ + -e "s|#DRIDIR#|$(DRIDIR)|" \ + -e "s|#CVERSION#|$(CVERSION)|" \ + -e "s|#XARCH#|$(XARCH)|" \ + -e "s|#ARCH#|$(ARCH)|" \ + debian/$$i.in > debian/$$i; \ + done + + # remove exec bit on everything + find arch \ + etc \ + lib \ + module \ + usr \ + $(XARCH) -type f | xargs chmod -x + + # set executable on user apps + find arch/$(ARCH)/usr/sbin \ + arch/$(ARCH)/usr/X11R6/bin \ + usr/sbin/ -type f | xargs chmod a+x + + # set exec bit on scripts + find lib etc debian -name "*.sh" -type f | xargs chmod +x + + # Generate modaliases + sh -e debian/modaliases/fglrx_supported \ + $(XARCH)/usr/X11R6/$(LIBDIR)/modules/drivers/fglrx_drv.so > \ + debian/modaliases/fglrx-modules.alias.override + +clean:: + rm -f debian/{10fglrx, \ + dkms.conf, \ + $(PKG_driver).install, \ + $(PKG_driver_dev).install, \ + $(PKG_kernel_src).install, \ + $(PKG_control).install, \ + $(PKG_UVD_library).install \ + overrides/$(PKG_kernel_src), \ + modaliases/fglrx-modules.alias.override} + +binary-install/$(PKG_UVD_library):: +ifeq ($(DEB_BUILD_ARCH),amd64) + dh_install -p$(PKG_UVD_library) "arch/x86/usr/X11R6/lib/libAMD*.so*" "usr/lib32" +endif + +binary-install/$(PKG_driver):: +ifeq ($(DEB_BUILD_ARCH),amd64) + #driver package + dh_install -XlibAMD -p$(PKG_driver) "arch/x86/usr/X11R6/lib/*.so*" "usr/lib32" + dh_install -p$(PKG_driver) "arch/x86/usr/X11R6/lib/modules/dri" "$(DRIDIR32)" + dh_install -p$(PKG_driver) "arch/x86/usr/lib/*" "usr/lib32" + dh_installdirs -p$(PKG_driver) "usr/lib32/fglrx" + +endif + + dh_installdocs -p$(PKG_driver) usr/share/doc/fglrx/* --exclude ATI_LICENSE.TXT + dh_installinit -p$(PKG_driver) --name="atieventsd" --no-start --update-rcd-params="defaults 31" --- fglrx-installer-8.600.orig/debian/fglrx-amdcccle.install.in +++ fglrx-installer-8.600/debian/fglrx-amdcccle.install.in @@ -0,0 +1,7 @@ +debian/overrides/fglrx-amdcccle usr/share/lintian/overrides +usr/share/icons/*.xpm usr/share/pixmaps +debian/amdcccle.desktop usr/share/applications +debian/amdcccle.kdelnk usr/share/applnk +usr/share/ati usr/share +arch/#ARCH#/usr/X11R6/bin/amdcccle usr/bin + --- fglrx-installer-8.600.orig/debian/amdcccle.kdelnk +++ fglrx-installer-8.600/debian/amdcccle.kdelnk @@ -0,0 +1,18 @@ +# KDE Config File +[KDE Desktop Entry] +Name=ATI Catalyst Control Center +Comment=ATI graphics adapter settings +Name[de]=ATI Catalyst Control Center +Comment[de]=ATI grafics adapter settings +SwallowExec= +BinaryPattern= +Icon=ccc_large.xpm +MiniIcon=ccc_small.xpm +Protocols= +MimeType= +Exec=amdcccle +TerminalOptions= +Path=/usr/bin +DocPath= +Type=Application +Terminal=0 --- fglrx-installer-8.600.orig/debian/control +++ fglrx-installer-8.600/debian/control @@ -0,0 +1,84 @@ +Source: fglrx-installer +Section: restricted/misc +Priority: extra +Maintainer: Mario Limonciello +Uploaders: Mario Limonciello , Aric Cyr +Build-Depends: debhelper (>= 5), + cdbs, + libxext6, + libxrandr2, + libice6, + libsm6, + libfontconfig1, + libxi6, + libxcursor1, + fakeroot, + libdrm2, + libgl1-mesa-glx, + libxinerama1 +Standards-Version: 3.8.0 +Homepage: http://ati.amd.com/support/driver.html + +Package: xorg-driver-fglrx +Architecture: amd64 i386 +Recommends: fglrx-amdcccle +Suggests: libamdxvba1 +Depends: ${shlibs:Depends}, xserver-xorg-core, fglrx-kernel-source, lib32gcc1 [amd64], libc6-i386 [amd64] +Conflicts: fglrx-driver, xfree86-driver-fglrx, nvidia-glx, nvidia-glx-legacy, nvidia-glx-new, nvidia-glx-71, nvidia-glx-96, nvidia-glx-173, nvidia-glx-177, nvidia-glx-180 +Replaces: fglrx-driver, xfree86-driver-fglrx +Description: Video driver for the ATI graphics accelerators + Video driver for the ATI Radeon and FireGL graphics accelerators. + . + This package provides 2D display drivers + and hardware accelerated OpenGL. + +Package: xorg-driver-fglrx-dev +Architecture: amd64 i386 +Depends: xorg-driver-fglrx +Conflicts: fglrx-driver-dev, xfree86-driver-fglrx-dev +Replaces: fglrx-driver-dev, xfree86-driver-fglrx-dev +Description: Video driver for the ATI graphics accelerators (devel files) + Video driver for the ATI Radeon and FireGL graphics accelerators. + . + This package provides definitions for the GL and GLX extensions + and the FGLRXGAMMA extension interface library. + +Package: fglrx-kernel-source +Architecture: amd64 i386 +Depends: make, dkms, linux-libc-dev, linux-headers-generic | linux-headers +Suggests: xorg-driver-fglrx +Conflicts: pentium-builder +Description: Kernel module source for the ATI graphics accelerators + Video driver for the ATI Radeon and FireGL graphics accelerators. + . + This package provides the kernel module build environment. + +Package: fglrx-amdcccle +Architecture: amd64 i386 +Depends: xorg-driver-fglrx, ${shlibs:Depends} +Conflicts: fglrx-control-qt2, fglrx-control +Replaces: fglrx-control +Description: Catalyst Control Center for the ATI graphics accelerators + Catalyst Control Center for the ATI Radeon and FireGL graphics accelerators. + . + This package provides the Catalyst Control Center, Linux Edition + +Package: fglrx-modaliases +Architecture: amd64 i386 +Description: Identifiers supported by the ATI graphics driver + In order to identify what hardware is supported by Jockey, + there must be a static list of what the current driver in the Ubuntu + archive supports. + . + This package provides that list. + +Package: libamdxvba1 +Architecture: amd64 i386 +Depends: ${shlibs:Depends}, libc6, libstdc++5, ia32-libs [amd64] +Replaces: xorg-driver-fglrx (<= 2:8.543-0ubuntu2) +Description: AMD Unified Video Decoder library + This package provides the support for the AMD unified video + decoder library. This can be used for accelerated XvMC output. + . + Unfortunately, this package requires an unsupported library, + so it is not installed by default. --- fglrx-installer-8.600.orig/debian/10fglrx.in +++ fglrx-installer-8.600/debian/10fglrx.in @@ -0,0 +1,12 @@ +LIBGL_DRIVERS_PATH=/#DRIDIR#/dri +if [ `uname -m` = 'x86_64' ]; then + if [ -d /#DRIDIR32#/dri ]; then + LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}:/#DRIDIR32#/dri + if [ ! -z $LD_LIBRARY_PATH ]; then + LD_LIBRARY_PATH=$LD_LIBRARY_PATH: + fi + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32 + export LD_LIBRARY_PATH + fi +fi +export LIBGL_DRIVERS_PATH --- fglrx-installer-8.600.orig/debian/changelog.in +++ fglrx-installer-8.600/debian/changelog.in @@ -0,0 +1,282 @@ +fglrx-installer (2:8.573-0ubuntu4) jaunty; urgency=low + + * debian/xorg-driver-fglrx.postinst: + - Transition start of atieventsd with priority 31. It needs to start after + GDM and oem-config to ensure there aren't any lockups. (LP: #330188) + * debian/rules: + - Start atieventsd at 31. + + -- Mario Limonciello Mon, 16 Feb 2009 16:52:25 -0600 + +fglrx-installer (2:8.573-0ubuntu3) jaunty; urgency=low + + * debian/10fglrx.in: + - Check if LD_LIBRARY_PATH is empty when we append to it. (LP: #323327) + + -- Mario Limonciello Mon, 09 Feb 2009 18:50:46 -0600 + +fglrx-installer (2:8.573-0ubuntu2) jaunty; urgency=low + + * debian/control: + - Add libxinerama1 to build depends. + * debian/xorg-driver-fglrx.preinst: + - Move user modifications out of the way for files that are stored in + /etc/ati when upgrading package. Unfortunately, although these files + are stored in /etc, AMD has indicated that they should not be treated + as conf files. (LP: 307643) + * debian/fglrx-kernel-source.prerm: + - Add in a check for old versions of fglrx that might have DKMS directories + sitting around. If any are found, they are removed so as to prevent possible + conflicts. (LP: #303148) + + -- Mario Limonciello Mon, 02 Feb 2009 14:31:34 -0600 + +fglrx-installer (2:8.573-0ubuntu1) jaunty; urgency=low + + * New upstream release. (9-1). + - This release still does *not* meet the Xorg server 1.6 ABI. + It is being uploaded to ensure that there are no other integration + related issues that come up. + + -- Mario Limonciello Thu, 29 Jan 2009 20:37:38 -0600 + +fglrx-installer (2:8.552-0ubuntu1) jaunty; urgency=low + + * New upstream release. + * debian/control: + - Don't list the graphics cards supported, this is a moving target + that is difficult to keep up with. (LP: #292436) + * Move replacements for kernel source into debian/dkms + * Add patch for RT support to debian/dkms (LP: #286961) + * debian/dkms.conf.in: + - Use RT patch. + + -- Mario Limonciello Thu, 13 Nov 2008 10:30:20 -0600 + +fglrx-installer (2:8.543-0ubuntu4) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/rules: + - Don't copy the libAMDXvBA.so* into multiple packages + on AMD64 (LP: #287159) + * debian/control: + - xorg-driver-fglrx: Drop libamdxvba1 to suggests so that fglrx can be put + onto DVDs. + * Replace authatieventsd.sh with our own variation that works with KDM. + (LP: #38915) + + [ Matthias Klose ] + * debian/control: + - xorg-driver-fglrx: Drop dependency on ia32-libs [amd64], add dependencies + on lib32gcc1 [amd64], libc6-i386 [amd64]. + - libamdxvba1: Add dependency on ia32-libs [amd64]. + + -- Mario Limonciello Wed, 22 Oct 2008 11:55:59 -0500 + +fglrx-installer (2:8.543-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Drop build-depends on libstdc++5. (LP: #271794) + - Drop build-depends on ia32-libs + - Install libAMDXvBA.so* into it's own package. + * debian/rules: + - Work around missing libstdc++5 at build-depends time. + * Add the following files to support this new binary package: + - debian/libamdxvba.postinst + - debian/libamdxvba.install.in + + -- Mario Limonciello Thu, 16 Oct 2008 15:04:46 -0500 + +fglrx-installer (2:8.543-0ubuntu2) intrepid; urgency=low + + * debian/control: + - Depends on linux-headers-generic | linux-headers to help + cover more of the 90 percent case that people are using the + generic kernel (LP: #284091) + + -- Mario Limonciello Thu, 16 Oct 2008 08:52:34 -0500 + +fglrx-installer (2:8.543-0ubuntu1) intrepid; urgency=low + + * New upstream release. (Closes lp: #247376) + * control: Re-enabled provides of xserver-xorg-video-2 since + this upload works with the current xserver. + * README.Debian: Itemize update procedure + + -- Bryce Harrington Tue, 14 Oct 2008 14:12:06 -0700 + +fglrx-installer (2:8.532-0ubuntu5) intrepid; urgency=low + + * control: xorg-driver-fglrx Provides: xserver-xorg-video-2. The + driver doesn't work with the current xserver, so no reason to + pretend that it would. This prevents breaking upgrades from hardy + where the driver would be updated and on reboot X would fail. + + -- Timo Aaltonen Thu, 25 Sep 2008 11:46:28 +0300 + +fglrx-installer (2:8.532-0ubuntu4) intrepid; urgency=low + + * Update 2.6.27 patch again. (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 15:32:19 -0500 + +fglrx-installer (2:8.532-0ubuntu3) intrepid; urgency=low + + [ Alberto Milone (tseliot) ] + * debian/modaliases/fglrx_supported: + - Add "xorg-driver-fglrx" to the strings printed to + fglrx-modules.alias.override so that Jockey can + detect the name of the package to install (LP: #258641) + + [ Mario Limonciello ] + * debian/kernel-source-patches/fglrx_8.9_2.6.27.patch: + - Update to compile on x86_64 for 2.6.27 (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 12:29:18 -0500 + +fglrx-installer (2:8.532-0ubuntu2) intrepid; urgency=low + + * debian/fglrx-kernel-source.patches: + - Install to DKMS patches directory (LP: #266956) + + -- Mario Limonciello Fri, 19 Sep 2008 08:49:21 -0500 + +fglrx-installer (2:8.532-0ubuntu1) intrepid; urgency=low + + * Add debian/kernel-source-patches/fglrx_8.9_2.6.27.patch + to allow compiling against 2.6.27. (LP: #266956) + * debian/dkms.conf.in: + - Use 2.6.27 patch when building against 2.6.27 + * debian/fglrx-kernel-source.install.in: + - Install patches in kernel-source-patches. + + -- Mario Limonciello Thu, 18 Sep 2008 12:08:46 -0500 + +fglrx-installer (2:8.522-0ubuntu4) intrepid; urgency=low + + * Rebuild against the new xserver-xorg-dev. + + -- Bryce Harrington Fri, 12 Sep 2008 00:54:13 +0000 + +fglrx-installer (2:8.522-0ubuntu3) intrepid; urgency=low + + "3rd time's a charm" + * Don't divert extensions either. Causes big breakage when starting X. + + -- Mario Limonciello Wed, 20 Aug 2008 12:47:26 -0500 + +fglrx-installer (2:8.522-0ubuntu2) intrepid; urgency=low + + * Don't install extensions directory as no additional + extensions are included in this version. + + -- Mario Limonciello Wed, 20 Aug 2008 12:38:10 -0500 + +fglrx-installer (2:8.522-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Drop 02_2.6.26_support.dpatch as 2.6.26 support is available now. + * debian/control: + - Conflict w/ pentium-builder (LP: #180831) + - Update nvidia conflicts (LP: #254969) + * Correct LIBGL_DRIVERS_PATH (LP: #250944) + * Cleanup diversion prerm scripts (LP: #257003) + + -- Mario Limonciello Wed, 20 Aug 2008 12:34:16 -0500 + +fglrx-installer (2:8.512-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Update 02_2.6.26_support.dpatch for changes in firegl_public.c. + * debian/control: + - Depend upon libstdc++5. + * debian/xorg-driver-fglrx.postrm: + - Clean up AMD64 diversions properly. + + -- Mario Limonciello Mon, 21 Jul 2008 13:58:26 -0500 + +fglrx-installer (2:8.501-0ubuntu3) intrepid; urgency=low + + * drop debian/patches/01_2.6.25.patch: + - Causes regressions on RadeonHD 3670 hardware. + + -- Mario Limonciello Mon, 07 Jul 2008 14:37:55 -0500 + +fglrx-installer (2:8.501-0ubuntu2) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/fglrx-modaliases.install: + - Install to /usr/share/jockey/modaliases instead + * debian/control: + - Bump standards version to 3.8.0. + - Add fglrx-amdcccle to xorg-driver-fglrx Recommends + * debian/rules: + - Don't start atieventsd on package install as it steals X permissions + until the next reboot. + - Add support to apply patches to the development release. This is + determined by querying distro target in the changelog. + -- Don't use packages not intended for your distro! -- + * debian/README.Debian: + - Add a small blurb explaining kernel patches. + + [ Žilvinas Valinskas ] + * debian/patches/01_2.6.25.patch: + - Adds 2.6.25 support (valid for AMD's 8-5 release), at least until + AMD formally adds it. + * debian/patches/02_2.6.26.patch: + - Adds 2.6.26 support (valid for AMD's 8-6 release), at least until + AMD formally adds it. (LP: #239967) + + -- Mario Limonciello Mon, 07 Jul 2008 12:06:05 -0500 + +fglrx-installer (2:8.501-0ubuntu1) intrepid; urgency=low + + * New upstream release. + + -- Mario Limonciello Thu, 19 Jun 2008 01:46:54 -0500 + +fglrx-installer (2:8.493.1-0ubuntu5) intrepid; urgency=low + + * debian/replacements/* + - Include Makefile and make.sh that support passing kernel version + as a parameter until upstream resolves issues. + * debian/dkms.conf.in: + - Explicitly use kernel version as parameter to make scripts. + * debian/fglrx-kernel-source.in: + - Include our variants of make scripts since upstream hasn't fixed + there's yet. + + -- Mario Limonciello Thu, 12 Jun 2008 15:34:14 -0500 + +fglrx-installer (2:8.493.1-0ubuntu4) intrepid; urgency=low + + * debian/control: + - Force the Section to be restricted/misc instead of just restricted. + + -- Mario Limonciello Tue, 27 May 2008 15:26:38 -0500 + +fglrx-installer (2:8.493.1-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Explicitly only indicate i386 and amd64 for ALL binary packages. We don't want + sparc, hppa, or lpia showing up. + + -- Mario Limonciello Tue, 27 May 2008 14:34:13 -0500 + +fglrx-installer (2:8.493.1-0ubuntu2) intrepid; urgency=low + + * debian/rules: + - Specify $(LIBDIR) for calculating modaliases. + Fixes transient failure on AMD64 boxes. + + -- Mario Limonciello Tue, 27 May 2008 14:23:21 -0500 + +fglrx-installer (2:8.493.1-0ubuntu1) intrepid; urgency=low + + * Initial release. + - This package was directly generated from the upstream AMD driver's built-in + scripts. By generating this way, the driver will always be in sync without + integration problems. + + -- Mario Limonciello Tue, 27 May 2008 10:50:16 -0500 + --- fglrx-installer-8.600.orig/debian/dkms/patches/fglrx-rt-compat.patch +++ fglrx-installer-8.600/debian/dkms/patches/fglrx-rt-compat.patch @@ -0,0 +1,26 @@ +--- a/firegl_public.c ++++ b/firegl_public.c +@@ -1352,7 +1352,11 @@ + int process_terminated = 1; + + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) ++#if !defined(CONFIG_PREEMPT_RT) + rcu_read_lock(); ++#else ++ preempt_disable(); ++#endif + #else + read_lock(&tasklist_lock); + #endif +@@ -1373,7 +1377,11 @@ + } + } + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) ++#if !defined(CONFIG_PREEMPT_RT) + rcu_read_unlock(); ++#else ++ preempt_enable(); ++#endif + #else + read_unlock(&tasklist_lock); + #endif --- fglrx-installer-8.600.orig/debian/acpi/fglrx-ac-aticonfig +++ fglrx-installer-8.600/debian/acpi/fglrx-ac-aticonfig @@ -0,0 +1,6 @@ +# /etc/acpi/events/fglrx-ac-aticonfig +# Called when the user connects/disconnects ac power +# + +event=ac_adapter +action=/etc/acpi/fglrx-powermode.sh --- fglrx-installer-8.600.orig/debian/acpi/fglrx-powermode.sh +++ fglrx-installer-8.600/debian/acpi/fglrx-powermode.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +. /etc/default/xorg-driver-fglrx +if [ x$FGLRX_ACPI_SWITCH_POWERSTATES != xtrue ]; then + exit; +fi + +getXuser() { + user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'` + if [ x"$user" = x"" ]; then + user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'` + fi + if [ x"$user" != x"" ]; then + userhome=`getent passwd $user | cut -d: -f6` + export XAUTHORITY=$userhome/.Xauthority + else + export XAUTHORITY="" + fi +} + +grep -q closed /proc/acpi/button/lid/*/state +if [ $? = 0 ]; then + lid_closed=1 +else + lid_closed=0 +fi + +grep -q off-line /proc/acpi/ac_adapter/*/state +if [ $? = 0 ]; then + on_dc=1 +else + on_dc=0 +fi + + + +if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then + echo "fglrx: setting low power" + for x in /tmp/.X11-unix/*; do + displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` + getXuser; + if [ x"$XAUTHORITY" != x"" ]; then + export DISPLAY=":$displaynum" + powermode=`/usr/bin/aticonfig --lsp | grep -m1 low | cut -b 3-3` + if [ x"$powermode" != x"" ]; then + su $user -c "/usr/bin/aticonfig --set-powerstate=$powermode --effective=now" &>/dev/null + fi + fi + done +else + echo "fglrx: setting default powermode" + for x in /tmp/.X11-unix/*; do + displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` + getXuser; + if [ x"$XAUTHORITY" != x"" ]; then + export DISPLAY=":$displaynum" + powermode=`/usr/bin/aticonfig --lsp | grep -m1 default | cut -b 3-3` + if [ x"$powermode" != x"" ]; then + su $user -c "/usr/bin/aticonfig --set-powerstate=$powermode --effective=now" &>/dev/null + fi + fi + done +fi --- fglrx-installer-8.600.orig/debian/acpi/fglrx-lid-aticonfig +++ fglrx-installer-8.600/debian/acpi/fglrx-lid-aticonfig @@ -0,0 +1,6 @@ +# /etc/acpi/events/fglrx-lid-aticonfig +# Called when the user opens or closes the laptop lid +# + +event=button[ /]lid +action=/etc/acpi/fglrx-powermode.sh --- fglrx-installer-8.600.orig/debian/overrides/fglrx-kernel-source.in +++ fglrx-installer-8.600/debian/overrides/fglrx-kernel-source.in @@ -0,0 +1,8 @@ +#We are in restricted, whether lintian has ever heard of it or not +fglrx-kernel-source: unknown-section restricted + +#These unfortunately are needed if we really want to be able to link? +fglrx-kernel-source: arch-independent-package-contains-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC3 +fglrx-kernel-source: unstripped-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC3 +fglrx-kernel-source: arch-independent-package-contains-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC4 +fglrx-kernel-source: unstripped-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC4 --- fglrx-installer-8.600.orig/debian/overrides/xorg-driver-fglrx-dev +++ fglrx-installer-8.600/debian/overrides/xorg-driver-fglrx-dev @@ -0,0 +1,3 @@ +#We are in restricted, whether lintian has ever heard of it or not +xorg-driver-fglrx-dev: unknown-section restricted + --- fglrx-installer-8.600.orig/debian/overrides/fglrx-amdcccle +++ fglrx-installer-8.600/debian/overrides/fglrx-amdcccle @@ -0,0 +1,5 @@ +#We are in restricted, whether lintian has ever heard of it or not +fglrx-amdcccle: unknown-section restricted + +#AMD doesn't appear to document these binaries +fglrx-amdcccle: binary-without-manpage usr/bin/amdcccle --- fglrx-installer-8.600.orig/debian/overrides/xorg-driver-fglrx +++ fglrx-installer-8.600/debian/overrides/xorg-driver-fglrx @@ -0,0 +1,19 @@ +#We are in restricted, whether lintian has ever heard of it or not +xorg-driver-fglrx: unknown-section restricted + +#AMD doesn't appear to document these binaries +xorg-driver-fglrx: binary-without-manpage usr/bin/aticonfig +xorg-driver-fglrx: binary-without-manpage usr/bin/atiodcli +xorg-driver-fglrx: binary-without-manpage usr/bin/atiode +xorg-driver-fglrx: binary-without-manpage usr/bin/fgl_glxgears +xorg-driver-fglrx: binary-without-manpage usr/bin/fglrx_xgamma +xorg-driver-fglrx: binary-without-manpage usr/bin/fglrxinfo +xorg-driver-fglrx: binary-without-manpage usr/sbin/atieventsd +xorg-driver-fglrx: binary-without-manpage usr/sbin/amdnotifyui + +#We have NO control of AMD's build process +xorg-driver-fglrx: sharedobject-in-library-directory-missing-soname usr/lib/libatiadlxx.so +xorg-driver-fglrx: shlib-with-non-pic-code usr/lib/libGL.so.1.2 + +#It's awfully silly to break these out as they are only ever installed with fglrx +xorg-driver-fglrx: package-name-doesnt-match-sonames libGL1 libfglrx-dm1.0 libfglrx-gamma1 libfglrx-pp1.0 libfglrx-tvout1 --- fglrx-installer-8.600.orig/debian/replacements/authatieventsd.sh +++ fglrx-installer-8.600/debian/replacements/authatieventsd.sh @@ -0,0 +1,111 @@ +#!/bin/sh + +# +# Control script grant/revoke access to X for the ATI External Events Daemon +# +# Distro maintainers may modify this reference script as necessary to conform +# to their distribution policies. +# +# Copyright (c) 2006, ATI Technologies Inc. All rights reserved. +# + +# +# Parameters: +# $1 is a keyword, either "grant" or "revoke" +# $2 is the display name +# $3 is the X authorization file to be authorized +# +# Returns: +# 0 if authorization was successfully granted/revoked +# nonzero on failure +# +# Note: +# The third parameter only makes sense if xauth is being used. If another +# mechanism such as xhost is being used it can be ignored. For setups that +# do not do any form of authentication(!) this script can be trimmed down +# to just "exit 0" and the daemon will assume that it is always authorized. +# + +GetServerAuthFile() +{ + # Determine where the authorization key may be hiding. The location will + # vary depending upon whether X was started via xdm/kdm, gdm or startx, so + # check each one in turn. + + # Check xdm + + XDM_AUTH_MASK=/var/lib/xdm/authdir/authfiles/A$1* + XDM_AUTH_FILE=`ls -t $XDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file + if [ -n "$XDM_AUTH_FILE" ]; then + SERVER_AUTH_FILE=$XDM_AUTH_FILE + DISP_SEARCH_STRING="#ffff#" + return 0 + fi + + # Check kdm + KDM_AUTH_MASK=/var/run/xauth/A$1* + KDM_AUTH_FILE=`ls -t $KDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file + if [ -n "$KDM_AUTH_FILE" ]; then + SERVER_AUTH_FILE=$KDM_AUTH_FILE + DISP_SEARCH_STRING="#ffff#" + return 0 + fi + + # Check gdm + + GDM_AUTH_FILE=/var/lib/gdm/$1.Xauth + if [ -e $GDM_AUTH_FILE ]; then + SERVER_AUTH_FILE=$GDM_AUTH_FILE + DISP_SEARCH_STRING="$1" + return 0 + fi + + # Finally, check for startx + + for XPID in `pidof X`; do + TRIAL_XAUTH_FILE=`tr '\0' '\n' < /proc/$XPID/environ | grep -e "^XAUTHORITY=" | cut -d= -f2` + TRIAL_XAUTH_KEY=`xauth -f $TRIAL_XAUTH_FILE list | grep "unix$1"` + if [ -n "$TRIAL_XAUTH_KEY" ]; then + SERVER_AUTH_FILE=$TRIAL_XAUTH_FILE + DISP_SEARCH_STRING="unix$1" + return 0 + fi + done + + # Couldn't find the key + + return -1 +} + +# Main part of script + +# +# Since the daemon is usually started during init time before X comes up, +# $PATH may not yet contain the paths to the X binaries, particularly xauth. +# Add the usual location for where xauth may live and fail out if we still +# can't find it. +# + +PATH=$PATH:/usr/bin:/usr/X11R6/bin +which xauth > /dev/null || exit -1 + +case "$1" in + grant) + GetServerAuthFile $2 || exit -1 + DISP_AUTH_KEY=`xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{ print $3 }'` + if [ -n "$DISP_AUTH_KEY" ]; then + xauth -f $3 add $2 . $DISP_AUTH_KEY || exit -1 + else + exit -1 + fi + ;; + + revoke) + xauth -f $3 remove $2 || exit -1 + ;; + + *) + exit -1 + ;; +esac +exit 0 --- fglrx-installer-8.600.orig/debian/modaliases/fglrx_supported +++ fglrx-installer-8.600/debian/modaliases/fglrx_supported @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +filename="$1" + +[ -e "$filename" ] || { + echo "USAGE: $0 path/to/fglrx_drv.so" >&2 + exit 1 +} + +echo "# Listing generated by fglrx_supported. Do not edit manually." + +strings "$filename" | \ + sed -n 's/^0x\([0-9A-F]\{4\}\)$/alias pci:v00001002d0000\1sv*sd*bc03sc*i* fglrx xorg-driver-fglrx/p' | \ + sort | uniq