[Samba] Upgrade samba from 3.28 to 3.29 to fix winbind issue.

Toby Bluhm tkb at alltechmedusa.com
Tue Feb 10 19:34:07 GMT 2009


Turner, Justin H Contractor wrote:
> How do you upgrade samba from 3.0.28 to 3.0.29 to fix winbind issue? My
> OS is CentOS 4.5. I haven't been able to find a RPM above 3.0.28. for

samba built from src will put stuff in places different from where an 
rpm package will put them - probably why it didn't work as an upgrade to 
a working RH type server for you.

I needed 3.0.33 to fix a SolidWorks problem, so I did the following for 
WhiteboxLinux 4. I expect if it's changed where needed, should work for 
Centos 4.

rpm -ihv samba-3.0.25b-1.el4_6.4.src.rpm

Put samba-3.0.33.tar.gz in /usr/src/whitebox/SOURCES/
Remove the old /usr/src/whitebox/SOURCES/samba-3.0.25b.tar.gz
Remove the /usr/src/whitebox/SOURCES/*.patch files
Edit /usr/src/whitebox/SPECS/samba.spec:

old: Version: 3.0.25b
old: Release: 1%{dist}.4

new: Version: 3.0.33
new: Release: 1.4

remove: all lines with "Patch"
remove: all lines with "%patch"
remove: "--with-mmap \"
remove: "--without-smbwrapper \"
remove: "%doc docs/REVISION docs/Samba3-ByExample.pdf 
docs/Samba3-Developers-Guide.pdf"

rpmbuild -bb /usr/src/whitebox/SPECS/samba.spec
rpm -Uhv /usr/src/whitebox/RPMS/i386/samba*3.0.33-1.4.i386.rpm
service smb stop
service smb start

I found the 
/usr/src/whitebox/BUILD/samba-3.0.33/packaging/RHEL/samba.spec file from 
the 3.0.33 tarball later on, but since my way was already working for 
me, I didn't bother trying it out.


As always, YMMV.


-- 
tkb


More information about the samba mailing list