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.

138 lines
3.9 KiB

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