[Samba] compiling samba for ubuntu 12.4 lts

Nils Weidinger nils.weidinger at e3p.de
Fri Jan 18 13:06:41 MST 2013


OK, it worked. I used the git package configuration as described at 
http://wiki.samba.org/index.php/Samba4/Debian but I had to make some 
small adjustments.

It was unavoidable to use the following packages from the latest ubuntu 
repositories. I chose to create a local repository with only these debs 
to stay as close to the lts-version as possible.

heimdal-dev_1.6~git20120403+dfsg1-2_amd64.deb
heimdal-multidev_1.6~git20120403+dfsg1-2_amd64.deb
libasn1-8-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libgssapi3-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libhcrypto4-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libhdb9-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libheimbase1-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libheimntlm0-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libhx509-5-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libkadm5clnt7-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libkadm5srv8-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libkafs0-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libkdc2-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libkrb5-26-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
libldb1_1.1.13-1_amd64.deb
libldb-dev_1.1.13-1_amd64.deb
libtdb1_1.2.10-2_amd64.deb
libtdb-dev_1.2.10-2_amd64.deb
libtevent0_0.9.17-1_amd64.deb
libtevent-dev_0.9.17-1_amd64.deb
libwind0-heimdal_1.6~git20120403+dfsg1-2_amd64.deb
python-ldb_1.1.13-1_amd64.deb
python-ldb-dev_1.1.13-1_amd64.deb
python-tdb_1.2.10-2_amd64.deb

install dependencies:

apt-get install bison docbook-xml docbook-xsl flex heimdal-dev 
heimdal-multidev libbsd-dev libldb-dev libparse-yapp-perl 
libsmbclient-dev libsubunit-dev libtalloc-dev libtdb-dev libtevent-dev 
libwbclient-dev python-all-dev python-ldb python-ldb-dev 
python-talloc-dev python-tdb python-testtools subunit xsltproc libldb1 
libldb-dev libtdb-dev libtevent-dev python-ldb python-ldb-dev python-tdb

git clone git://git.debian.org/pkg-samba/samba4 samba4-unstable
mv samba4-unstable/debian debian
rm -r samba4-unstable
vi debian/winbind4.install
# remove last line "usr/share/man/man1/ntlm_auth4.1"
vi debian/changelog
# change to: >>
samba (4.0.1-0ubuntu1) unstable; urgency=low

   * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>

  -- firstname name <email>  Wed, 16 Jan 2013 16:35:18 +0100
<<
vi debian/control
# edit line 3 change Maintainer to: >>
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
<<
insert line: >>
XSBC-Original-Maintainer: Samba Debian Maintainers 
<pkg-samba-maint at lists.alioth.debian.org>
<<
vi debian/rules
# edit line 84 orig: >>
         rm $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/samba/share/ldb.so
<<
# change to: >>
         rm -f $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/samba/share/ldb.so
<<
# edit line 100 orig: >>
         dh_install --sourcedir=$(DESTDIR) --list-missing --fail-missing
<<
# change to: >>
         dh_install --sourcedir=$(DESTDIR) --list-missing
<<
wget http://www.samba.org/samba/ftp/stable/samba-4.0.1.tar.gz
cp samba-4.0.1.tar.gz samba_4.0.1.orig.tar.gz
tar -xzf samba-4.0.1.tar.gz
cd samba-4.0.1
cp -r ../debian .
debuild > ../build.log


More information about the samba mailing list