1
0

Makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.14.2
  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:=krb5-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=http://web.mit.edu/kerberos/dist/krb5/1.14/
  16. PKG_MD5SUM:=2e35f0af0344d68aba99cef616d3a64f
  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. 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-system-verto \
  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
  66. $(INSTALL_DIR) $(1)/usr
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib \
  68. $(1)/usr
  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))