Makefile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= heimdal
  5. PKG_VERSION:= 1.5.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 30b379e3de12f332fbd201131f02ffca
  8. PKG_DESCR:= kerberos server
  9. PKG_SECTION:= app/crypto
  10. PKG_BUILDDEP:= openssl ncurses e2fsprogs readline heimdal-host
  11. PKG_DEPENDS:= libheimdal libncurses libcom-err libreadline libopenssl
  12. PKG_URL:= http://www.h5l.org/
  13. PKG_SITES:= http://www.h5l.org/dist/src/
  14. PKG_NOPARALLEL:= 1
  15. PKG_LIBNAME:= libheimdal
  16. PKG_OPTS:= dev
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  18. PKG_SUBPKGS:= HEIMDAL_SERVER LIBHEIMDAL
  19. PKGSD_LIBHEIMDAL:= kerberos libraries
  20. PKGSC_LIBHEIMDAL:= libs/crypto
  21. PKG_FLAVOURS_HEIMDAL_SERVER:= WITH_PKINIT
  22. PKGFD_WITH_PKINIT: Enable PK-INIT
  23. PKG_CHOICES_HEIMDAL_SERVER:= WITH_LDAP WITH_BDB
  24. PKGCD_WITH_LDAP:= use OpenLDAP as database backend
  25. PKGCS_WITH_LDAP:= libopenldap
  26. PKGCB_WITH_LDAP:= openldap
  27. PKGCD_WITH_BDB:= use Berkeley DB as database backend
  28. PKGCS_WITH_BDB:= libdb
  29. PKGCB_WITH_BDB:= db
  30. include $(ADK_TOPDIR)/mk/host.mk
  31. include $(ADK_TOPDIR)/mk/package.mk
  32. $(eval $(call HOST_template,HEIMDAL,heimdal,$(PKG_VERSION)-${PKG_RELEASE}))
  33. $(eval $(call PKG_template,HEIMDAL_SERVER,heimdal-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  34. $(eval $(call PKG_template,LIBHEIMDAL,libheimdal,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBHEIMDAL},${PKGSC_LIBHEIMDAL},${PKG_OPTS}))
  35. AUTOTOOL_STYLE:= autoreconf
  36. TARGET_LDFLAGS+= -ltinfo
  37. CONFIGURE_OPTS:= --with-hdbdir=/etc/heimdal \
  38. --disable-otp \
  39. --disable-ndbm-db \
  40. --libdir=/usr/lib/heimdal \
  41. --libexecdir=/usr/sbin \
  42. --includedir=/usr/include/heimdal \
  43. --without-sqlite3 \
  44. --without-libedit \
  45. --disable-sqlite-cache \
  46. --with-openssl=${STAGING_TARGET_DIR}/usr \
  47. --with-readline=${STAGING_TARGET_DIR}/usr \
  48. --with-ipv6 \
  49. --sysconfdir=/etc/heimdal
  50. ifeq ($(ADK_PACKAGE_HEIMDAL_SERVER_WITH_BDB),y)
  51. CONFIGURE_ARGS+= --with-berkeley-db
  52. else
  53. CONFIGURE_ARGS+= --without-berkeley-db
  54. endif
  55. ifeq ($(ADK_PACKAGE_HEIMDAL_SERVER_WITH_LDAP),y)
  56. CONFIGURE_ARGS+= --with-openldap=yes
  57. CONFIGURE_ARGS+= --with-openldap-include=${STAGING_TARGET_DIR}/usr
  58. CONFIGURE_ARGS+= --with-openldap-lib=${STAGING_TARGET_DIR}/usr
  59. else
  60. CONFIGURE_ARGS+= --without-openldap
  61. endif
  62. ifeq ($(ADK_PACKAGE_HEIMDAL_SERVER_WITH_PKINIT),y)
  63. CONFIGURE_OPTS+= --enable-pk-init
  64. else
  65. CONFIGURE_OPTS+= --disable-pk-init \
  66. --disable-kx509
  67. endif
  68. TARGET_CFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/et -pthread
  69. CONFIGURE_ARGS+= ${CONFIGURE_OPTS} --with-cross-tools=${STAGING_HOST_DIR}/usr/libexec/heimdal
  70. CONFIGURE_ENV+= ac_cv_func_getaddrinfo_numserv=yes
  71. HOST_CONFIGURE_ARGS+= --disable-pk-init \
  72. --without-openldap \
  73. --disable-kcm \
  74. --disable-kx509 \
  75. --disable-ndbm-db \
  76. --without-berkeley-db \
  77. --disable-sqlite-cache \
  78. --disable-otp
  79. heimdal-server-install:
  80. ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y)
  81. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  82. ${INSTALL_DATA} ${WRKBUILD}/lib/hdb/hdb.schema \
  83. ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  84. endif
  85. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  86. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/sbin
  87. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  88. ${CP} ${WRKINST}/usr/lib/heimdal/libkdc.so* \
  89. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  90. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5srv.so* \
  91. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  92. ${CP} ${WRKINST}/usr/lib/heimdal/libhdb.so* \
  93. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  94. ${INSTALL_DATA} ./files/{krb5.conf,kdc.conf,kadmind.acl} \
  95. ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  96. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kdc \
  97. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  98. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmind \
  99. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  100. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kpasswdd \
  101. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  102. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kstash \
  103. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  104. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ktutil \
  105. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  106. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmin \
  107. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  108. libheimdal-install:
  109. ${INSTALL_DIR} ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  110. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_PKINIT),y)
  111. ${CP} ${WRKINST}/usr/lib/heimdal/libhx509.so* \
  112. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  113. endif
  114. ${CP} ${WRKINST}/usr/lib/heimdal/libheimsqlite.so* \
  115. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  116. ${CP} ${WRKINST}/usr/lib/heimdal/libheimbase.so* \
  117. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  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. ${INSTALL_DIR} ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  133. ${CP} ${WRKINST}/usr/lib/heimdal/libsl.so* \
  134. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  135. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5clnt.so* \
  136. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  137. include ${ADK_TOPDIR}/mk/host-bottom.mk
  138. include ${ADK_TOPDIR}/mk/pkg-bottom.mk