Makefile 3.5 KB

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