Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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.23
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 90150b8c0d0192e10b30157e68844ddf
  8. PKG_DESCR:= OpenLDAP client libraries
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libopenssl libsasl2
  11. PKG_BUILDDEP:= cyrus-sasl openssl libdb
  12. PKG_URL:= http://www.openldap.org/
  13. PKG_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
  14. PKG_SUBPKGS:= LIBOPENLDAP OPENLDAP_UTILS OPENLDAP_SLAPD
  15. PKGSD_OPENLDAP_UTILS:= OpenLDAP utilities
  16. PKGSS_OPENLDAP_UTILS:= libopenldap
  17. PKGSC_OPENLDAP_UTILS:= net/misc
  18. PKGSD_OPENLDAP_SLAPD:= OpenLDAP server daemon
  19. PKGSS_OPENLDAP_SLAPD:= libopenldap
  20. PKGSC_OPENLDAP_SLAPD:= net/misc
  21. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  22. PKG_FLAVOURS_OPENLDAP_SLAPD:= WITH_IPV6
  23. PKGFD_WITH_IPV6:= enable IPv6 support
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,LIBOPENLDAP,libopenldap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_UTILS},${PKGSD_OPENLDAP_UTILS},${PKGSC_OPENLDAP_UTILS}))
  27. $(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_SLAPD},${PKGSD_OPENLDAP_SLAPD},${PKGSC_OPENLDAP_SLAPD}))
  28. PKG_CONFIGURE_OPTIONS+= --enable-slapd \
  29. --libexecdir=/usr/sbin \
  30. --enable-bdb \
  31. --disable-hdb \
  32. --disable-relay \
  33. --enable-dynamic \
  34. --enable-syslog \
  35. --enable-local \
  36. --disable-syncprov \
  37. --disable-slurpd \
  38. --without-gssapi \
  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. CONFIGURE_ARGS+= ${PKG_CONFIGURE_OPTIONS}
  51. XAKE_FLAGS+= STRIP="" CPPFLAGS="-D_GNU_SOURCE"
  52. pre-configure:
  53. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  54. CPPFLAGS=-D_GNU_SOURCE ./configure \
  55. ${PKG_CONFIGURE_OPTIONS} \
  56. --disable-slapd \
  57. --without-cyrus-sasl \
  58. --without-threads \
  59. --without-tls \
  60. );
  61. ${MAKE} -C ${WRKBUILD} depend
  62. ${MAKE} -C ${WRKBUILD}/libraries/liblutil
  63. ${MAKE} -C ${WRKBUILD}/libraries/liblber
  64. ${MAKE} -C ${WRKBUILD}/libraries/liblunicode
  65. ${MAKE} -C ${WRKBUILD}/libraries/liblber clean
  66. ${MAKE} -C ${WRKBUILD}/libraries/liblutil clean
  67. ${MAKE} -C ${WRKBUILD}/libraries/liblunicode clean
  68. post-install:
  69. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/etc/openldap
  70. ${CP} ${WRKINST}/etc/openldap/ldap.conf \
  71. ${IDIR_LIBOPENLDAP}/etc/openldap/
  72. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib/
  73. ${CP} ${WRKINST}/usr/lib/lib{lber,ldap}*.so* \
  74. ${IDIR_LIBOPENLDAP}/usr/lib/
  75. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
  76. ${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
  77. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  78. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  79. ${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin/
  80. ${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/core.schema \
  81. ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  82. ${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
  83. include ${TOPDIR}/mk/pkg-bottom.mk