Makefile 3.5 KB

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