Environment:
OS: CentOS 5.6
Kernel: 2.6.18-238.5.1.el5
Unofficial RPM Build for RHEL link
Unofficial RPM Build for RHEL link
- install development tools "yum -y groupinstall 'Development Tools' "
- Download Samba Source Link
- Extract source file (samba-3.5.8.tar.gz)
- cd amba-3.5.8/packaging/RHEL
- nano samba.spec
- Search the line "BuildRequires" update "keyutils-devel" to "keyutils-libs-devel"
- Search the line "cc="$cc" CLFLAGS= [..skipped..] ./configure" and add this new line "--with-cifsumount \"
- run "sh makerpms.sh &>/root/samba.build.log"
- When the end of the process has shown "error: Installed (but unpackaged) file(s) found:", please add those mentioned file in the "samba.spec" file at the end of "%files" section, and then repeat step 8.
- Now the new rpm files should built in "/usr/src/redhat/RPMS/i386"
- You need to uninstall the installed samba please run "rpm -e samba-common samba samba-client --nodeps"
- And you need to uninstall some dependent files, please run "rpm -e libsmbclient libtdb libtalloc --nodeps"
- Install new the samba rpms run "rpm -ivh samba*"