How to build a package:

Read the guides or at least install the necessary packages as detailed here:

http://www.debian.org/doc/maint-guide/index.en.html
https://wiki.ubuntu.com/PackagingGuide/Complete


Set-up your ~/.bachrc so the package scripts known who you are:
e.g. 
export DEBFULLNAME='Paul Broadhead' 
export DEBEMAIL='pjbroad@twinmoons.clara.co.uk'


If you're going to sign the package make sure you have keys set-up:
https://help.ubuntu.com/community/GnuPrivacyGuardHowto


Now we're ready:

Set the version number
	
	elver="1.8.0"

Checkout a clean version of the client

	cvs -d:pserver:anonymous@cvs.elc.berlios.de:/cvsroot/elc login 

	cvs -z3 -d:pserver:anonymous@cvs.elc.berlios.de:/cvsroot/elc co elc
	
Make an original source tar ball:

	cd elc
	bash pkgfiles/maketarball ${elver}
	cd ..
	
Setup a temp directory for the build:
	
	tmpdir=$( mktemp -d)
	mv eternallands-${elver}.tar.gz $tmpdir
	cd $tmpdir

Unpack the tarball then rename it as the original:
	
	tar xfz eternallands-${elver}.tar.gz
	mv eternallands-${elver}.tar.gz eternallands_${elver}.orig.tar.gz
	
Move into package directory:

	cd eternallands-${elver}/
	
Append the licence file to the copyright file:

	cat eternal_lands_license.txt >> debian/copyright

Make any modifications required then update the changelog:

	dch -i
	
Build the package:

	debuild
