Openldap on Slackware1 12.1:
export CPPFLAGS="-I/usr/include/db4"2
./configure -with-cyrus-sasl=no3
-enable-ldbm /
-enable-crypt /
-enable-lmpasswd /
-enable-cleartext /
-enable-slurpd /
-prefix=/usr /
-sysconfdir=/etc / 
-enable-aci /
-localstatedir=/var  /
-sbindir=/usr/sbin / 
-libdir=/usr/lib /
-libexecdir=/usr/local/libexec
These are commonly used configure with options.  You must tell the compiler where to find the binary!  I used a recycled rc.openldap, and so  -libexecdir=/usr/local/libexec
Build the package with make depend; make

 make depend; make
When that finishes install the package to temp directory (/tmp/package) as follows;

 mkdir /tmp/package

 make DESTDIR=/tmp/package install
There is a package tool called makepkg which will create a package for Slackware.
cd to the tmp directory.

   cd /tmp/package

   makepkg -l y -c n /tmp/openldap-VERSION4-i386-1.tgz  
When makepkg is finished you should have a slackware package for openldap.
Install it as root;

  installpkg /tmp/openldap-VERSION5-i386-1.tgz
That's all folks. The slapd.conf file is installed as /etc/openldap.slapd.conf.default

Footnotes:

1For Slackware 10.X  there are several packages out there.  Google.   But, you can build Openldap yourself. Download the source package from http://www.openldap.org create a temporary directory eg:/tmp/package extract the source code. cd into that directory and configure openldap with the flags set as above.
2This line "export" directs the compiler to the latest version of the Berkely Database.  You might not need to do this if you are running a recent slack.
See: http://www.oracle.com/database/berkeley-db/index.html
3Or yes! See:http://java.sun.com/products/jndi/tutorial/ldap/models/v3.html
4Replace VERSION with the openldap version you actually built. I used 2.3.39
5Replace VERSION with the openldap version you actually built.


File translated from TEX by TTH, version 3.79.
On 27 Dec 2007, 08:02.