1
0

Makefile 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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 5 server
  9. PKG_SECTION:= 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 5 libraries
  21. PKGSC_LIBHEIMDAL:= libs
  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. ifeq ($(ADK_STATIC),y)
  32. PKG_OPTS+= libmix
  33. endif
  34. include $(TOPDIR)/mk/host.mk
  35. include $(TOPDIR)/mk/package.mk
  36. $(eval $(call HOST_template,HEIMDAL,heimdal,$(PKG_VERSION)-${PKG_RELEASE}))
  37. $(eval $(call PKG_template,HEIMDAL_SERVER,heimdal-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  38. $(eval $(call PKG_template,LIBHEIMDAL,libheimdal,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBHEIMDAL},${PKGSC_LIBHEIMDAL},${PKG_OPTS}))
  39. AUTOTOOL_STYLE:= autoreconf
  40. TARGET_LDFLAGS+= -ltinfo
  41. CONFIGURE_OPTS:= --with-hdbdir=/etc/heimdal \
  42. --disable-otp \
  43. --disable-ndbm-db \
  44. --libdir=/usr/lib/heimdal \
  45. --libexecdir=/usr/sbin \
  46. --includedir=/usr/include/heimdal \
  47. --without-sqlite3 \
  48. --without-libedit \
  49. --disable-sqlite-cache \
  50. --with-openssl=${STAGING_TARGET_DIR}/usr \
  51. --with-readline=${STAGING_TARGET_DIR}/usr \
  52. --with-ipv6 \
  53. --sysconfdir=/etc/heimdal
  54. ifeq ($(ADK_PACKAGE_HEIMDAL_SERVER_WITH_BDB),y)
  55. CONFIGURE_ARGS+= --with-berkeley-db
  56. else
  57. CONFIGURE_ARGS+= --without-berkeley-db
  58. endif
  59. ifeq ($(ADK_PACKAGE_HEIMDAL_SERVER_WITH_LDAP),y)
  60. CONFIGURE_ARGS+= --with-openldap=yes
  61. CONFIGURE_ARGS+= --with-openldap-include=${STAGING_TARGET_DIR}/usr
  62. CONFIGURE_ARGS+= --with-openldap-lib=${STAGING_TARGET_DIR}/usr
  63. else
  64. CONFIGURE_ARGS+= --without-openldap
  65. endif
  66. ifeq ($(ADK_PACKAGE_HEIMDAL_SERVER_WITH_PKINIT),y)
  67. CONFIGURE_OPTS+= --enable-pk-init
  68. else
  69. CONFIGURE_OPTS+= --disable-pk-init \
  70. --disable-kx509
  71. endif
  72. TARGET_CFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/et -pthread
  73. CONFIGURE_ARGS+= ${CONFIGURE_OPTS} --with-cross-tools=${STAGING_HOST_DIR}/usr/bin
  74. CONFIGURE_ENV+= ac_cv_func_getaddrinfo_numserv=yes
  75. HOST_STYLE:= auto
  76. HOST_CONFIGURE_ARGS+= --disable-pk-init \
  77. --without-openldap \
  78. --disable-kcm \
  79. --disable-kx509 \
  80. --disable-ndbm-db \
  81. --without-berkeley-db \
  82. --disable-sqlite-cache \
  83. --disable-otp
  84. heimdal-server-install:
  85. ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y)
  86. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  87. ${INSTALL_DATA} ${WRKBUILD}/lib/hdb/hdb.schema \
  88. ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema
  89. endif
  90. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  91. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/sbin
  92. ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  93. ${CP} ${WRKINST}/usr/lib/heimdal/libkdc.so* \
  94. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  95. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5srv.so* \
  96. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  97. ${CP} ${WRKINST}/usr/lib/heimdal/libhdb.so* \
  98. ${IDIR_HEIMDAL_SERVER}/usr/lib/heimdal
  99. ${INSTALL_DATA} ./files/{krb5.conf,kdc.conf,kadmind.acl} \
  100. ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  101. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kdc \
  102. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  103. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmind \
  104. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  105. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kpasswdd \
  106. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  107. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kstash \
  108. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  109. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ktutil \
  110. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  111. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmin \
  112. ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  113. libheimdal-install:
  114. ${INSTALL_DIR} ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  115. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_PKINIT),y)
  116. ${CP} ${WRKINST}/usr/lib/heimdal/libhx509.so* \
  117. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  118. endif
  119. ${CP} ${WRKINST}/usr/lib/heimdal/libheimsqlite.so* \
  120. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  121. ${CP} ${WRKINST}/usr/lib/heimdal/libheimbase.so* \
  122. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  123. ${CP} ${WRKINST}/usr/lib/heimdal/libheimntlm.so* \
  124. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  125. ${CP} ${WRKINST}/usr/lib/heimdal/libwind.so* \
  126. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  127. ${CP} ${WRKINST}/usr/lib/heimdal/libgssapi.so* \
  128. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  129. ${CP} ${WRKINST}/usr/lib/heimdal/libkafs.so* \
  130. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  131. ${CP} ${WRKINST}/usr/lib/heimdal/libkrb5.so* \
  132. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  133. ${CP} ${WRKINST}/usr/lib/heimdal/libasn1.so* \
  134. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  135. ${CP} ${WRKINST}/usr/lib/heimdal/libroken.so* \
  136. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  137. ${INSTALL_DIR} ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  138. ${CP} ${WRKINST}/usr/lib/heimdal/libsl.so* \
  139. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  140. ${CP} ${WRKINST}/usr/lib/heimdal/libkadm5clnt.so* \
  141. ${IDIR_LIBHEIMDAL}/usr/lib/heimdal
  142. include ${TOPDIR}/mk/host-bottom.mk
  143. include ${TOPDIR}/mk/pkg-bottom.mk