[Samba] If people want, this is how: samba 4.1.3 and sssd 1.11.3 for debian wheezy

L.P.H. van Belle belle at bazuin.nl
Fri Jan 10 03:16:45 MST 2014


Hai,

And ahead a bit, its not complete but then you know how to do this. 
what do you get when your done, a stable, debian wheezy, with up2date samba and sssd. 
and more if you want, its up 2 your.

add this line to your /etc/apt/sources.list 
( or better  /etc/apt/sources.list.d/debian-sid.list ) 

You must watch the order of the install of the packages with dpkg -i. 
Wrong order and you can't install some packages. 


apt-get update 

get the things you need to recompile, the basics. 
apt-get build-dep samba
apt-get build-dep sssd

look at the missing Depends get them compile them and install them. 

apt-get source libaio-dev -b
dpkg -i libaio1_0.3.109-4_amd64.deb libaio-dev_0.3.109-4_amd64.deb

apt-get build-dep python-talloc-dev
apt-get source python-talloc-dev -b
dpkg -i libtalloc2_2.1.0-1_amd64.deb  python-talloc_2.1.0-1_amd64.deb python-talloc-dev_2.1.0-1_amd64.deb

apt-get build-dep libtevent-dev
apt-get source libtevent-dev -b
dpkg -i libtevent0_0.9.19-1_amd64.deb libtevent-dev_0.9.19-1_amd64.deb

apt-get source libldb-dev -b
apt-get build-dep libldb-dev 

apt-get source python-tdb -b 
dpkg -i libtdb1_1.2.12-1_amd64.deb libtdb1-dbg_1.2.12-1_amd64.deb  python-tdb_1.2.12-1_amd64.deb
dpkg -i libtdb-dev_1.2.12-1_amd64.deb

apt-get source libldb-dev -b
dpkg -i libldb1_1.1.16-1_amd64.deb libldb-dev_1.1.16-1_amd64.deb

apt-get source libntdb-dev -b
dpkg -i libntdb1_1.0-2_amd64.deb libntdb-dev_1.0-2_amd64.deb

apt-get source python-ldb -b 
dpkg -i python-ldb_1.1.16-1_amd64.deb python-ldb-dev_1.1.16-1_amd64.deb python-ntdb_1.0-2_amd64.deb 


apt-get build-dep samba  .. and if correct you now get a bunch of wheezy package so you wil be able to compile samba.
apt-get source samba -b 
dpkg -i libparse-pidl-perl_4.1.3+dfsg-2_amd64.deb libwbclient0_4.1.3+dfsg-2_amd64.deb samba-libs_4.1.3+dfsg-2_amd64.deb samba-dev_4.1.3+dfsg-2_amd64.deb 

apt-get build-dep sssd
apt-get source dh-systemd -b 
apt-get build-dep sssd   ( get the other packages of wheezy ) 

move all the deb files to 1 folder. 

mkdir /home/debs 
mv *.deb /home/debs

Add this line to /etc/apt/sources.list
deb file:///home/debs /

Create a Release file so you can use apt-pinning 
( http://jaqque.sbih.org/kplug/apt-pinning.html ) 

vi /home/debs/Release
add: 
Archive: Wheezy
Origin: apt.yourdomain.tld
Label: JustForFun Debian Wheezy repository
Suite: stable
Codename: wheezy
Architectures: amd64
Components: main
Description: Put here a description. 

make a package file : 
dpkg-scanpackages /home/debs /dev/null | gzip -c9 > /home/debs/Packages.gz 

If you want to enable the users of your repository to use Pinning with your repository, 
you must include a Release file in every directory containing an index file

check with apt-cache policy samba which version is available. 
and install it. 

result : 

apt-cache policy samba
samba:
  Installed: (none)
  Candidate: 2:4.1.3+dfsg-2
  Version table:
     2:4.1.3+dfsg-2 0
        500 file:/home/debs/wheezy/ amd64/ Packages
     2:3.6.6-6+deb7u2 0
        500 http://security.debian.org/ wheezy/updates/main amd64 Packages
     2:3.6.6-6+deb7u1 0
        500 http://ftp.nl.debian.org/debian/ wheezy/main amd64 Packages

 apt-cache policy sssd-ad
sssd-ad:
  Installed: (none)
  Candidate: 1.11.3-1
  Version table:
     1.11.3-1 0
        500 file:/home/debs/wheezy/ amd64/ Packages


Greetz, 

Louis



More information about the samba mailing list