Makefile 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= krb5
  5. PKG_VERSION:= 1.13.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 4df629fdf97f362cf81edbf38d613b32b492dd88c876cf3aa1c66562f296663e
  8. PKG_DESCR:= kerberos server
  9. PKG_SECTION:= app/crypto
  10. PKG_DEPENDS:= libkrb5 libncurses keyutils
  11. PKG_BUILDDEP:= ncurses gettext-tiny bison-host
  12. PKG_NEEDS:= threads
  13. PKG_URL:= http://web.mit.edu/kerberos/
  14. PKG_SITES:= http://web.mit.edu/kerberos/dist/krb5/1.13/
  15. PKG_LIBNAME:= libkrb5
  16. PKG_OPTS:= dev noscripts
  17. PKG_NOPARALLEL:= 1
  18. PKG_SUBPKGS:= KRB5_SERVER KRB5_CLIENT LIBKRB5
  19. PKGSD_LIBKRB5:= kerberos libraries
  20. PKGSC_LIBKRB5:= libs/crypto
  21. PKGSD_KRB5_CLIENT:= kerberos client tools
  22. PKGSC_KRB5_CLIENT:= app/crypto
  23. PKGSS_KRB5_CLIENT:= libkrb5 libncurses
  24. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-signed.tar
  25. WRKSRC= ${WRKDIST}/src
  26. include $(ADK_TOPDIR)/mk/package.mk
  27. $(eval $(call PKG_template,KRB5_SERVER,krb5-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. $(eval $(call PKG_template,KRB5_CLIENT,krb5-client,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_KRB5_CLIENT},${PKGSD_KRB5_CLIENT},${PKGSC_KRB5_CLIENT}))
  29. $(eval $(call PKG_template,LIBKRB5,libkrb5,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBKRB5},${PKGSC_LIBKRB5},${PKG_OPTS}))
  30. CONFIGURE_ARGS+= --disable-static \
  31. --disable-profiled \
  32. --without-system-et \
  33. --without-system-ss \
  34. --without-system-verto \
  35. --without-tcl
  36. CONFIGURE_ENV+= krb5_cv_attr_constructor_destructor=yes,yes \
  37. ac_cv_func_regcomp=yes \
  38. ac_cv_printf_positional=yes \
  39. ac_cv_file__etc_environment=no \
  40. ac_cv_file__etc_TIMEZONE=no
  41. post-extract:
  42. (cd ${WRKDIR}; tar xzf ${PKG_NAME}-${PKG_VERSION}.tar.gz)
  43. pre-build:
  44. # fix nm call in script, we need the GNU version of nm
  45. $(SED) "s#@@NM@@#${NM}#" ${WRKSRC}/util/export-check.pl
  46. krb5-server-install:
  47. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/etc/krb5kdc
  48. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/sbin
  49. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
  50. ${INSTALL_DATA} ./files/kdc.conf ${IDIR_KRB5_SERVER}/etc/krb5kdc
  51. ${INSTALL_DATA} ./files/kadm5.acl ${IDIR_KRB5_SERVER}/etc/krb5kdc
  52. ${INSTALL_BIN} ${WRKINST}/usr/bin/kadmin \
  53. ${IDIR_KRB5_SERVER}/usr/sbin
  54. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{kdb5_util,krb5kdc,kadmind,kadmin.local} \
  55. ${IDIR_KRB5_SERVER}/usr/sbin
  56. ${INSTALL_DATA} ${WRKINST}/usr/lib/krb5/plugins/kdb/db2.so \
  57. ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
  58. krb5-client-install:
  59. ${INSTALL_DIR} ${IDIR_KRB5_CLIENT}/usr/bin
  60. ${INSTALL_BIN} ${WRKINST}/usr/bin/{kinit,kpasswd,klist,kdestroy,ktutil} \
  61. ${IDIR_KRB5_CLIENT}/usr/bin
  62. libkrb5-install:
  63. ${INSTALL_DIR} ${IDIR_LIBKRB5}/etc
  64. ${INSTALL_DIR} ${IDIR_LIBKRB5}/usr/lib
  65. ${INSTALL_DATA} ./files/krb5.conf ${IDIR_LIBKRB5}/etc
  66. ${CP} ${WRKINST}/usr/lib/lib{verto,gssrpc,kadm5clnt*,kadm5srv*,kdb5}.so* \
  67. ${IDIR_LIBKRB5}/usr/lib
  68. ${CP} ${WRKINST}/usr/lib/lib{gssapi_krb5,k5crypto,krb5,krb5support}.so* \
  69. ${IDIR_LIBKRB5}/usr/lib
  70. echo '/usr/lib/libgssapi_krb5.so mechglue_internal_krb5_init' \
  71. > ${IDIR_LIBKRB5}/etc/gssapi_mech.conf
  72. include ${ADK_TOPDIR}/mk/pkg-bottom.mk