1
0

Makefile 3.1 KB

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