Makefile 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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:= heimdal
  5. PKG_VERSION:= 1.2.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6e5028077e2a6b101a4a72801ba71b9e
  8. PKG_DESCR:= Kerberos 5 server
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= heimdal-libs heimdal-client-libs libncurses libcom_err
  11. PKG_URL:= http://www.h5l.org
  12. PKG_SITES:= http://www.h5l.org/dist/src/
  13. PKG_DESCR_1:= Kerberos 5 server libraries
  14. PKG_SECTION_1:= libs
  15. PKG_DESCR_2:= Kerberos 5 client libraries
  16. PKG_SECTION_2:= libs
  17. include $(TOPDIR)/mk/package.mk
  18. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_BDB),y)
  19. PKG_DEPENDS+= libdb
  20. endif
  21. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_LDAP),y)
  22. PKG_DEPENDS+= libopenldap
  23. endif
  24. $(eval $(call PKG_template,HEIMDAL_SERVER,heimdal-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,HEIMDAL_LIBS,heimdal-libs,$(PKG_VERSION)-${PKG_RELEASE},,${PKG_DESCR_1},${PKG_SECTION_1}))
  26. $(eval $(call PKG_template,HEIMDAL_CLIENT_LIBS,heimdal-client-libs,$(PKG_VERSION)-${PKG_RELEASE},,${PKG_DESCR_2},${PKG_SECTION_2}))
  27. CONFIGURE_OPTS:= --with-hdbdir=/etc/heimdal \
  28. --disable-otp \
  29. --disable-ndbm-db \
  30. --libdir=/usr/lib/heimdal \
  31. --libexecdir=/usr/sbin \
  32. --with-ipv6 \
  33. --sysconfdir=/etc/heimdal
  34. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_BDB),y)
  35. CONFIGURE_ARGS+= --enable-berkeley-db
  36. else
  37. CONFIGURE_ARGS+= --disable-berkeley-db
  38. endif
  39. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_LDAP),y)
  40. CONFIGURE_ARGS+= --with-openldap=yes
  41. CONFIGURE_ARGS+= --with-openldap-include=${STAGING_DIR}/usr
  42. CONFIGURE_ARGS+= --with-openldap-lib=${STAGING_DIR}/usr
  43. else
  44. CONFIGURE_ARGS+= --without-openldap
  45. endif
  46. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_PKINIT),y)
  47. CONFIGURE_OPTS+= --enable-pk-init
  48. else
  49. CONFIGURE_OPTS+= --disable-pk-init
  50. endif
  51. TCFLAGS+= -I${STAGING_DIR}/usr/include/et -pthread
  52. CONFIGURE_STYLE:= gnu
  53. CONFIGURE_ARGS+= ${CONFIGURE_OPTS}
  54. CONFIGURE_ENV+= ac_cv_func_getaddrinfo_numserv=yes
  55. BUILD_STYLE:= auto
  56. INSTALL_STYLE:= auto
  57. pre-configure:
  58. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  59. CFLAGS="-static" \
  60. ./configure ${CONFIGURE_OPTS} \
  61. );
  62. ${MAKE} -C ${WRKBUILD}/lib/roken
  63. ${MAKE} -C ${WRKBUILD}/lib/vers
  64. ${MAKE} -C ${WRKBUILD}/lib/editline
  65. ${MAKE} -C ${WRKBUILD}/lib/asn1 asn1_compile
  66. ${MAKE} -C ${WRKBUILD}/lib/sl slc
  67. ${INSTALL_BIN} ${WRKBUILD}/lib/asn1/asn1_compile \
  68. ${STAGING_TOOLS}/bin
  69. ${INSTALL_BIN} ${WRKBUILD}/lib/sl/slc \
  70. ${STAGING_TOOLS}/bin
  71. ${MAKE} -C ${WRKBUILD} clean
  72. post-install:
  73. ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y)
  74. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  75. ${INSTALL_DATA} ${WRKBUILD}/lib/hdb/hdb.schema \
  76. ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  77. endif
  78. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  79. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/sbin
  80. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  81. ${CP} ${WRKINST}/usr/lib/heimdal/libkdc.so* ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  82. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5srv.so* ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  83. ${CP} ${WRKINST}/usr/lib/heimdal/libhdb.so* ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  84. ${INSTALL_DATA} ./files/krb5.conf ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  85. ${INSTALL_DATA} ./files/kdc.conf ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  86. ${INSTALL_DATA} ./files/kadmind.acl ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  87. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kdc ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  88. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmind ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  89. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kpasswdd ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  90. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kstash ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  91. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ktutil ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  92. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmin ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  93. # heimdal libs
  94. ${INSTALL_DIR} ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  95. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_PKINIT),y)
  96. ${CP} ${WRKINST}/usr/lib/heimdal/libhx509.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  97. endif
  98. ${CP} ${WRKINST}/usr/lib/heimdal/libheimntlm.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  99. ${CP} ${WRKINST}/usr/lib/heimdal/libwind.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  100. ${CP} ${WRKINST}/usr/lib/heimdal/libgssapi.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  101. ${CP} ${WRKINST}/usr/lib/heimdal/libkafs.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  102. ${CP} ${WRKINST}/usr/lib/heimdal/libkrb5.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  103. ${CP} ${WRKINST}/usr/lib/heimdal/libasn1.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  104. ${CP} ${WRKINST}/usr/lib/heimdal/libroken.so* ${IDIR_HEIMDAL_LIBS}/usr/lib/heimdal
  105. # heimdal client libs
  106. ${INSTALL_DIR} ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib/heimdal
  107. ${CP} ${WRKINST}/usr/lib/heimdal/libeditline.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib/heimdal
  108. ${CP} ${WRKINST}/usr/lib/heimdal/libsl.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib/heimdal
  109. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5clnt.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib/heimdal
  110. include ${TOPDIR}/mk/pkg-bottom.mk