1 The Debian packaging for Samba 4 is maintained in the SVN
2 repository of the Debian Samba packaging team.
4 (parts of this file are from their README.building)
8 : Check out the official Debian packaging:
10 svn co svn://svn.debian.org/pkg-samba/branches/samba4 samba4/debian
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:
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
21 : With the .orig.tar.gz in place, you can now also export the debian/
24 svn export samba4/debian samba-$VER/debian
26 : Finally, build the package using whatever method you prefer: