Linux Step By Steps
Samba LogoSAMBA - Compiling 2.0.7

I've been thinking about upgrading to Samba 2.0.7 for a while and all the discussion lately (here and on the newsgroup) about how to do so prompted me to get off my arse and try it. After much screwing around with it and working my way throught the .spec file used in eD 2.4, I figured it out.

Author: Douglas J. Hunley
Date Submitted: 2000-01-04

Go grab the source tarball and then do the following:

1. Untar the source (duh!)

2. cd /etc/ssl/include/openssl && ln -s . include (weird, but needed if you want SSL support)
     a. or /usr/local/ssl/include/openssl (as the case may be)

3. From <somedir>/samba-2.0.7/source do
./configure --prefix=/usr \
            --exec-prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var/log \
            --libdir=/etc/samba.d \
            --infodir=/usr/info \
            --mandir=/usr/man \
            --without-smbwrapper \
            --with-smbmount \
            --with-pam \
            --with-ssl \
            --with-sslinc=/etc/ssl/include/openssl \
            (--with-sslinc=/usr/local/ssl/include/openssl \)
            (--with-sslinc=/usr/include/openssl \)
            --with-privatedir=/etc/samba.d \
            --with-lockdir=/var/lock/samba.d \
            --with-swatdir=/usr/share/swat \

4. Edit Makefile
        a. Change /var/log.smb to /var/log/samba.d/smbd.log
        b. Change /var/log/nmb to /var/log/samba.d/nmbd.log
        c. Change /bin/passwd to /usr/bin/passwd
        d. Change SBINDIR=${exec_prefix}/bin to SBINDIR=${exec_prefix}/sbin

5. make && make install && ldconfig -v

6. Edit /etc/rc.d/init.d/samba
        a. Change /usr/sbin/smbd to /usr/bin/smbd
        b. Change /usr/sbin/nmbd to /usr/bin/nmbd

That should be it.

NOTE: The SSL stuff assumes you installed the Caldera OpenSSL rpm from KDE 2... if you didn't, just either leave them out, or change them to point to your install (/usr/local/ssl by default instead of /etc/ssl)