You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
3.7 KiB

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