--- xcolorsel-1.1a.orig/debian/postrm
+++ xcolorsel-1.1a/debian/postrm
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
--- xcolorsel-1.1a.orig/debian/rules
+++ xcolorsel-1.1a/debian/rules
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# Debian rules file for xcolorsel (1.1a), adapted by Larry Daffner from
+# Sample debian.rules file - for GNU Hello (1.3).
+# Copyright 1994,1995 by Ian Jackson.
+# I hereby give you perpetual unlimited permission to copy,
+# modify and relicense this file, provided that you do not remove
+# my name from the file itself.  (I assert my moral right of
+# paternity under the Copyright, Designs and Patents Act 1988.)
+# This file may have to be extensively modified
+
+PACKAGE = xcolorsel
+
+DEB_CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+DEB_CFLAGS += -O0
+else
+DEB_CFLAGS += -O2
+endif
+
+build:
+	$(checkdir)
+	xmkmf -a -DHasSELinux=0
+	$(MAKE) XAWLIB=-lXaw3d CFLAGS='$(DEB_CFLAGS)'
+	touch build
+
+clean:
+	$(checkdir)
+	# Need to do cleandir first, because purge doesn't
+	-$(MAKE) cleandir
+	-$(MAKE) purge
+	-rm -f build
+	-rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
+
+binary-indep:	checkroot build
+	$(checkdir)
+
+binary-arch:	checkroot build
+	$(checkdir)
+	-rm -rf debian/tmp
+	install -d debian/tmp debian/tmp/DEBIAN
+	install -d debian/tmp/usr/share/doc/$(PACKAGE)
+	install -d debian/tmp/usr/share/menu
+	cp debian/conffiles debian/postinst debian/postrm debian/tmp/DEBIAN/.
+	chmod 755 debian/tmp/DEBIAN/postinst debian/tmp/DEBIAN/postrm
+	$(MAKE) DESTDIR=debian/tmp BINDIR='$(DESTDIR)/usr/bin' LIBDIR='$(DESTDIR)/usr/lib' install
+	$(MAKE) DESTDIR=debian/tmp MANPATH='$(DESTDIR)/usr/share/man' PROJECTMANSUFFIX='' install.man
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	strip --strip-unneeded --remove-section=.note \
+			--remove-section=.comment \
+			debian/tmp/usr/bin/xcolorsel
+endif
+	cp debian/menu debian/tmp/usr/share/menu/xcolorsel
+	cp debian/copyright debian/tmp/usr/share/doc/$(PACKAGE)/.
+	cp debian/changelog debian/tmp/usr/share/doc/$(PACKAGE)/changelog.Debian
+	cp 01-CHANGELOG debian/tmp/usr/share/doc/$(PACKAGE)/changelog
+	cp 00-ANNOUNCE debian/tmp/usr/share/doc/$(PACKAGE)/ANNOUNCE
+	cp 00-README debian/tmp/usr/share/doc/$(PACKAGE)/README
+	gzip -9v debian/tmp/usr/share/doc/$(PACKAGE)/changelog
+	gzip -9v debian/tmp/usr/share/doc/$(PACKAGE)/changelog.Debian
+	gzip -9v debian/tmp/usr/share/doc/$(PACKAGE)/ANNOUNCE
+	gzip -9v debian/tmp/usr/share/doc/$(PACKAGE)/README
+	gzip -9v debian/tmp/usr/share/man/man1/xcolorsel.1
+	dpkg-shlibdeps xcolorsel
+	dpkg-gencontrol -isp
+	chown -R root.root debian/tmp
+	chmod -R u+w debian/tmp
+	chmod -R g-ws debian/tmp
+	dpkg --build debian/tmp ..
+
+define checkdir
+	test -f xcolorsel.c -a -f debian/rules
+endef
+
+# Below here is fairly generic really
+
+binary:		binary-indep binary-arch
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- xcolorsel-1.1a.orig/debian/control
+++ xcolorsel-1.1a/debian/control
@@ -0,0 +1,16 @@
+Source: xcolorsel
+Section: x11
+Priority: optional
+Maintainer: Decklin Foster <decklin@red-bean.com>
+Build-Depends: libx11-dev, libxt-dev, xaw3dg-dev, libxaw7-dev, xutils-dev
+Standards-Version: 3.6.2
+
+Package: xcolorsel
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: display colors and names in X
+ xcolorsel is an X utility that displays the contents of the X color list
+ file (/etc/X11/rgb.txt) together with tiles showing how the color looks on
+ your screen.  You can cut the color names/definitions in various formats
+ (suitable for resource files or C source) so they can be pasted directly
+ into source codes or resources.
--- xcolorsel-1.1a.orig/debian/postinst
+++ xcolorsel-1.1a/debian/postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ "$1" = configure ]; then
+
+    if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
+
+    # Clean up after old versions. This must stay in until etch. N.b. /usr/doc
+    # itself MAY be a symlink so we cannot do this unconditionally.
+    if [ -L /usr/doc/xcolorsel ]; then
+        rm -f /usr/doc/xcolorsel
+    fi
+
+fi
--- xcolorsel-1.1a.orig/debian/menu
+++ xcolorsel-1.1a/debian/menu
@@ -0,0 +1,2 @@
+?package(xcolorsel):needs="x11" section="Apps/Tools" title="Xcolorsel" \
+	command="/usr/bin/xcolorsel"
--- xcolorsel-1.1a.orig/debian/copyright
+++ xcolorsel-1.1a/debian/copyright
@@ -0,0 +1,10 @@
+This is the GNU/Linux prepackaged version of xcolorsel.
+
+This package was put together by Larry Daffner <vizzie@airmail.net>
+from sources obtained from:
+	ftp://ftp.x.org/R5contrib/xcolorsel-1.1a-src.tar.gz
+
+This software has been released under the GNU General Public License
+
+On GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
--- xcolorsel-1.1a.orig/debian/changelog
+++ xcolorsel-1.1a/debian/changelog
@@ -0,0 +1,165 @@
+xcolorsel (1.1a-17) unstable; urgency=low
+
+  * Correct xutils build-dep to xutils-dev (Closes: #485541)
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon, 16 Jun 2008 22:17:17 -0400
+
+xcolorsel (1.1a-16) unstable; urgency=low
+
+  * Replace hardcoded reference to /usr/lib/X11/rgb.txt with /etc/X11/rgb.txt.
+
+ -- Decklin Foster <decklin@red-bean.com>  Sat, 15 Apr 2006 18:18:19 -0400
+
+xcolorsel (1.1a-15) unstable; urgency=low
+
+  * The "Party like it's 2002" release
+  * Do not attempt to clean up in /usr/doc if that directory is actually a
+    symlink to /usr/share/doc. (Closes: #356075)
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu,  9 Mar 2006 12:02:12 -0500
+
+xcolorsel (1.1a-14) unstable; urgency=low
+
+  * Remove /usr/doc/xcolorsel in postinst in case an older version did not
+    clean it up. (Closes: #355341)
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon,  6 Mar 2006 17:52:43 -0500
+
+xcolorsel (1.1a-13) unstable; urgency=low
+
+  * Rebuild against libxaw7, and change build-deps to prevent building against
+    libxaw6 or libxaw8. (Closes: #321668)
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 10 Jan 2006 14:21:23 -0500
+
+xcolorsel (1.1a-12) unstable; urgency=low
+
+  * Build against X.org (libx11-dev and libxt-dev, instead of XFree86's
+    xlibs-dev). (Closes: #346800)
+  * Bump Standards-Version to 3.6.2.
+  * Rebuild now that xaw3d is fixed. The above changes are from before I
+    opened this bug. (Closes: #321668)
+  * Install to /usr/bin, /usr/share/man, etc, instead of /usr/X11R6.
+  * Fix section in man page.
+  * Install menu file to /usr/share/menu.
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon,  9 Jan 2006 20:43:57 -0500
+
+xcolorsel (1.1a-11) unstable; urgency=low
+
+  * New maintainer (Closes: #160303)
+  * Rebuild with new xaw3dg (Closes: #136891)
+    - Well, that was stupidly easy. Thanks, xaw3d people!
+  * Remove all traces of obsolete xaw-wappers support
+  * Comply with policy 3.6.0
+    - Do not set /usr/doc link
+    - Respect DEB_BUILD_OPTIONS
+
+ -- Decklin Foster <decklin@red-bean.com>  Sun, 24 Aug 2003 10:38:27 -0400
+
+xcolorsel (1.1a-10) unstable; urgency=low
+
+  * build explicitly with Xaw3d and depend on it.  Add it to Build-Depends too.
+  * This conveniently (closes: #128236).
+  * Remove hacks from 1.1a-8.1 as Xaw3d apes the older Xaw.
+  * Change source maintainer to myself (closes: #82446).
+
+ -- Ian Zimmerman <itz@speakeasy.org>  Fri, 15 Feb 2002 08:10:40 -0800
+
+xcolorsel (1.1a-9) unstable; urgency=low
+
+  * QA upload.
+  * Don't assume that hppa is HP-UX (closes: #105072).
+  * Clean debian/substvars.
+
+ -- Colin Watson <cjwatson@debian.org>  Wed, 25 Jul 2001 14:11:18 +0100
+
+xcolorsel (1.1a-8.2) unstable; urgency=low
+
+  * NMU
+  * Package is orphaned, setting the maintainer to the Debian QA Group
+
+ -- Carlos Laviola <claviola@ajato.com.br>  Fri, 13 Apr 2001 01:14:34 -0300
+
+xcolorsel (1.1a-8.1) unstable; urgency=low
+
+  * NMU
+  * RgbSrc.c, RgbSink.c: some quick hacks to get around the fact that the
+    author of this X client did what you're never supposed to do; relied
+    upon internal interfaces of a library he depended upon.  So, of course,
+    xcolorsel wouldn't build now that Xaw has revved.
+  * /usr/doc -> /usr/share/doc
+  * strip installed binary
+  * comment out xaw-wrappers stuff, now that we are built against Xaw7
+  * lintian 1.20.9 clean
+  * debian/control:
+    - added Build-Depends
+    - bumped Standards-Version to 3.5.2
+  * debian/copyright:
+    - correct path to GPL license text
+  * debian/rules:
+    - add -isp to dpkg-gencontrol
+
+ -- Branden Robinson <branden@debian.org>  Fri, 16 Mar 2001 21:31:36 -0500
+
+xcolorsel (1.1a-8) unstable; urgency=low
+
+  * debian/menu: New file: adds menu support
+  * debian/xaw-wrappers: New file: support for new xaw-wrappers (#37106)
+  * debian/postinst: Changes for new xaw-wrappers support
+  * debian/postrm: Changes for new xaw-wrappers support
+  * debian/prerm: New file needed for new xaw-wrappers support
+  * debian/rules: Changes for menu and xaw-wrappers support
+  * debian/rules: Remove use of {foo,bar} bashism
+  * xcolorsel.c: Return zero from main
+
+ -- Mark Baker <mbaker@iee.org>  Mon,  5 Jul 1999 23:53:52 +0100
+
+xcolorsel (1.1a-7) unstable; urgency=low
+
+  * Rewritten description into English instead of bad-English (#18976)
+
+ -- Mark Baker <mbaker@iee.org>  Sat, 07 Mar 1998 16:18:36 +0000
+
+xcolorsel (1.1a-6) unstable; urgency=low
+
+  * Fixed permissions
+  * Updated standards version to 2.4.0.0
+
+ -- Mark Baker <mbaker@iee.org>  Tue, 09 Sep 1997 22:18:55 +0100
+
+xcolorsel (1.1a-5) unstable; urgency=low
+
+  * Compiled against xlib6g...
+  * ... and in the process lose bogus dependency on elf-x11r6 (#12649)
+
+ -- Mark Baker <mbaker@iee.org>  Tue, 09 Sep 1997 22:18:55 +0100
+
+xcolorsel (1.1a-4) unstable; urgency=low
+
+  * Changed maintainer field in control file, as I forgot to do last time
+
+ -- Mark Baker <mbaker@iee.org>  Sun, 13 Jul 1997 22:03:10 +0100
+
+xcolorsel (1.1a-3) unstable; urgency=low
+
+  * New maintainer
+  * Compiled against libc6
+  * Changed the colour scheme so you can read the buttons
+
+ -- Mark Baker <mbaker@iee.org>  Fri, 20 Jun 1997 17:47:37 +0100
+
+xcolorsel (1.1a-2) unstable; urgency=low
+
+  * Call install-fvwm2menu if available
+
+ -- Larry Daffner <vizzie@airmail.net>  Thu, 17 Oct 1996 00:27:46 -0500
+
+xcolorsel (1.1a-1) unstable; urgency=low
+
+  * New package
+
+ -- Larry Daffner <vizzie@airmail.net>  Wed, 2 Oct 1996 14:08:04 -0500
+
+
+
--- xcolorsel-1.1a.orig/debian/conffiles
+++ xcolorsel-1.1a/debian/conffiles
@@ -0,0 +1,2 @@
+/etc/X11/app-defaults/Xcolorsel
+/etc/X11/app-defaults/Xcolorsel-color
