Congratulations! If you made it this far through these exercises, you should be quite proficient enough to create the first packages of your own. There are a couple more interesting things that you might want to look into though:
If like me, you've got machines running Etch, Lenny, Hardy, Intrepid, Jaunty and also Sid and Karmic or even <horrors> Gutsy and Sarge </horrors>, with amd64, i386 and perhaps ia64 and ppc architectures, then you may want to build packages for multiple distributions/architectures. Then you definitely want to look into the PBuilder HOWTO. Or you may want to look into CowBuilder or QemuBuilder.
Default configuration can be augmented with debconf
.
CDBS, the Common Debian Build System, was already mentioned as an alternative for writing entire debian/rules
, and keeping them cleaner too.
Procedure 2.5. Building and uploading with pdebuild
Building
jurjen@packager:~ $ cd packaging/lwp-utils/lwp-utils-0.1.0
jurjen@packager:~/packaging/lwp-utils/lwp-utils-0.1.0$ mkdir ../lastbuild
jurjen@packager:~/packaging/lwp-utils/lwp-utils-0.1.0$ pdebuild --auto-debsign --debsign-k "j.bokma@rug.nl" --buildresult ../lastbuild --logfile ../lastbuild/pdebuild.log
Uploading
jurjen@packager:~/packaging/lwp-utils/lwp-utils-0.1.0$ dupload --nomail -t lwp-lucid ../lastbuild/lwp-utils_0.1.0-1_amd64.changes
dupload note: no announcement will be sent.
Checking signatures before upload......signatures are ok
Uploading (scp) to repo.service.rug.nl:/srv/upload/repo/lucid/lwp-experimental/
[ job lwp-utils_0.1.0-1_amd64 from lwp-utils_0.1.0-1_amd64.changes
lwp-utils_0.1.0.orig.tar.gz, size ok, md5sum ok, sha1sum ok, sha256sum ok
lwp-utils_0.1.0-1_all.deb, size ok, md5sum ok, sha1sum ok, sha256sum ok
lwp-utils_0.1.0-1.diff.gz, size ok, md5sum ok, sha1sum ok, sha256sum ok
lwp-utils_0.1.0-1.dsc, size ok, md5sum ok, sha1sum ok, sha256sum ok
lwp-utils_0.1.0-1_amd64.changes ok ]
Uploading (scp) to lwp-lucid (repo.service.rug.nl)
[ Uploading job lwp-utils_0.1.0-1_amd64
lwp-utils_0.1.0.orig.tar.gz 4.6 kB, ok (0 s, 4.57 kB/s)
lwp-utils_0.1.0-1_all.deb 7.2 kB, ok (0 s, 7.21 kB/s)
lwp-utils_0.1.0-1.diff.gz 1.9 kB, ok (0 s, 1.90 kB/s)
lwp-utils_0.1.0-1.dsc 0.9 kB, ok (1 s, 0.93 kB/s)
lwp-utils_0.1.0-1_amd64.changes 1.6 kB, ok (0 s, 1.63 kB/s) ]
jurjen@packager:~/packaging/lwp-utils/lwp-utils-0.1.0$