This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[ira/wip.git] / packaging / Debian / README
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.0beta1, 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   debhelper
31   libpam0g-dev
32   libreadline4-dev
33   libcupsys2-dev
34   autoconf
35
36   Notes about the packages required to build Samba Debian packages:
37
38   * The libcupsys2-dev is not available in Debian Potato (Debian 2.2).
39   That's fine; the configure script won't detect CUPS support and the
40   resulting binaries won't support CUPS.
41
42 1) cd samba[-<version>]. For example, "cd samba-2.2.5".
43 2) cp -a packaging/Debian/debian/ debian
44   It's important that you copy instead of symlink because the build
45   tools in Potato have a problem that prevents the build to work with
46   a symlink.
47 3) dch -i (this is completely optional - only do it if you understand
48    Debian version numbers! Don't complain later if you can't upgrade
49    to official versions of the Samba packages for Debian.)
50   - Edit the changelog and make sure the version is right. For example,
51   for Samba 2.2.4, the version number should something like 2.2.4-0.1
52   (use a number less than 1 like 0.1, 0.2, etc. so there is no conflict
53   with future upgrades to the official Debian packages.)
54 4) Run 'debian/rules binary'.
55   - It is better that you prefix the above command with 'fakeroot'.
56     If you have problems you might try building as root.
57 5) That's it. Your new packages should be in ../. Install with dpkg.
58
59 Please e-mail samba@packages.debian.org with comments, questions or
60 suggestions. Please talk to us and not to the Samba Team. They have
61 better things to do and know nothing about the Debian packaging system.
62
63 Eloy A. Paris <peloy@debian.org>
64 Steve Langasek <vorlon@debian.org>
65
66 $Id: README,v 1.2.2.1 2003/06/01 04:30:09 peloy Exp $
67