1
0

Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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:= krb5
  5. PKG_VERSION:= 1.7
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 9f7b3402b4731a7fa543db193bf1b564
  8. PKG_DESCR:= MIT kerberos server
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= krb5-libs libncurses libss libcom-err
  11. PKG_BUILDDEP+= ncurses e2fsprogs
  12. PKG_URL:= http://web.mit.edu/kerberos
  13. PKG_SITES:= http://web.mit.edu/kerberos/dist/krb5/1.7/
  14. PKG_DESCR_LIB:= MIT kerberos libraries
  15. PKG_SECTION_LIB:= libs
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-signed.tar
  17. WRKSRC= ${WRKDIST}/src
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,KRB5_SERVER,krb5-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,KRB5_LIBS,krb5-libs,$(PKG_VERSION)-${PKG_RELEASE},,${PKG_DESCR_LIB},${PKG_SECTION_LIB}))
  21. TCFLAGS+= -I${STAGING_DIR}/usr/include/et
  22. CONFIGURE_STYLE:= gnu
  23. CONFIGURE_ARGS+= --disable-static \
  24. --disable-profiled \
  25. --with-system-ss \
  26. --with-system-et \
  27. --without-tcl
  28. CONFIGURE_ENV+= krb5_cv_attr_constructor_destructor=yes,yes \
  29. ac_cv_func_regcomp=yes \
  30. ac_cv_printf_positional=yes \
  31. ac_cv_file__etc_environment=no \
  32. ac_cv_file__etc_TIMEZONE=no
  33. BUILD_STYLE:= auto
  34. INSTALL_STYLE:= auto
  35. post-extract:
  36. (cd ${WRKDIR}; tar xzf ${PKG_NAME}-${PKG_VERSION}.tar.gz)
  37. post-install:
  38. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/etc
  39. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/etc/krb5kdc
  40. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/sbin
  41. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/lib
  42. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
  43. ${INSTALL_DATA} ./files/kdc.conf ${IDIR_KRB5_SERVER}/etc/krb5kdc
  44. ${INSTALL_BIN} ${WRKINST}/usr/bin/{ktutil,kadmin} \
  45. ${IDIR_KRB5_SERVER}/usr/sbin
  46. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{kdb5_util,krb5kdc,kadmind,kadmin.local} \
  47. ${IDIR_KRB5_SERVER}/usr/sbin
  48. ${INSTALL_DATA} ${WRKINST}/usr/lib/krb5/plugins/kdb/db2.so \
  49. ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
  50. ${CP} ${WRKINST}/usr/lib/lib{gssrpc,kadm5clnt,kadm5srv,kdb5}.so* \
  51. ${IDIR_KRB5_SERVER}/usr/lib
  52. # krb5-libs
  53. ${INSTALL_DIR} ${IDIR_KRB5_LIBS}/etc
  54. ${INSTALL_DIR} ${IDIR_KRB5_LIBS}/usr/lib
  55. ${INSTALL_DATA} ./files/krb5.conf ${IDIR_KRB5_LIBS}/etc
  56. ${CP} ${WRKINST}/usr/lib/lib{gssapi_krb5,k5crypto,krb5,krb5support}.so* \
  57. ${IDIR_KRB5_LIBS}/usr/lib
  58. echo '/usr/lib/libgssapi_krb5.so mechglue_internal_krb5_init' > ${IDIR_KRB5_LIBS}/etc/gssapi_mech.conf
  59. include ${TOPDIR}/mk/pkg-bottom.mk