0a1d68ba37f34178fef3f79c584135b09df05a6a
[ira/wip.git] / packaging / Debian / debian / README.build-upstream
1 Building Samba Packages for Debian GNU/Linux
2 --------------------------------------------
3
4 Building Debian packages is not as hard as some people might think. The
5 following instructions will allow you to build your own Samba Debian
6 packages. These instructions, and the files in packaging/Debian/, should
7 be current as of Samba 3.0beta3, and should allow you to build Debian
8 packages for Debian unstable.
9
10 We try to maintain as much compatibility with previous releases
11 of Debian as possible, so it is possible that the files in
12 packaging/Debian/ can also be used to build Samba Debian packages for
13 other Debian releases. However, sometimes this is just not possible
14 because we need to use stuff that is only available on Debian unstable.
15
16 Instructions
17 ------------
18
19 If you want to build Samba packages for Debian and you just want to use
20 upstream sources, i.e. you don't want to wait for us to put official
21 packages out, or you want packages for a Debian version for which we
22 don't provide deb's, or you don't want to use official packages, or
23 you want to add --this-cool-switch to configure, or whatever, follow
24 these instructions:
25
26 0) Make sure you have the following packages installed (in addition
27 to the normal Debian development packages -- dpkg-dev, libc6-dev,
28 devscripts, etc.):
29
30   autoconf
31   debhelper
32   libpam0g-dev
33   libreadline4-dev
34   libcupsys2-dev
35   libacl1-dev | acl-dev (>= 2.0.0)
36   libkrb5-dev
37   libldap2-dev
38   po-debconf
39   python-dev (>= 2.2)
40
41   Notes regarding the packages required to build Samba Debian packages:
42
43   * The libcupsys2-dev is not available in Debian Potato (Debian 2.2).
44     That's fine; the configure script won't detect CUPS support and the
45     resulting binaries won't support CUPS.
46
47   * The list above is current as of samba-3.0.0beta3, but it can get
48     out of date. The best way to check what packages are required to
49     build the samba packages on Debian is to look for the Build-Depends:
50     field in the file debian/control.
51
52 1) cd samba[-<version>]. For example, "cd samba-3.0.0beta3".
53 2) cp -a packaging/Debian/debian/ debian
54   It's important that you copy instead of symlink because the build
55   tools in Potato have a problem that prevents the build to work with
56   a symlink.
57 3) dch -i (this is completely optional - only do it if you understand
58    Debian version numbers! Don't complain later if you can't upgrade
59    to official versions of the Samba packages for Debian.)
60   - Edit the changelog and make sure the version is right. For example,
61     for Samba 3.0.0beta3, the version number should something like
62   3.0.0beta3-0.1.
63 4) Run 'debian/rules binary'.
64   - It is better that you prefix the above command with 'fakeroot'.
65     If you have problems you might try building as root.
66 5) That's it. Your new packages should be in ../. Install with dpkg.
67
68 Please e-mail samba@packages.debian.org with comments, questions or
69 suggestions. Please talk to us and not to the Samba Team. They have
70 better things to do and know nothing about the Debian packaging system.
71
72 Eloy A. Paris <peloy@debian.org>
73 Steve Langasek <vorlon@debian.org>
74