Building The Debian Package

This is a raw unformatted dump of what we did to build and upload the Lire .deb.

              $ cd ~/cvs-sourceforge/logreport/package/debian
              $ vi changelog 

:r !date --rfc

              $ cd /usr/local/src/debian/lire/debian/20010219
	  
Run 'debian-install-build woody'. This does:
              $ cd /usr/local/src/debian/lire/debian/20010219
              $ cp \
  ~/cvs-sourceforge/logreport/service/lire-20010219.tar.gz .

              $ tar zxf lire-20010219.tar.gz 
              $ cd lire/20010418
              $ mv lire-20010418 lire-20010418.orig
              $ tar zxf lire-20010418.tar.gz
              $ cd lire-20010418
              $ mkdir debian
              $ cp \
   ~/cvs-sourceforge/logreport/package/debian/[^C]* debian/
	  
Export the shell environment variable EMAIL, it should hold your emailaddress, as it is to appear in the package's maintainers field. (One could use 'dh_make --copyright gpl -s' on first time debianizing.) Build the .deb by running:
$ debuild 2>&1 | tee /tmp/build
	  
Check the .deb:
$ debc | less
	  
After having really tested it (dpkg -i, purge, etc.), optionally install it on any local apt-able websites you might have (Joost has one on http://mdcc.cx/debian/ ) and upload it to hibou's apt-able archive:
$ scp lire_20010418-1_all.deb \
 hibou.logreport.org:/var/www/logreport.org/pub/debian/dists/local/contrib/binary-all/admin/

$ scp lire_20010418*.gz \
 hibou.logreport.org:/var/www/logreport.org/pub/debian/dists/local/contrib/source/admin/
	  
On hibou, update the Packages file by running
$ cd /var/www/logreport.org/pub/debian
$ make
	  
Move the old debian stuff to hibou:/pub/archive/debian/ .

Upload it to the official debian mirrors:

vanbaal@gelfand:/usr...src/debian/lire/20010418% date; \
  dupload lire_20010418-1_i386.changes 
Thu Apr 19 14:27:38 CEST 2001
Uploading (ftp) to ftp.uk.debian.org:debian/UploadQueue/
[ job lire_20010418-1_i386 from lire_20010418-1_i386.changes New dpkg-dev, announcement will NOT be sent
 lire_20010418.orig.tar.gz, md5sum ok
 lire_20010418-1.diff.gz, md5sum ok
 lire_20010418-1_all.deb, md5sum ok
 lire_20010418-1.dsc, md5sum ok
 lire_20010418-1_i386.changes ok ]
Uploading (ftp) to uk (ftp.uk.debian.org)
 lire_20010418.orig.tar.gz 163.1 kB , ok (12 s, 13.59 kB/s)
 lire_20010418-1.diff.gz 32.6 kB , ok (3 s, 10.88 kB/s)
 lire_20010418-1_all.deb 222.4 kB , ok (16 s, 13.90 kB/s)
 lire_20010418-1.dsc 0.6 kB , ok (0 s, 0.60 kB/s)
 lire_20010418-1_i386.changes 1.2 kB , ok (1 s, 1.22 kB/s) ]
	  
check ftp://ftp.uk.debian.org/debian/UploadQueue/

For a potato release:

vanbaal@gelfand:~/cvs-sourceforge/logreport/package% scp \
  ../service/lire-20010626.tar.gz stegun:/usr/local/src/debian/lire/

joostvb@stegun:/usr...sr/local/src/debian/lire% tar zxf \
   lire-20010626.tar.gz
joostvb@stegun:/usr...sr/local/src/debian/lire% mv \
   lire-20010626 lire-20010626.orig
joostvb@stegun:/usr...sr/local/src/debian/lire% tar zxf \
   lire-20010626.tar.gz
joostvb@stegun:/usr...sr/local/src/debian/lire% mkdir \
   lire-20010626/debian


vanbaal@gelfand:~/cvs-sourceforge/logreport/package% scp \
  debian/[^C]* stegun:/usr/local/src/debian/lire/lire-20010626/debian/
vanbaal@gelfand:~/cvs-sourceforge/logreport/package% scp \
  debian-potato/[^C]* stegun:/usr/local/src/debian/lire/lire-20010626/debian/

joostvb@stegun:/usr...sr/local/src/debian/lire% patch -p0 \
  < lire-20010626/debian/lire-20010626.patch

joostvb@stegun:/usr...ebian/lire/lire-20010626% debuild

-rw-r--r-- 1 joostvb src  14k Jun 28 15:21 lire_20010626-1potato2.diff.gz
-rw-r--r-- 1 joostvb src  625 Jun 28 15:23 lire_20010626-1potato2.dsc
-rw-r--r-- 1 joostvb src 208k Jun 28 15:22 lire_20010626-1potato2_all.deb
-rw-r--r-- 1 joostvb src 1.1k Jun 28 15:23 lire_20010626-1potato2_i386.changes

	  
or use the debian-install-build script in cvs-sourceforge/logreport/package.