tuxcmd-modules for Debian
-------------------------

tuxcmd-modules ships source code which gets duplicated (libarchive, 
bzip2 source code shipped upstream).

Note on zlib: The ZipArchive Library does not use the Zlib library that 
is installed in the system. The Zlib library included in the ZipArchive 
Library is slightly modified for its needs.

The Debian orig.tar.gz is thus repackaged and reduces significantly the
source package size.

To get the orig.tar.gz shipped with debian you need to do the following
steps:
 
 1. Download upstream source (from project homepage):

	tar xjvf tuxcmd-modules-$version.tar.bz2

 2. Change directory into the unpacked sources:

	cd tuxcmd-modules-$version
 
 3. Remove libarchive-* source shipped upstream:

	rm -rf libarchive/libarchive-*
 
 4. Remove bzip2 copy shipped with ZipArchive and only use system bz2:

	rm -r zip/ZipArchive/bzip2

 5. Rename and repack the source:

	cd ..
	mv tuxcmd-modules-$version tuxcmd-modules-$version+ds
	tar cvf tuxcmd-modules_$version+ds.orig.tar \
		tuxcmd-modules-$version+ds
	gzip --best tuxcmd-modules_$version+ds.orig.tar
