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.

140 lines
4.0 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
  10. PKG_RELEASE:=2
  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:=http://web.mit.edu/kerberos/dist/krb5/1.16/
  16. PKG_HASH:=faeb125f83b0fb4cdb2f99f088140631bb47d975982de0956d18c85842969e08
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. PKG_CHECK_FORMAT_SECURITY:=0
  20. PKG_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. MAKE_PATH:=src
  23. define Package/krb5/Default
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=Kerberos
  27. URL:=http://web.mit.edu/kerberos/
  28. endef
  29. define Package/krb5-libs
  30. SECTION:=net
  31. CATEGORY:=Network
  32. TITLE:=Kerberos
  33. DEPENDS:=+libncurses +libss +libcomerr
  34. TITLE:=Kerberos 5 Shared Libraries
  35. URL:=http://web.mit.edu/kerberos/
  36. endef
  37. define Package/krb5-server
  38. $(call Package/krb5/Default)
  39. DEPENDS:=+krb5-libs +libpthread
  40. TITLE:=Kerberos 5 Server
  41. endef
  42. define Package/krb5-client
  43. $(call Package/krb5/Default)
  44. DEPENDS:=+krb5-libs
  45. TITLE:=Kerberos 5 Client
  46. endef
  47. define Package/krb5/description
  48. Kerberos is a network authentication protocol.
  49. It is designed to provide strong authentication for client/server applications by using secret-key cryptography.
  50. endef
  51. CONFIGURE_PATH = ./src
  52. CONFIGURE_VARS += \
  53. cross_compiling=yes \
  54. krb5_cv_attr_constructor_destructor=yes,yes \
  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. CONFIGURE_ARGS += \
  60. --localstatedir=/etc \
  61. --with-system-ss \
  62. --with-system-et \
  63. --without-system-verto \
  64. --without-tcl \
  65. --without-tls-impl \
  66. --without-libedit \
  67. --without-readline \
  68. --disable-rpath \
  69. --disable-pkinit \
  70. --with-size-optimizations \
  71. --with-crypto-impl=builtin
  72. define Build/InstallDev
  73. $(INSTALL_DIR) $(1)/usr/include
  74. $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr
  75. $(INSTALL_DIR) $(1)/usr
  76. $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr
  77. # needed for samba4, to detect system-krb5
  78. $(INSTALL_DIR) $(1)/usr/bin
  79. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/krb5-config $(1)/usr/bin
  80. endef
  81. define Package/krb5-libs/install
  82. $(INSTALL_DIR) $(1)/usr/lib
  83. $(INSTALL_DIR) $(1)/usr/lib/krb5
  84. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins
  85. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/kdb
  86. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/libkrb5
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/krb5/plugins/kdb/db2.so $(1)/usr/lib/krb5/plugins/kdb
  88. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
  89. endef
  90. define Package/krb5-client/install
  91. $(INSTALL_DIR) $(1)/usr/bin
  92. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdestroy $(1)/usr/bin
  93. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kinit $(1)/usr/bin
  94. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/klist $(1)/usr/bin
  95. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kpasswd $(1)/usr/bin
  96. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ksu $(1)/usr/bin
  97. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kvno $(1)/usr/bin
  98. $(INSTALL_DIR) $(1)/usr/sbin
  99. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5-send-pr $(1)/usr/sbin
  100. endef
  101. # Removed some server-side software to reduce package size. This should be
  102. # put in a separate package if needed.
  103. define Package/krb5-server/install
  104. $(INSTALL_DIR) $(1)/etc/init.d
  105. $(INSTALL_BIN) ./files/krb5kdc $(1)/etc/init.d/krb5kdc
  106. # $(INSTALL_DIR) $(1)/usr/bin
  107. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sclient $(1)/usr/bin
  108. $(INSTALL_DIR) $(1)/usr/sbin
  109. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmin.local $(1)/usr/sbin
  110. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmind $(1)/usr/sbin
  111. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
  112. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kprop $(1)/usr/sbin
  113. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kpropd $(1)/usr/sbin
  114. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5kdc $(1)/usr/sbin
  115. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sim_server $(1)/usr/sbin
  116. endef
  117. $(eval $(call BuildPackage,krb5-libs))
  118. $(eval $(call BuildPackage,krb5-server))
  119. $(eval $(call BuildPackage,krb5-client))