Openldap version 2.3.35 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    openldap  most recent diff


    version 2.3.35

      View the most recent changes for the openldap port at: openldap.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for openldap.
      The raw portfile for openldap 2.3.35 is located here:
      http://openldap.darwinports.com/dports/databases/openldap/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/openldap


      The openldap Portfile 54299 2009-07-24 18:39:58Z toby macports.org $

      PortSystem 1.0
      Name: openldap
      Version: 2.3.35
      Revision: 1
      Category: databases
      Maintainers: landonf
      Description: OpenLDAP Software
      Long Description: OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.

      Platform: darwin
      Homepage: http://www.openldap.org/
      Master Sites: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/ http://www.openldap.org/software/download/OpenLDAP/openldap-release/ ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/
      distfiles ${name}-${version}.tgz
      Checksums: md5 91ae33b88bce17a48743da35a0aa04fd

      depends_lib path:bin/perl:perl5 port:cyrus-sasl2 port:openssl port:db44

      Patch Files: patch-ltmain

      configure.env-append LANG=C
      configure.cppflags-append "-I${prefix}/include/db44 -I${prefix}/include/openssl -DBIND_8_COMPAT"
      configure.ldflags-append -L${prefix}/lib/db44

      configure.args --mandir=${prefix}/share/man --localstatedir=${prefix}/var --with-cyrus-sasl --with-tls --enable-crypt --enable-wrappers --enable-syncprov --enable-ipv6

      startupitem.create yes
      startupitem.name slapd
      startupitem.init "PID=${prefix}/var/run/slapd.pid"
      startupitem.start "${prefix}/libexec/slapd -u ldap -f ${prefix}/etc/openldap/slapd.conf"
      startupitem.stop "\[ -r \${PID} \] && kill \$(cat \${PID})"

      Variant: aci {
      configure.args-append --enable-aci
      }

      pre-build {
      system "cd ${workpath}/${worksrcdir} && make depend"
      }

      pre-destroot {
      # should be in pre-deploy....
      addgroup ldap
      set gid [existsgroup ldap]
      adduser ldap gid=${gid}
      }

      post-destroot {
      xinstall -d -g ldap -m 700 -o ldap "${destroot}${prefix}/var/run/openldap-data"
      # Delete the duplicate .conf files (leaves .conf.default) so upgrades won't overwrite .conf files.
      file delete -force ${destroot}${prefix}/etc/openldap/slapd.conf
      file delete -force ${destroot}${prefix}/etc/openldap/ldap.conf
      }

      test.run yes
      test.target check

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/openldap
      % sudo port install openldap
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching openldap
      ---> Verifying checksum for openldap
      ---> Extracting openldap
      ---> Configuring openldap
      ---> Building openldap with target all
      ---> Staging openldap into destroot
      ---> Installing openldap
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using openldap with these commands:
      %  man openldap
      % apropos openldap
      % which openldap
      % locate openldap

     Where to find more information:

    Darwin Ports



    Lightbox this page.