1
0

Makefile 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= openldap
  5. PKG_VERSION:= 2.4.39
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b0d5ee4b252c841dec6b332d679cf943
  8. PKG_DESCR:= OpenLDAP client libraries
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libopenssl libsasl2 libdb libpthread libuuid
  11. PKG_BUILDDEP:= cyrus-sasl openssl db util-linux
  12. PKG_URL:= http://www.openldap.org/
  13. PKG_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
  14. PKG_NEED_CXX:= 1
  15. PKG_LIBNAME:= libopenldap
  16. PKG_OPTS:= dev
  17. PKG_SUBPKGS:= LIBOPENLDAP OPENLDAP_UTILS OPENLDAP_SLAPD
  18. PKGSD_OPENLDAP_UTILS:= OpenLDAP utilities
  19. PKGSS_OPENLDAP_UTILS:= libopenldap
  20. PKGSC_OPENLDAP_UTILS:= net/misc
  21. PKGSD_OPENLDAP_SLAPD:= OpenLDAP server daemon
  22. PKGSS_OPENLDAP_SLAPD:= libopenldap
  23. PKGSC_OPENLDAP_SLAPD:= net/misc
  24. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  25. PKG_FLAVOURS_OPENLDAP_SLAPD:= WITH_IPV6
  26. PKGFD_WITH_IPV6:= enable IPv6 support
  27. ifeq ($(ADK_STATIC),y)
  28. PKG_OPTS+= libmix
  29. endif
  30. include ${TOPDIR}/mk/package.mk
  31. $(eval $(call PKG_template,LIBOPENLDAP,libopenldap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  32. $(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_UTILS},${PKGSD_OPENLDAP_UTILS},${PKGSC_OPENLDAP_UTILS}))
  33. $(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_SLAPD},${PKGSD_OPENLDAP_SLAPD},${PKGSC_OPENLDAP_SLAPD}))
  34. CONFIGURE_ARGS+= --enable-slapd \
  35. --libexecdir=/usr/sbin \
  36. --enable-bdb \
  37. --disable-hdb \
  38. --disable-relay \
  39. --enable-dynamic \
  40. --enable-syslog \
  41. --enable-local \
  42. --disable-syncprov \
  43. --without-fetch \
  44. --with-cyrus-sasl \
  45. --with-threads \
  46. --with-tls \
  47. --with-yielding_select="yes" \
  48. ifneq (${ADK_PACKAGE_OPENLDAP_SLAPD_WITH_IPV6},)
  49. CONFIGURE_ARGS+= --enable-ipv6
  50. else
  51. CONFIGURE_ARGS+= --disable-ipv6
  52. endif
  53. CONFIGURE_ENV+= ac_cv_func_memcmp_working=yes
  54. XAKE_FLAGS+= STRIP="" CPPFLAGS="-D_GNU_SOURCE"
  55. libopenldap-install:
  56. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/etc/openldap
  57. ${CP} ${WRKINST}/etc/openldap/ldap.conf \
  58. ${IDIR_LIBOPENLDAP}/etc/openldap
  59. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib
  60. ${CP} ${WRKINST}/usr/lib/lib{lber,ldap}*.so* \
  61. ${IDIR_LIBOPENLDAP}/usr/lib
  62. openldap-utils-install:
  63. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/etc/openldap-data
  64. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
  65. ${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
  66. openldap-slapd-install:
  67. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  68. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  69. ${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  70. ${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/*.schema \
  71. ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  72. ${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
  73. include ${TOPDIR}/mk/pkg-bottom.mk