Makefile 5.4 KB

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