source: branches/samba-3.0/packaging/Debian/README@ 577

Last change on this file since 577 was 286, checked in by Herwig Bauernfeind, 16 years ago

Update 3.0 to 3.0.35

File size: 3.5 KB
Line 
1NOTE: the debian-unstable and debian-woody are not updated anymore,
2they are left only as a reference for now. --SSS
3
4Building Samba Packages for Debian GNU/Linux
5--------------------------------------------
6
7Building Debian packages is not as hard as some people might think.
8The following instructions will allow you to build your own Samba
9Debian packages. These instructions and the files in packaging/Debian/
10should be current as of Samba 3.0.2, and allow you to build Debian
11packages for Debian unstable (so you need some development packages
12available only in Debian unstable.) If you are using something newer
13than 3.0.2 you might want to try to follow the instructions to see if
14patches apply cleanly. If some patches don't apply cleanly please e-mail
15samba@packages.debian.org since we might have fixed patches that we have
16not yet integrated into upstream Samba.
17
18We try to maintain as much compatibility with previous releases
19of Debian as possible, so it is possible that the files in
20packaging/Debian/ can also be used to build Samba Debian packages for
21other Debian releases. However, sometimes this is just not possible
22because we need to use stuff that is only available on Debian unstable.
23
24Instructions
25------------
26
27If you want to build Samba packages for Debian and you just want to use
28upstream sources, i.e. you don't want to wait for us to put official
29packages out, or you want packages for a Debian version for which we
30don't provide deb's, or you don't want to use official packages, or
31you want to add --this-cool-switch to configure, or whatever, follow
32these instructions:
33
340) Make sure you have the following packages installed (in addition
35to the normal Debian development packages -- dpkg-dev, libc6-dev,
36devscripts, etc.):
37
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
48
49 Notes regarding the packages required to build Samba Debian packages:
50
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.
54
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.
59
601) cd samba[-<version>]. For example, "cd samba-3.0.2".
612) 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/ ."
673) 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.
724) Run 'fakeroot debian/rules binary'.
735) That's it. Your new packages should be in ../. Install with dpkg.
74
75Please e-mail samba@packages.debian.org with comments, questions or
76suggestions. Please talk to us and not to the Samba Team. They have
77better things to do and know nothing about the Debian packaging system.
78
79Eloy A. Paris <peloy@debian.org>
80Steve Langasek <vorlon@debian.org>
81
Note: See TracBrowser for help on using the repository browser.