Ticket #1454: debian.rst

File debian.rst, 2.1 KB (added by warner, at 2011-08-01T01:54:03Z)

replacement docs

Line 
1==============
2Debian Support
3==============
4
51.  `Overview`_
62.  `Dependency Packages`_
7
8Overview
9========
10
11Tahoe-LAFS is provided as a .deb package in current Debian (>=wheezy) and
12Ubuntu (>=lucid) releases. Before official packages were added, the Tahoe
13source tree provided support for building unofficial packages for a variety
14of popular Debian/Ubuntu versions. The project also ran buildbots to create
15.debs of current trunk for ease of testing.
16
17As of version 1.9, the source tree no longer provides these tools. To
18construct a .deb from current trunk, your best bet is to apply the current
19debian diff from the latest upstream package and invoke the debian/rules as
20usual. Debian's standard "apt-get" tool can be used to fetch the current
21source package (including the debian-specific diff): run "apt-get source
22tahoe-lafs". That will fetch three files: the .dsc control file, the main
23Tahoe tarball, and the debian-specific .debian.tar.gz file. Just unpack the
24.debian.tar.gz file inside your Tahoe source tree, modify the version number
25in debian/changelog, then run "fakeroot ./debian/rules binary", and a new
26.deb will be placed in the parent directory.
27
28Dependency Packages
29===================
30
31Tahoe depends upon a number of additional libraries. When building Tahoe from
32source, any dependencies that are not already present in the environment will
33be downloaded (via easy_install) and stored in the support/lib directory.
34
35The .deb packages, of course, rely solely upon other .deb packages. For
36reference, here is a list of the debian package names that provide Tahoe's
37dependencies as of the 1.9 release:
38
39 python
40 python-zfec
41 python-pycryptopp
42 python-foolscap
43 python-openssl (needed by foolscap)
44 python-twisted
45 python-nevow
46 python-mock
47 python-simplejson
48 python-setuptools
49 python-support (for debian-specific install-time tools)
50
51When building your own debian packages, a convenient way to get all these
52dependencies installed is to first install the official "tahoe-lafs" package,
53then uninstall it, leaving the dependencies behind. You may also find it
54useful to run "apt-get build-dep tahoe-lafs" to make sure all the usual
55build-essential tools are installed.