<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>openldap</Name>
        <Homepage>http://www.openldap.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>OPENLDAP</License>
        <Summary>Open-source suite of LDAP applications and development tools</Summary>
        <Description>OpenLDAP is an open-source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools</Description>
        <Archive sha1sum="016a738d050a68d388602a74b5e991035cdba149" type="targz">ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.44.tgz</Archive>
        <BuildDependencies>
            <Dependency>nss-devel</Dependency>
            <Dependency>db-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>tcp-wrappers-devel</Dependency>
            <Dependency>cyrus-sasl-devel</Dependency>
            <Dependency>libtool-ltdl</Dependency>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>unixODBC-devel</Dependency>
            <Dependency>mariadb-server</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>chrpath</Dependency>
            <Dependency>groff</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="1">openldap-2.4.39-blfs_paths-1.patch</Patch> -->
            <Patch level="1">openldap-2.4.44-consolidated-2.patch</Patch>
<!--             <Patch level="1">openldap-2.4.39-symbol_versions-1.patch</Patch> -->
            <Patch level="1">openldap-2.4.39-ntlm-1.patch</Patch>
            <Patch level="1">fedora/openldap-sql-linking.patch</Patch>
            <Patch level="1">fedora/openldap-reentrant-gethostby.patch</Patch>
            <Patch level="1">fedora/openldap-ldaprc-currentdir.patch</Patch>
            <Patch level="1">fedora/openldap-userconfig-setgid.patch</Patch>
            <!--<Patch level="1">fedora/openldap-dns-priority.patch</Patch>-->
            <Patch level="1">fedora/openldap-syncrepl-unset-tls-options.patch</Patch>
            <Patch level="1">fedora/openldap-nss-update-list-of-ciphers.patch</Patch>
            <Patch level="1">fedora/openldap-tls-no-reuse-of-tls_session.patch</Patch>
            <Patch level="1">fedora/openldap-nss-regex-search-hashed-cacert-dir.patch</Patch>
            <Patch level="1">fedora/openldap-nss-ignore-certdb-type-prefix.patch</Patch>
            <Patch level="1">fedora/openldap-nss-certs-from-certdb-fallback-pem.patch</Patch>
            <Patch level="1">fedora/openldap-nss-pk11-freeslot.patch</Patch>
            <Patch level="1">fedora/openldap-switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.patch</Patch>
            <Patch level="1">fedora/openldap-ldapi-sasl.patch</Patch>
            <Patch level="1">fedora/openldap-autoconf-pkgconfig-nss.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>openldap-client</Name>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <Summary>Command-line ldap client commands (ldapsearch, ldapadd etc..)</Summary>
        <RuntimeDependencies>
            <Dependency>nss</Dependency>
            <Dependency>nspr</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>cyrus-sasl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/openldap/ldap.conf*</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
            <Path fileType="man">/usr/share/man/man5/ldap.conf.5</Path>
        </Files>
    </Package>

    <Package>
        <Name>openldap-server</Name>
        <IsA>service</IsA>
        <Summary>OpenLDAP server slapd and releated tools</Summary>
        <Description>OpenLDAP server slapd, additional backends, configuration files, schema definitions required for operation, and database maintenance tools</Description>
        <RuntimeDependencies>
            <Dependency>db</Dependency>
            <Dependency>perl</Dependency>
            <Dependency>unixODBC</Dependency>
            <Dependency>libutil-linux</Dependency>
            <Dependency>tcp-wrappers</Dependency>
            <Dependency>libtool-ltdl</Dependency>
            <Dependency>nss</Dependency>
            <Dependency>cyrus-sasl</Dependency>
            <Dependency release="current">openldap-client</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/conf.d</Path>
            <Path fileType="config">/etc/openldap</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/openldap-server.conf</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/libexec</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="man">/usr/share/man/man5</Path>
            <Path fileType="man">/usr/share/man/man8</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/var/lib</Path>
            <Path fileType="data">/run/openldap</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/openldap-server.conf">tmpfiles.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/slapd">slapd.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0755" target="/etc/openldap/ssl/gencert.sh">gencert.sh</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
            <COMAR script="slapd.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>openldap-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for openldap</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>openssl-32bit</Dependency>
            <Dependency>libtool-ltdl-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>openssl-32bit</Dependency>
            <Dependency release="current">openldap-client</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-01-27</Date>
            <Version>2.4.44</Version>
            <Comment>Release bump for toolchain</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-15</Date>
            <Version>2.4.44</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>2.4.44</Version>
            <Comment>Release bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
         <Update release="1">
            <Date>2016-03-28</Date>
            <Version>2.4.44</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>