Download and Install openldap version 2.3.35 on Mac OS X
Wednesday the 3rd of December, 2008

    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
      Google
      Web Darwinports.com



      # $Id: Portfile 27689 2007-08-12 03:37:05Z markd macports.org $

      PortSystem 1.0
      Name: openldap
      Version: 2.3.35
      Category: databases
      Maintainers: landonf macports.org
      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 port:perl5.8 port:cyrus-sasl2 port:openssl port:db44

      patchfiles 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

      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})"

      platform darwin 6 {
      depends_lib-append port:dlcompat
      }

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

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

      pre-configure {
      if { ![variant_isset ipv6]} {
      configure.args-append --disable-ipv6
      }
      }

      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.