start with the tarball, since that's more natural than starting with a .zip on Ubuntu

[Imported from Trac: page UbuntuPackaging, version 2]
davidsarah 2010-08-12 00:22:02 +00:00
parent 4d95031ee5
commit 9e65e3f6f8

@ -2,15 +2,15 @@ Note: This page still needs a bit more information, but is a good start. It als
In order to package Tahoe for inclusion into Ubuntu, you'll need a few things: In order to package Tahoe for inclusion into Ubuntu, you'll need a few things:
1. The released zipfile (why do we use zip files?) for the Tahoe version you're updating to. 1. The released tarball (.tar.gz from <http://tahoe-lafs.org/source/tahoe-lafs/releases/?C=M;O=D> 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. 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: Once you have those things, here's what you need to do:
1. Unpack the zipfile. 1. Unpack the tarball.
2. Create a tarball of the folder created from the zipfile. The tarball has a strict naming convention, which would be tahoe-lafs-<version>.orig.tar.gz. Create this with `tar cvzf tahoe-lafs-<version>.orig.tar.gz allmydata...` 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 3. Copy the debian/ folder from the existing package into the `allmydata...` folder
4. Change into the allmydata... folder. 4. Change into the `allmydata...` folder.
5. `dch -v <new-version>-0ubuntu1` 5. `dch -v <new-version>-0ubuntu1`
6. Edit the changelog with the things that have been changed. 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>` 7. After everything is all hunky dory, run `debuild -S -sa -k<gpg-key-id>`