Makefile 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= openldap
  5. PKG_VERSION:= 2.4.41
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 27856bb4a8b44feca2b326c309000e16a9dadd52362c8ab6eec6c67a43737f6e
  8. PKG_DESCR:= ldap client libraries
  9. PKG_SECTION:= libs/misc
  10. PKG_DEPENDS:= libsasl2 libdb libpthread libuuid libstdcxx libncurses
  11. PKG_BUILDDEP:= cyrus-sasl db util-linux
  12. PKG_URL:= http://www.openldap.org/
  13. PKG_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
  14. PKG_LIBNAME:= libopenldap
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  17. PKG_CHOICES_CTORRENT:= WITH_LIBRESSL WITH_OPENSSL
  18. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  19. PKGCB_WITH_LIBRESSL:= libressl
  20. PKGCS_WITH_LIBRESSL:= libressl
  21. PKGCD_WITH_OPENSSL:= use openssl for crypto
  22. PKGCB_WITH_OPENSSL:= openssl
  23. PKGCS_WITH_OPENSSL:= libopenssl
  24. PKG_SUBPKGS:= LIBOPENLDAP OPENLDAP_UTILS OPENLDAP_SLAPD
  25. PKGSD_OPENLDAP_UTILS:= ldap utilities
  26. PKGSS_OPENLDAP_UTILS:= libopenldap
  27. PKGSC_OPENLDAP_UTILS:= net/misc
  28. PKGSD_OPENLDAP_SLAPD:= ldap server daemon
  29. PKGSS_OPENLDAP_SLAPD:= libopenldap
  30. PKGSC_OPENLDAP_SLAPD:= net/misc
  31. PKG_FLAVOURS_OPENLDAP_SLAPD:= WITH_IPV6
  32. PKGFD_WITH_IPV6:= enable IPv6 support
  33. include ${ADK_TOPDIR}/mk/package.mk
  34. $(eval $(call PKG_template,LIBOPENLDAP,libopenldap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  35. $(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_UTILS},${PKGSD_OPENLDAP_UTILS},${PKGSC_OPENLDAP_UTILS}))
  36. $(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_SLAPD},${PKGSD_OPENLDAP_SLAPD},${PKGSC_OPENLDAP_SLAPD}))
  37. CONFIGURE_ARGS+= --enable-slapd \
  38. --libexecdir=/usr/sbin \
  39. --enable-bdb \
  40. --disable-hdb \
  41. --disable-relay \
  42. --enable-dynamic \
  43. --enable-syslog \
  44. --enable-local \
  45. --disable-syncprov \
  46. --without-fetch \
  47. --with-cyrus-sasl \
  48. --with-threads \
  49. --with-tls \
  50. --with-yielding_select="yes" \
  51. ifneq (${ADK_PACKAGE_OPENLDAP_SLAPD_WITH_IPV6},)
  52. CONFIGURE_ARGS+= --enable-ipv6
  53. else
  54. CONFIGURE_ARGS+= --disable-ipv6
  55. endif
  56. CONFIGURE_ENV+= ac_cv_func_memcmp_working=yes
  57. XAKE_FLAGS+= STRIP="" CPPFLAGS="-D_GNU_SOURCE"
  58. libopenldap-install:
  59. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/etc/openldap
  60. ${CP} ${WRKINST}/etc/openldap/ldap.conf \
  61. ${IDIR_LIBOPENLDAP}/etc/openldap
  62. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib
  63. ${CP} ${WRKINST}/usr/lib/lib{lber,ldap}*.so* \
  64. ${IDIR_LIBOPENLDAP}/usr/lib
  65. openldap-utils-install:
  66. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/etc/openldap-data
  67. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
  68. ${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
  69. openldap-slapd-install:
  70. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  71. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  72. ${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  73. ${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/*.schema \
  74. ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  75. ${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
  76. include ${ADK_TOPDIR}/mk/pkg-bottom.mk