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.

141 lines
4.1 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.16.2
  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:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://web.mit.edu/kerberos/dist/krb5/1.16
  16. PKG_HASH:=9f721e1fe593c219174740c71de514c7228a97d23eb7be7597b2ae14e487f027
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. PKG_USE_MIPS16:=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:=https://web.mit.edu/kerberos/
  27. endef
  28. define Package/krb5-libs
  29. SECTION:=net
  30. CATEGORY:=Network
  31. TITLE:=Kerberos
  32. DEPENDS:=+libncurses +libss +libcomerr
  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 is a network authentication protocol.
  48. It is designed to provide strong authentication for client/server applications by using secret-key cryptography.
  49. endef
  50. CONFIGURE_PATH = ./src
  51. CONFIGURE_VARS += \
  52. cross_compiling=yes \
  53. krb5_cv_attr_constructor_destructor=yes,yes \
  54. krb5_cv_sys_rcdir=/tmp \
  55. ac_cv_func_regcomp=yes \
  56. ac_cv_printf_positional=yes \
  57. ac_cv_file__etc_environment=no \
  58. ac_cv_file__etc_TIMEZONE=no \
  59. ac_cv_header_keyutils_h=no
  60. CONFIGURE_ARGS += \
  61. --localstatedir=/etc \
  62. --with-system-ss \
  63. --with-system-et \
  64. --without-system-verto \
  65. --without-tcl \
  66. --without-tls-impl \
  67. --without-libedit \
  68. --without-readline \
  69. --disable-rpath \
  70. --disable-pkinit \
  71. --with-size-optimizations \
  72. --with-crypto-impl=builtin
  73. define Build/InstallDev
  74. $(INSTALL_DIR) $(1)/usr/include
  75. $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr
  76. $(INSTALL_DIR) $(1)/usr
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr
  78. # needed for samba4, to detect system-krb5
  79. $(INSTALL_DIR) $(1)/usr/bin
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/krb5-config $(1)/usr/bin
  81. endef
  82. define Package/krb5-libs/install
  83. $(INSTALL_DIR) $(1)/usr/lib
  84. $(INSTALL_DIR) $(1)/usr/lib/krb5
  85. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins
  86. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/kdb
  87. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/libkrb5
  88. $(CP) $(PKG_INSTALL_DIR)/usr/lib/krb5/plugins/kdb/db2.so $(1)/usr/lib/krb5/plugins/kdb
  89. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
  90. endef
  91. define Package/krb5-client/install
  92. $(INSTALL_DIR) $(1)/usr/bin
  93. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdestroy $(1)/usr/bin
  94. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kinit $(1)/usr/bin
  95. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/klist $(1)/usr/bin
  96. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kpasswd $(1)/usr/bin
  97. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ksu $(1)/usr/bin
  98. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kvno $(1)/usr/bin
  99. $(INSTALL_DIR) $(1)/usr/sbin
  100. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5-send-pr $(1)/usr/sbin
  101. endef
  102. # Removed some server-side software to reduce package size. This should be
  103. # put in a separate package if needed.
  104. define Package/krb5-server/install
  105. $(INSTALL_DIR) $(1)/etc/init.d
  106. $(INSTALL_BIN) ./files/krb5kdc $(1)/etc/init.d/krb5kdc
  107. # $(INSTALL_DIR) $(1)/usr/bin
  108. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sclient $(1)/usr/bin
  109. $(INSTALL_DIR) $(1)/usr/sbin
  110. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmin.local $(1)/usr/sbin
  111. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmind $(1)/usr/sbin
  112. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
  113. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kprop $(1)/usr/sbin
  114. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kpropd $(1)/usr/sbin
  115. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5kdc $(1)/usr/sbin
  116. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sim_server $(1)/usr/sbin
  117. endef
  118. $(eval $(call BuildPackage,krb5-libs))
  119. $(eval $(call BuildPackage,krb5-server))
  120. $(eval $(call BuildPackage,krb5-client))