wiki:UbuntuPackaging

Version 3 (modified by davidsarah, at 2010-08-12T00:22:22Z) (diff)

fix link

Note: This page still needs a bit more information, but is a good start. It also should be formatted better.

In order to package Tahoe for inclusion into Ubuntu, you'll need a few things:

  1. The released tarball (.tar.gz from the releases directory) for the Tahoe version you're updating to.
  2. The existing package in Ubuntu. A simple apt-get source tahoe-lafs should do the trick.

Once you have those things, here's what you need to do:

  1. Unpack the tarball.
  2. Create a new tarball named allmydata-tahoe-<version>.orig.tar.gz, which is the same as the release tarball but with the allmydata-tahoe-<version> directory at its root. Create this with tar cvzf allmydata-tahoe-<version>.orig.tar.gz allmydata...
  3. Copy the debian/ folder from the existing package into the allmydata... folder
  4. Change into the allmydata... folder.
  5. dch -v <new-version>-0ubuntu1
  6. Edit the changelog with the things that have been changed.
  7. After everything is all hunky dory, run debuild -S -sa -k<gpg-key-id>
  8. This should build you a nice package. The .dsc, .orig.tar.gz, .debian.tar.gz, and .changes files all need to be sent to a package sponsor.