Makefile 3.1 KB

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