Makefile 2.8 KB

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