rename packaging => packaging4
[tprouty/samba.git] / packaging4 / debian / README
1 The Debian packaging for Samba 4 is maintained in the SVN 
2 repository of the Debian Samba packaging team. 
3
4 (parts of this file are from their README.building)
5
6 To build:
7
8 : Check out the official Debian packaging:
9
10   svn co svn://svn.debian.org/pkg-samba/branches/samba4 samba4/debian
11
12 : Samba is not a native Debian package, so you will need to create
13 : an .orig.tar.gz tarball. Do something along the lines of:
14
15   VER=$( dpkg-parsechangelog -lsamba4/debian/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' )
16   svn export samba4 samba-$VER
17   ( cd samba-$VER/source && ./autogen.sh )
18   ( cd samba-$VER/source && ./script/mkversion.sh VERSION include/version.h ../../samba4/source/ )
19   tar zcf samba_$VER.orig.tar.gz samba-$VER
20
21 : With the .orig.tar.gz in place, you can now also export the debian/
22 : directory:
23
24   svn export samba4/debian samba-$VER/debian
25
26 : Finally, build the package using whatever method you prefer:
27
28   cd samba-$VER
29   debuild
30