--- xf86-video-displaylink-0.3.orig/debian/watch +++ xf86-video-displaylink-0.3/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://projects.unbit.it/downloads/udlfb-0.2.3_and_xf86-video-displaylink-([\d\.]+).tar.gz --- xf86-video-displaylink-0.3.orig/debian/changelog +++ xf86-video-displaylink-0.3/debian/changelog @@ -0,0 +1,6 @@ +xf86-video-displaylink (0.3-0ubuntu1) lucid; urgency=low + + * Initial release. (LP: #516349) + * Added patch from Gentoo X11 overlay ebuild to use newer X API + + -- Emmet Hikory Mon, 01 Feb 2010 21:14:07 -0800 --- xf86-video-displaylink-0.3.orig/debian/control +++ xf86-video-displaylink-0.3/debian/control @@ -0,0 +1,16 @@ +Source: xf86-video-displaylink +Maintainer: Emmet Hikory +Priority: optional +Section: x11 +Build-Depends: debhelper (>= 7.0.50~), quilt, pkg-config, xserver-xorg-dev, x11proto-video-dev, x11proto-core-dev, x11proto-input-dev, x11proto-fonts-dev, x11proto-randr-dev, x11proto-render-dev, automake, xutils-dev +Standards-Version: 3.8.3 +Homepage: http://libdlo.freedesktop.org/wiki/xf86-driver-displaylink + +Package: xf86-video-displaylink +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: X driver for DisplayLink devices + This X driver allows one to use a DisplayLink device as display. There + is limited support for xrandr, and none for render at the current time. + . + This driver runs atop the displaylink-mod kernel driver. --- xf86-video-displaylink-0.3.orig/debian/compat +++ xf86-video-displaylink-0.3/debian/compat @@ -0,0 +1 @@ +7 --- xf86-video-displaylink-0.3.orig/debian/copyright +++ xf86-video-displaylink-0.3/debian/copyright @@ -0,0 +1,30 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: xf86-video-displaylink +Maintainer: Roberto De Ioris +Source: http://projects.unbit.it/downloads/ + +Files: * +Copyright: 2009 Roberto De Ioris +License: GPL-2 + +Files: debian/* +Copyright: 2010 Emmet Hikory +License: GPL-2 + +License: GPL-2 + This program 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 2 of the License, or + (at your option) any later version. + + This program 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 program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + On Debian systems, the complete text of the GNU General Public License, + version 2, can be found in /usr/share/common-licenses/GPL-2. --- xf86-video-displaylink-0.3.orig/debian/rules +++ xf86-video-displaylink-0.3/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +override_dh_installchangelogs: + dh_installchangelogs xf86-video-displaylink/ChangeLog +%: + dh --with quilt --sourcedirectory=xf86-video-displaylink $@ --- xf86-video-displaylink-0.3.orig/debian/README.source +++ xf86-video-displaylink-0.3/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- xf86-video-displaylink-0.3.orig/debian/patches/series +++ xf86-video-displaylink-0.3/debian/patches/series @@ -0,0 +1 @@ +xorg-abi-fix.patch --- xf86-video-displaylink-0.3.orig/debian/patches/xorg-abi-fix.patch +++ xf86-video-displaylink-0.3/debian/patches/xorg-abi-fix.patch @@ -0,0 +1,29 @@ +Description: Migrate driver to X ABI 6+ +Origin: Gentoo x11 overlay ebuild +Index: xf86-video-displaylink-0.3/xf86-video-displaylink/src/displaylink.c +=================================================================== +--- xf86-video-displaylink-0.3.orig/xf86-video-displaylink/src/displaylink.c 2010-02-01 20:31:59.000000000 -0800 ++++ xf86-video-displaylink-0.3/xf86-video-displaylink/src/displaylink.c 2010-02-01 20:32:33.000000000 -0800 +@@ -46,8 +46,10 @@ + + #include "fb.h" + ++#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6 + #include "xf86Resources.h" + #include "xf86RAC.h" ++#endif + + #include "fbdevhw.h" + +@@ -282,9 +284,11 @@ + + fPtr->pEnt = xf86GetEntityInfo(pScrn->entityList[0]); + ++#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6 + pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; + /* XXX Is this right? Can probably remove RAC_FB */ + pScrn->racIoFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; ++#endif + + /* open device */ + if (!fbdevHWInit(pScrn,NULL,xf86FindOptionValue(fPtr->pEnt->device->options,"fbdev")))