1
0

Makefile 2.3 KB

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