1
0

Makefile 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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
  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. --libexecdir=/usr/sbin \
  31. --sysconfdir=/etc/heimdal
  32. ifeq ($(ADK_IPV6),y)
  33. CONFIGURE_OPTS+= --with-ipv6
  34. else
  35. CONFIGURE_OPTS+= --without-ipv6
  36. endif
  37. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_BDB),y)
  38. CONFIGURE_ARGS+= --enable-berkeley-db
  39. else
  40. CONFIGURE_ARGS+= --disable-berkeley-db
  41. endif
  42. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_LDAP),y)
  43. CONFIGURE_ARGS+= --with-openldap=yes
  44. CONFIGURE_ARGS+= --with-openldap-include=${STAGING_DIR}/usr
  45. CONFIGURE_ARGS+= --with-openldap-lib=${STAGING_DIR}/usr
  46. else
  47. CONFIGURE_ARGS+= --without-openldap
  48. endif
  49. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_PKINIT),y)
  50. CONFIGURE_OPTS+= --enable-pk-init
  51. else
  52. CONFIGURE_OPTS+= --disable-pk-init
  53. endif
  54. TCFLAGS+= -pthread
  55. CONFIGURE_STYLE= gnu
  56. CONFIGURE_ARGS+= ${CONFIGURE_OPTS}
  57. CONFIGURE_ENV+= ac_cv_func_getaddrinfo_numserv=yes
  58. BUILD_STYLE= auto
  59. INSTALL_STYLE= auto confprog
  60. pre-configure:
  61. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  62. CFLAGS="-static" \
  63. ./configure ${CONFIGURE_OPTS} \
  64. );
  65. ${MAKE} -C ${WRKBUILD}/lib/roken
  66. ${MAKE} -C ${WRKBUILD}/lib/vers
  67. ${MAKE} -C ${WRKBUILD}/lib/editline
  68. ${MAKE} -C ${WRKBUILD}/lib/com_err compile_et
  69. ${MAKE} -C ${WRKBUILD}/lib/asn1 asn1_compile
  70. ${MAKE} -C ${WRKBUILD}/lib/sl slc
  71. ${INSTALL_BIN} ${WRKBUILD}/lib/com_err/compile_et \
  72. ${STAGING_TOOLS}/bin
  73. ${INSTALL_BIN} ${WRKBUILD}/lib/asn1/asn1_compile \
  74. ${STAGING_TOOLS}/bin
  75. ${INSTALL_BIN} ${WRKBUILD}/lib/sl/slc \
  76. ${STAGING_TOOLS}/bin
  77. ${MAKE} -C ${WRKBUILD}/lib/com_err clean
  78. ${MAKE} -C ${WRKBUILD} clean
  79. post-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
  88. ${CP} ${WRKINST}/usr/lib/libkdc.so* ${IDIR_HEIMDAL_SERVER}/usr/lib
  89. ${CP} ${WRKINST}/usr/lib/libkadm5srv.so* ${IDIR_HEIMDAL_SERVER}/usr/lib
  90. ${CP} ${WRKINST}/usr/lib/libhdb.so* ${IDIR_HEIMDAL_SERVER}/usr/lib
  91. ${INSTALL_DATA} ./files/krb5.conf ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  92. ${INSTALL_DATA} ./files/kdc.conf ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  93. ${INSTALL_DATA} ./files/kadmind.acl ${IDIR_HEIMDAL_SERVER}/etc/heimdal
  94. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kdc ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  95. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmind ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  96. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kpasswdd ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  97. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kstash ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  98. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ktutil ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  99. ${INSTALL_BIN} ${WRKINST}/usr/sbin/kadmin ${IDIR_HEIMDAL_SERVER}/usr/sbin/
  100. # heimdal libs
  101. ${INSTALL_DIR} ${IDIR_HEIMDAL_LIBS}/usr/lib
  102. ifeq ($(ADK_COMPILE_HEIMDAL_WITH_PKINIT),y)
  103. ${CP} ${WRKINST}/usr/lib/libhx509.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  104. endif
  105. ${CP} ${WRKINST}/usr/lib/libheimntlm.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  106. ${CP} ${WRKINST}/usr/lib/libwind.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  107. ${CP} ${WRKINST}/usr/lib/libgssapi.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  108. ${CP} ${WRKINST}/usr/lib/libkafs.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  109. ${CP} ${WRKINST}/usr/lib/libkrb5.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  110. ${CP} ${WRKINST}/usr/lib/libcom_err.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  111. ${CP} ${WRKINST}/usr/lib/libasn1.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  112. ${CP} ${WRKINST}/usr/lib/libroken.so* ${IDIR_HEIMDAL_LIBS}/usr/lib
  113. # heimdal client libs
  114. ${INSTALL_DIR} ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib
  115. ${CP} ${WRKINST}/usr/lib/libeditline.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib
  116. ${CP} ${WRKINST}/usr/lib/libsl.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib
  117. ${CP} ${WRKINST}/usr/lib/libkadm5clnt.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib
  118. include ${TOPDIR}/mk/pkg-bottom.mk