--- videolink-0.9.orig/debian/control
+++ videolink-0.9/debian/control
@@ -0,0 +1,19 @@
+Source: videolink
+Maintainer: Ben Hutchings <ben@decadent.org.uk>
+Section: graphics
+Priority: extra
+Build-Depends: debhelper (>=4), libboost-dev, libgtkmm2.0-dev, libxul-dev | mozilla-dev, libexpat1-dev
+Standards-Version: 3.6.2
+
+Package: videolink
+Architecture: any
+Depends: xvfb, dvdauthor, ffmpeg | mjpegtools, ffmpeg | netpbm, ${shlibs:Depends}, ${mozilla:Depends}
+Recommends: mkisofs, xfonts-base
+Description: assembles a DVD video filesystem from HTML pages and video files
+ VideoLink is intended to provide a simple way of producing DVDs with
+ attractive and usable menus.  It converts HTML pages into DVD menus by
+ rendering them in Mozilla and reproducing their link structure.  This
+ allows you to design DVDs using familiar HTML editing tools or your
+ favourite text editor.
+ .
+  Homepage: http://womble.decadent.org.uk/software/videolink/
--- videolink-0.9.orig/debian/compat
+++ videolink-0.9/debian/compat
@@ -0,0 +1 @@
+4
--- videolink-0.9.orig/debian/changelog
+++ videolink-0.9/debian/changelog
@@ -0,0 +1,25 @@
+videolink (0.9-2) unstable; urgency=low
+
+  * Removed strict version dependency on libxul0d on advice of its
+    maintainer - closes: #385566
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Wed,  6 Sep 2006 03:27:54 +0100
+
+videolink (0.9-1) unstable; urgency=low
+
+  * New upstream version
+  * Changed to build with XULRunner by preference
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Wed, 16 Aug 2006 01:47:34 +0100
+
+videolink (0.8-1) unstable; urgency=low
+
+  * Initial upload - closes: #382117
+  * Separated Debian-independent changelog
+  * Changed xfonts-base from dependency to recommendation
+  * Changed netpbm dependency to ffmpeg | netpbm since it is only needed
+    in conjunction with mjpegtools
+  * Changed Mozilla dependency to accept binary-only updates
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Thu, 10 Aug 2006 22:16:56 +0100
+
--- videolink-0.9.orig/debian/copyright
+++ videolink-0.9/debian/copyright
@@ -0,0 +1,19 @@
+This is the Debian-packaged version of VideoLink.
+
+Copyright 2005, 2006 Ben Hutchings <ben@decadent.org.uk>.
+
+VideoLink is licenced under the GNU GPL, version 2, with the following
+additions:
+
+A. You may combine and distribute VideoLink and derivative works with
+   libraries licenced under the GNU LGPL without exercising the option to
+   treat them as licenced under the GPL.
+
+B. When distributing VideoLink or derivative works without source code
+   included you must ensure that the documentation retains the notice that
+   "this software is based in part on the work of the Independent JPEG
+   Group", or else remove the code contained in jquant2.c to which that
+   notice applies.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL'.
--- videolink-0.9.orig/debian/rules
+++ videolink-0.9/debian/rules
@@ -0,0 +1,41 @@
+#!/usr/bin/make -f
+
+build :
+	make prefix=/usr
+
+binary : binary-arch binary-indep
+
+binary-arch : build
+	dh_testroot
+	make DESTDIR=debian/videolink prefix=/usr install
+	dh_strip
+	dh_shlibdeps
+	# VideoLink relies on some un-frozen APIs which may break
+	# between releases and even with backported security patches.
+	# The libxul packages have sonames and a shlibs file so we
+	# should get correct dependencies automatically, but this is
+	# not the case for mozilla-browser.
+	if dpkg-query -W libxul-dev >&/dev/null; then \
+	    echo "mozilla:Depends=" >> debian/videolink.substvars ; \
+	else \
+	    MOZ_VERSION=$$(dpkg-query -W --showformat='$${version}' mozilla-browser | sed 's/+b[0-9]*$$//') \
+	    && echo "mozilla:Depends=mozilla-browser (>= $$MOZ_VERSION), mozilla-browser (<< $${MOZ_VERSION}+b99)" >> debian/videolink.substvars ; \
+	fi
+	mkdir -p -m755 debian/videolink/usr/share/doc/videolink
+	install -m644 debian/copyright debian/videolink/usr/share/doc/videolink/copyright
+	mv debian/videolink/usr/share/doc/videolink/ChangeLog.gz \
+	    debian/videolink/usr/share/doc/videolink/changelog.gz
+	dh_installchangelogs
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_builddeb
+
+binary-indep :
+
+clean :
+	make clean
+	dh_clean
+
+.PHONY : build binary binary-arch binary-dep clean svn-build
