[Pkg-samba-maint] r2801 - trunk/samba4/debian
jelmer at alioth.debian.org
jelmer at alioth.debian.org
Tue Jun 2 13:07:22 UTC 2009
Author: jelmer
Date: 2009-06-02 13:07:22 +0000 (Tue, 02 Jun 2009)
New Revision: 2801
Modified:
trunk/samba4/debian/README.building
Log:
Update build instructions.
Modified: trunk/samba4/debian/README.building
===================================================================
--- trunk/samba4/debian/README.building 2009-06-02 13:07:20 UTC (rev 2800)
+++ trunk/samba4/debian/README.building 2009-06-02 13:07:22 UTC (rev 2801)
@@ -4,53 +4,14 @@
By Jelmer Vernooij, 20 May 2004.
Rewritten by Steinar H. Gunderson, 4 January 2006.
-1. If you want to use the upstream packaging
-============================================
-
-The upstream Samba 4 repository (see http://devel.samba.org/)
-contains a directory called packaging/debian/ which contains the
-framework for building Debian packages. This directory is synced
-with the official Debian packaging (see below) now and then, but
-might be outdated at any given time. It is, however, easier to use
-(due to svn-buildpackage oddities) than the official packaging.
-Go to packaging/, and run:
-
- svn-buildpackage -rfakeroot
-
-2. If you want to use the official Debian packaging
-===================================================
-
-Unfortunately, this is somewhat more involved than using the
-upstream packaging. If anybody knows a better way of doing this,
-feel free to contact me (sesse at debian.org) :-)
-
You should be able to cut-and-paste the entire tutorial into
your shell in one go if you want it done automatically.
-: First check out the Samba 4 tree as usual:
+: Build the tarball from upstream Subversion:
- svn co svn://svn.samba.org/samba/branches/SAMBA_4_0 samba4
+ ./debian/build-orig.sh
-: Then, check out the official Debian packaging:
+: Use svn-buildpackage or bzr-builddeb to build the package:
- svn co svn://svn.debian.org/pkg-samba/branches/samba4 samba4/debian
+ svn-buildpackage -rfakeroot
-: Samba is not a native Debian package, so you will need to create
-: an .orig.tar.gz tarball. Do something along the lines of:
-
- VER=$( dpkg-parsechangelog -lsamba4/debian/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' )
- svn export samba4 samba-$VER
- ( cd samba-$VER/source && ./autogen.sh )
- ( cd samba-$VER/source && ./script/mkversion.sh VERSION include/version.h ../../samba4/source/ )
- tar zcf samba_$VER.orig.tar.gz samba-$VER
-
-: With the .orig.tar.gz in place, you can now also export the debian/
-: directory:
-
- svn export samba4/debian samba-$VER/debian
-
-: Finally, build the package using whatever method you prefer:
-
- cd samba-$VER
- debuild
-
More information about the Pkg-samba-maint
mailing list