Makefile 3.5 KB

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