Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.8.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e29a78b108c4687f7e7937110d1d0415
  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.8/
  14. PKG_NOPARALLEL:= 1
  15. PKG_SUBPKGS:= KRB5_SERVER LIBKRB5
  16. PKGSD_LIBKRB5:= MIT kerberos libraries
  17. PKGSC_LIBKRB5:= libs
  18. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-signed.tar
  19. WRKSRC= ${WRKDIST}/src
  20. include $(TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,KRB5_SERVER,krb5-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBKRB5,libkrb5,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBKRB5},${PKGSC_LIBKRB5}))
  23. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/et
  24. CONFIGURE_ARGS+= --disable-static \
  25. --disable-profiled \
  26. --with-system-ss \
  27. --with-system-et \
  28. --without-tcl
  29. CONFIGURE_ENV+= krb5_cv_attr_constructor_destructor=yes,yes \
  30. ac_cv_func_regcomp=yes \
  31. ac_cv_printf_positional=yes \
  32. ac_cv_file__etc_environment=no \
  33. ac_cv_file__etc_TIMEZONE=no
  34. post-extract:
  35. (cd ${WRKDIR}; tar xzf ${PKG_NAME}-${PKG_VERSION}.tar.gz)
  36. pre-build:
  37. # fix nm call in script, we need the GNU version of nm
  38. $(SED) "s#@@NM@@#${NM}#" ${WRKSRC}/util/export-check.pl
  39. post-install:
  40. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/etc
  41. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/etc/krb5kdc
  42. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/sbin
  43. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/lib
  44. ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
  45. ${INSTALL_DATA} ./files/kdc.conf ${IDIR_KRB5_SERVER}/etc/krb5kdc
  46. ${INSTALL_BIN} ${WRKINST}/usr/bin/{ktutil,kadmin} \
  47. ${IDIR_KRB5_SERVER}/usr/sbin
  48. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{kdb5_util,krb5kdc,kadmind,kadmin.local} \
  49. ${IDIR_KRB5_SERVER}/usr/sbin
  50. ${INSTALL_DATA} ${WRKINST}/usr/lib/krb5/plugins/kdb/db2.so \
  51. ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
  52. ${CP} ${WRKINST}/usr/lib/lib{gssrpc,kadm5clnt,kadm5srv,kdb5}.so* \
  53. ${IDIR_KRB5_SERVER}/usr/lib
  54. libkrb5-install:
  55. ${INSTALL_DIR} ${IDIR_LIBKRB5}/etc
  56. ${INSTALL_DIR} ${IDIR_LIBKRB5}/usr/lib
  57. ${INSTALL_DATA} ./files/krb5.conf ${IDIR_LIBKRB5}/etc
  58. ${CP} ${WRKINST}/usr/lib/lib{gssapi_krb5,k5crypto,krb5,krb5support}.so* \
  59. ${IDIR_LIBKRB5}/usr/lib
  60. echo '/usr/lib/libgssapi_krb5.so mechglue_internal_krb5_init' \
  61. > ${IDIR_LIBKRB5}/etc/gssapi_mech.conf
  62. include ${TOPDIR}/mk/pkg-bottom.mk