No Description

Makefile 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=krb5
  3. PKG_VERSION:=1.12.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=krb5-$(PKG_VERSION)-signed.tar
  6. PKG_SOURCE_URL:=http://web.mit.edu/kerberos/dist/krb5/1.12/
  7. PKG_MD5SUM:=524b1067b619cb5bf780759b6884c3f5
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  9. PKG_BUILD_PARALLEL:=1
  10. PKG_INSTALL:=1
  11. PKG_CHECK_FORMAT_SECURITY:=0
  12. include $(INCLUDE_DIR)/package.mk
  13. MAKE_PATH:=src
  14. define Package/krb5/Default
  15. SECTION:=net
  16. CATEGORY:=Network
  17. TITLE:=Kerberos
  18. URL:=http://web.mit.edu/kerberos/
  19. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  20. endef
  21. define Package/krb5-libs
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=Kerberos
  25. DEPENDS:=+libncurses
  26. TITLE:=Kerberos 5 Shared Libraries
  27. URL:=http://web.mit.edu/kerberos/
  28. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  29. endef
  30. define Package/krb5-server
  31. $(call Package/krb5/Default)
  32. DEPENDS:=+krb5-libs +libpthread
  33. TITLE:=Kerberos 5 Server
  34. endef
  35. define Package/krb5-client
  36. $(call Package/krb5/Default)
  37. DEPENDS:=+krb5-libs
  38. TITLE:=Kerberos 5 Client
  39. endef
  40. define Package/krb5/description
  41. Kerberos
  42. endef
  43. define Build/Prepare
  44. # Krb5 tarball contains signature and a second tarball
  45. # containing source code.
  46. tar xf "$(DL_DIR)/$(PKG_SOURCE)" -C "$(BUILD_DIR)"
  47. tar xzf "$(BUILD_DIR)/krb5-$(PKG_VERSION).tar.gz" -C "$(BUILD_DIR)"
  48. patch -p1 -d "$(PKG_BUILD_DIR)" < "$(PATCH_DIR)/001-fix-build.patch"
  49. endef
  50. CONFIGURE_PATH = ./src
  51. CONFIGURE_VARS += \
  52. cross_compiling=yes \
  53. krb5_cv_attr_constructor_destructor=yes,yes \
  54. ac_cv_func_regcomp=yes \
  55. ac_cv_printf_positional=yes \
  56. ac_cv_file__etc_environment=no \
  57. ac_cv_file__etc_TIMEZONE=no
  58. CONFIGURE_ARGS += \
  59. --without-tcl \
  60. --without-libedit \
  61. --localstatedir=/etc
  62. define Build/InstallDev
  63. $(INSTALL_DIR) $(1)/usr/include
  64. $(CP) $(PKG_INSTALL_DIR)/usr/include \
  65. $(1)/usr/include/krb5
  66. $(INSTALL_DIR) $(1)/usr
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib \
  68. $(1)/usr
  69. rm -f $(1)/usr/lib/libcom_err*
  70. endef
  71. define Package/krb5-libs/install
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(INSTALL_DIR) $(1)/usr/lib/krb5
  74. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins
  75. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/kdb
  76. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/libkrb5
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/krb5/plugins/kdb/db2.so $(1)/usr/lib/krb5/plugins/kdb
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
  79. endef
  80. define Package/krb5-client/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdestroy $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kinit $(1)/usr/bin
  84. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/klist $(1)/usr/bin
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kpasswd $(1)/usr/bin
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ksu $(1)/usr/bin
  87. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kvno $(1)/usr/bin
  88. $(INSTALL_DIR) $(1)/usr/sbin
  89. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5-send-pr $(1)/usr/sbin
  90. endef
  91. # Removed some server-side software to reduce package size. This should be
  92. # put in a separate package if needed.
  93. define Package/krb5-server/install
  94. $(INSTALL_DIR) $(1)/etc/init.d
  95. $(INSTALL_BIN) ./files/krb5kdc $(1)/etc/init.d/krb5kdc
  96. # $(INSTALL_DIR) $(1)/usr/bin
  97. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sclient $(1)/usr/bin
  98. $(INSTALL_DIR) $(1)/usr/sbin
  99. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmin.local $(1)/usr/sbin
  100. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmind $(1)/usr/sbin
  101. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
  102. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kprop $(1)/usr/sbin
  103. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kpropd $(1)/usr/sbin
  104. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5kdc $(1)/usr/sbin
  105. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sim_server $(1)/usr/sbin
  106. endef
  107. $(eval $(call BuildPackage,krb5-libs))
  108. $(eval $(call BuildPackage,krb5-server))
  109. $(eval $(call BuildPackage,krb5-client))