Makefile 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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_NOPARALLEL:= 1
  11. PKG_DEPENDS:= libheimdal libheimdal-client libncurses libcom-err
  12. PKG_BUILDDEP+= openssl ncurses e2fsprogs
  13. ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_BDB},y)
  14. PKG_BUILDDEP+= libdb
  15. endif
  16. ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y)
  17. PKG_BUILDDEP+= openldap
  18. endif
  19. PKG_URL:= http://www.h5l.org
  20. PKG_SITES:= http://www.h5l.org/dist/src/
  21. PKG_DESCR_1:= Kerberos 5 server libraries
  22. PKG_SECTION_1:= libs
  23. PKG_DESCR_2:= Kerberos 5 client libraries
  24. PKG_SECTION_2:= libs
  25. PKG_FLAVOURS:= PKINIT
  26. PKGFD_PKINIT:= Enable PK-INIT
  27. include $(TOPDIR)/mk/package.mk
  28. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_BDB),y)
  29. PKG_DEPENDS+= libdb
  30. endif
  31. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_LDAP),y)
  32. PKG_DEPENDS+= libopenldap
  33. endif
  34. $(eval $(call PKG_template,HEIMDAL_SERVER,heimdal-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  35. $(eval $(call PKG_template,LIBHEIMDAL,libheimdal,$(PKG_VERSION)-${PKG_RELEASE},,${PKG_DESCR_1},${PKG_SECTION_1}))
  36. $(eval $(call PKG_template,LIBHEIMDAL_CLIENT,libheimdal-client,$(PKG_VERSION)-${PKG_RELEASE},,${PKG_DESCR_2},${PKG_SECTION_2}))
  37. CONFIGURE_OPTS:= --with-hdbdir=/etc/heimdal \
  38. --disable-otp \
  39. --disable-ndbm-db \
  40. --libdir=/usr/lib/heimdal \
  41. --libexecdir=/usr/sbin \
  42. --with-ipv6 \
  43. --sysconfdir=/etc/heimdal
  44. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_BDB),y)
  45. CONFIGURE_ARGS+= --enable-berkeley-db
  46. else
  47. CONFIGURE_ARGS+= --disable-berkeley-db
  48. endif
  49. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_LDAP),y)
  50. CONFIGURE_ARGS+= --with-openldap=yes
  51. CONFIGURE_ARGS+= --with-openldap-include=${STAGING_DIR}/usr
  52. CONFIGURE_ARGS+= --with-openldap-lib=${STAGING_DIR}/usr
  53. else
  54. CONFIGURE_ARGS+= --without-openldap
  55. endif
  56. ifeq ($(ADK_PACKAGE_HEIMDAL_PKINIT),y)
  57. CONFIGURE_OPTS+= --enable-pk-init
  58. else
  59. CONFIGURE_OPTS+= --disable-pk-init
  60. endif
  61. TCFLAGS+= -I${STAGING_DIR}/usr/include/et -pthread
  62. CONFIGURE_ARGS+= ${CONFIGURE_OPTS}
  63. CONFIGURE_ENV+= ac_cv_func_getaddrinfo_numserv=yes
  64. ifeq ($(ADK_HOST_CYGWIN),y)
  65. EXEEXT:= .exe
  66. endif
  67. pre-configure:
  68. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  69. ./configure ${CONFIGURE_OPTS} \
  70. );
  71. ${MAKE} -C ${WRKBUILD}/lib/roken
  72. ${MAKE} -C ${WRKBUILD}/lib/vers
  73. ${MAKE} -C ${WRKBUILD}/lib/editline
  74. ${MAKE} -C ${WRKBUILD}/lib/asn1 asn1_compile$(EXEEXT)
  75. ${MAKE} -C ${WRKBUILD}/lib/sl slc$(EXEEXT)
  76. ${INSTALL_BIN} ${WRKBUILD}/lib/asn1/asn1_compile$(EXEEXT) \
  77. ${STAGING_TOOLS}/bin
  78. ${INSTALL_BIN} ${WRKBUILD}/lib/sl/slc$(EXEEXT) \
  79. ${STAGING_TOOLS}/bin
  80. ${MAKE} -C ${WRKBUILD}/lib/asn1 clean
  81. ${MAKE} -C ${WRKBUILD}/lib/roken clean
  82. ${MAKE} -C ${WRKBUILD} clean
  83. post-install:
  84. ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y)
  85. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  86. ${INSTALL_DATA} ${WRKBUILD}/lib/hdb/hdb.schema \
  87. ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  88. endif
  89. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  90. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/sbin
  91. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  92. ${CP} ${WRKINST}/usr/lib/heimdal/libkdc.so* \
  93. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  94. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5srv.so* \
  95. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  96. ${CP} ${WRKINST}/usr/lib/heimdal/libhdb.so* \
  97. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  98. ${INSTALL_DATA} ./files/{krb5.conf,kdc.conf,kadmind.acl} \
  99. ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  100. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kdc \
  101. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  102. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmind \
  103. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  104. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kpasswdd \
  105. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  106. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kstash \
  107. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  108. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ktutil \
  109. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  110. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmin \
  111. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  112. # heimdal libs
  113. ${INSTALL_DIR} ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  114. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_PKINIT),y)
  115. ${CP} ${WRKINST}/usr/lib/heimdal/libhx509.so* \
  116. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  117. endif
  118. ${CP} ${WRKINST}/usr/lib/heimdal/libheimntlm.so* \
  119. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  120. ${CP} ${WRKINST}/usr/lib/heimdal/libwind.so* \
  121. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  122. ${CP} ${WRKINST}/usr/lib/heimdal/libgssapi.so* \
  123. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  124. ${CP} ${WRKINST}/usr/lib/heimdal/libkafs.so* \
  125. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  126. ${CP} ${WRKINST}/usr/lib/heimdal/libkrb5.so* \
  127. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  128. ${CP} ${WRKINST}/usr/lib/heimdal/libasn1.so* \
  129. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  130. ${CP} ${WRKINST}/usr/lib/heimdal/libroken.so* \
  131. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  132. # heimdal client libs
  133. ${INSTALL_DIR} ${IDIR_LIBHEIMDAL_CLIENT}/usr/lib/heimdal
  134. ${CP} ${WRKINST}/usr/lib/heimdal/libeditline.so* \
  135. ${IDIR_LIBHEIMDAL_CLIENT}/usr/lib/heimdal
  136. ${CP} ${WRKINST}/usr/lib/heimdal/libsl.so* \
  137. ${IDIR_LIBHEIMDAL_CLIENT}/usr/lib/heimdal
  138. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5clnt.so* \
  139. ${IDIR_LIBHEIMDAL_CLIENT}/usr/lib/heimdal
  140. include ${TOPDIR}/mk/pkg-bottom.mk