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