Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.19
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= cyrus-sasl openssl libdb
  8. PKG_MD5SUM:= 4a6dab2711fcf141f19bb680bc335887
  9. PKG_DESCR:= OpenLDAP client libraries
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libopenssl libsasl2
  12. PKG_URL:= http://www.openldap.org
  13. PKG_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
  14. ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/ \
  15. ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/ \
  16. ftp://ftp.plig.org/pub/OpenLDAP/openldap-release/
  17. PKG_DESCR_1:= OpenLDAP utilities
  18. PKG_DEPENDS_1:= libopenldap
  19. PKG_SECTION_1:= net
  20. PKG_DESCR_2:= OpenLDAP server daemon
  21. PKG_DEPENDS_2:= libopenldap
  22. PKG_SECTION_2:= net
  23. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  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},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION_1}))
  27. $(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_2},${PKG_DESCR_2},${PKG_SECTION_2}))
  28. PKG_CONFIGURE_OPTIONS+= \
  29. --enable-slapd \
  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. 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. CONFIGURE_STYLE:= gnu
  61. CONFIGURE_ENV+= ac_cv_func_memcmp_working=yes
  62. CONFIGURE_ARGS+= ${PKG_CONFIGURE_OPTIONS}
  63. BUILD_STYLE:= auto
  64. INSTALL_STYLE:= auto
  65. XAKE_FLAGS+= STRIP="" CPPFLAGS="-D_GNU_SOURCE"
  66. post-install:
  67. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/etc/openldap
  68. ${CP} ${WRKINST}/etc/openldap/ldap.conf ${IDIR_LIBOPENLDAP}/etc/openldap/
  69. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib/
  70. ${CP} ${WRKINST}/usr/lib/lib{lber,ldap}*.so.* ${IDIR_LIBOPENLDAP}/usr/lib/
  71. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
  72. ${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
  73. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  74. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  75. ${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin/
  76. ${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/core.schema \
  77. ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  78. ${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
  79. include ${TOPDIR}/mk/pkg-bottom.mk