[Xastir] Deb package for Ubuntu 10.04

Jon K Hellan hellan at acm.org
Wed Jun 23 10:17:49 EDT 2010


Here's how you can - usually - build a deb package of a more recent version of a program when there
already is an official package. The recipe works on Debian, Ubuntu and other like minded Linux
distributions. All commands should be entered from a shell.

1. Get the essential tools for building packages:
  sudo apt-get install build-essential

2. Install headers and tools needed for building your package:

  sudo apt-get build-dep xastir

3. Download the source to the official package. cd to a suitable place and:

  apt-get source xastir

the source will end up in the directory xastir-<version>, e.g. xastir-1.9.4, below your current
location

4. cd to a suitable place. Check out the current version of the source from CVS, or download and
unpack the tar file with the version you want.

5. cd into the source directory. Copy the 'debian' directory from the package source into your source
like this:

   cp -rp <packagesourcdir>/debian/* debian

6. Edit the version number at the top of the file debian/changelog. E.g change

xastir (1.9.4-3.1) unstable; urgency=low

to

xastir (1.9.9-1local) unstable; urgency=low

7. Build the package using the command

  dpkg-buildpackage -rfakeroot

If the source hasn't changed too much since it was packaged for Ubuntu/Debian, this will result
in a .deb file in the directory above the source directory.

If you want to enable other options than Ubuntu does, they run 'configure' from the file
'debian/rules'. You can change the arguments there, but remember to install the libraries
*and* the -dev packages with header files.

73
Jon LA4RT



More information about the Xastir mailing list