Makefile 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= openldap
  7. PKG_VERSION:= 2.4.16
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= ed5b86e9d2b372d10edfe3bb59fee165
  10. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  11. MASTER_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
  12. ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/ \
  13. ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/ \
  14. ftp://ftp.plig.org/pub/OpenLDAP/openldap-release/
  15. PKG_CONFIGURE_OPTIONS+= \
  16. --enable-slapd \
  17. --enable-bdb \
  18. --disable-hdb \
  19. --disable-relay \
  20. --enable-dynamic \
  21. --enable-syslog \
  22. --enable-local \
  23. --disable-syncprov \
  24. --disable-slurpd \
  25. --without-gssapi \
  26. --without-fetch \
  27. --with-cyrus-sasl \
  28. --with-threads \
  29. --with-tls \
  30. --with-yielding_select="yes" \
  31. include ${TOPDIR}/mk/package.mk
  32. $(eval $(call PKG_template,LIBOPENLDAP,libopenldap,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
  33. $(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
  34. $(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
  35. pre-configure:
  36. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  37. CPPFLAGS=-D_GNU_SOURCE ./configure \
  38. ${PKG_CONFIGURE_OPTIONS} \
  39. --disable-slapd \
  40. --without-cyrus-sasl \
  41. --without-threads \
  42. --without-tls \
  43. );
  44. ${MAKE} -C ${WRKBUILD} depend
  45. ${MAKE} -C ${WRKBUILD}/libraries/liblutil
  46. ${MAKE} -C ${WRKBUILD}/libraries/liblber
  47. ${MAKE} -C ${WRKBUILD}/libraries/liblunicode
  48. ${MAKE} -C ${WRKBUILD}/libraries/liblber clean
  49. ${MAKE} -C ${WRKBUILD}/libraries/liblutil clean
  50. ${MAKE} -C ${WRKBUILD}/libraries/liblunicode clean
  51. CONFIGURE_STYLE= gnu
  52. CONFIGURE_ENV+= ac_cv_func_memcmp_working=yes
  53. CONFIGURE_ARGS+= ${PKG_CONFIGURE_OPTIONS}
  54. BUILD_STYLE= auto
  55. INSTALL_STYLE= auto
  56. XAKE_FLAGS+= STRIP=""
  57. post-install:
  58. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/etc/openldap
  59. ${CP} ${WRKINST}/etc/openldap/ldap.conf ${IDIR_LIBOPENLDAP}/etc/openldap/
  60. ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib/
  61. ${CP} ${WRKINST}/usr/lib/lib{lber,ldap}*.so.* ${IDIR_LIBOPENLDAP}/usr/lib/
  62. ${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
  63. ${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
  64. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  65. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/init.d
  66. ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
  67. ${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin/
  68. ${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/core.schema \
  69. ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
  70. ${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
  71. ${INSTALL_DATA} ./files/slapd.init \
  72. ${IDIR_OPENLDAP_SLAPD}/etc/init.d/slapd
  73. include ${TOPDIR}/mk/pkg-bottom.mk