Makefile 3.8 KB

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