Makefile 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.21
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e7128c57b2bacd940e8906057c94ff26
  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_DESCR_1:= OpenLDAP utilities
  15. PKG_DEPENDS_1:= libopenldap
  16. PKG_SECTION_1:= net
  17. PKG_DESCR_2:= OpenLDAP server daemon
  18. PKG_DEPENDS_2:= libopenldap
  19. PKG_SECTION_2:= net
  20. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,LIBOPENLDAP,libopenldap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION_1}))
  24. $(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_2},${PKG_DESCR_2},${PKG_SECTION_2}))
  25. PKG_CONFIGURE_OPTIONS+= \
  26. --enable-slapd \
  27. --enable-bdb \
  28. --disable-hdb \
  29. --disable-relay \
  30. --enable-dynamic \
  31. --enable-syslog \
  32. --enable-local \
  33. --disable-syncprov \
  34. --disable-slurpd \
  35. --without-gssapi \
  36. --without-fetch \
  37. --with-cyrus-sasl \
  38. --with-threads \
  39. --with-tls \
  40. --with-yielding_select="yes" \
  41. CONFIGURE_ENV+= ac_cv_func_memcmp_working=yes
  42. CONFIGURE_ARGS+= ${PKG_CONFIGURE_OPTIONS}
  43. XAKE_FLAGS+= STRIP="" CPPFLAGS="-D_GNU_SOURCE"
  44. pre-configure:
  45. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  46. CPPFLAGS=-D_GNU_SOURCE ./configure \
  47. ${PKG_CONFIGURE_OPTIONS} \
  48. --disable-slapd \
  49. --without-cyrus-sasl \
  50. --without-threads \
  51. --without-tls \
  52. );
  53. ${MAKE} -C ${WRKBUILD} depend
  54. ${MAKE} -C ${WRKBUILD}/libraries/liblutil
  55. ${MAKE} -C ${WRKBUILD}/libraries/liblber
  56. ${MAKE} -C ${WRKBUILD}/libraries/liblunicode
  57. ${MAKE} -C ${WRKBUILD}/libraries/liblber clean
  58. ${MAKE} -C ${WRKBUILD}/libraries/liblutil clean
  59. ${MAKE} -C ${WRKBUILD}/libraries/liblunicode clean
  60. post-install:
  61. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/etc/openldap
  62. ${CP} ${WRKINST}/etc/openldap/ldap.conf \
  63. ${IDIR_LIBOPENLDAP}/etc/openldap/
  64. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib/
  65. ${CP} ${WRKINST}/usr/lib/lib{lber,ldap}*.so* \
  66. ${IDIR_LIBOPENLDAP}/usr/lib/
  67. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
  68. ${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
  69. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  70. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  71. ${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin/
  72. ${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/core.schema \
  73. ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  74. ${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
  75. include ${TOPDIR}/mk/pkg-bottom.mk