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.

154 lines
4.3 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.17
  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:=https://web.mit.edu/kerberos/dist/krb5/1.17
  16. PKG_HASH:=5a6e2284a53de5702d3dc2be3b9339c963f9b5397d3fbbc53beb249380a781f5
  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-server-extras
  42. $(call Package/krb5/Default)
  43. DEPENDS:=+krb5-libs +libpthread
  44. TITLE:=Kerberos 5 Admin Server
  45. endef
  46. define Package/krb5-client
  47. $(call Package/krb5/Default)
  48. DEPENDS:=+krb5-libs
  49. TITLE:=Kerberos 5 Client
  50. endef
  51. define Package/krb5/description
  52. Kerberos is a network authentication protocol.
  53. It is designed to provide strong authentication for client/server applications by using secret-key cryptography.
  54. endef
  55. CONFIGURE_PATH = ./src
  56. CONFIGURE_VARS += \
  57. cross_compiling=yes \
  58. krb5_cv_attr_constructor_destructor=yes,yes \
  59. krb5_cv_sys_rcdir=/tmp \
  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. ac_cv_header_keyutils_h=no
  65. CONFIGURE_ARGS += \
  66. --localstatedir=/etc \
  67. --with-system-ss \
  68. --with-system-et \
  69. --without-system-verto \
  70. --without-tcl \
  71. --without-tls-impl \
  72. --without-libedit \
  73. --without-readline \
  74. --disable-rpath \
  75. --disable-pkinit \
  76. --with-size-optimizations \
  77. --with-crypto-impl=builtin
  78. define Build/InstallDev
  79. $(INSTALL_DIR) $(1)/usr/include
  80. $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr
  81. $(INSTALL_DIR) $(1)/usr
  82. $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr
  83. # needed for samba4, to detect system-krb5
  84. $(INSTALL_DIR) $(1)/usr/bin
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/krb5-config $(1)/usr/bin
  86. endef
  87. define Package/krb5-libs/install
  88. $(INSTALL_DIR) $(1)/usr/lib
  89. $(INSTALL_DIR) $(1)/usr/lib/krb5
  90. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins
  91. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/kdb
  92. $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/libkrb5
  93. $(CP) $(PKG_INSTALL_DIR)/usr/lib/krb5/plugins/kdb/db2.so $(1)/usr/lib/krb5/plugins/kdb
  94. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
  95. endef
  96. define Package/krb5-client/install
  97. $(INSTALL_DIR) $(1)/usr/bin
  98. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdestroy $(1)/usr/bin
  99. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kinit $(1)/usr/bin
  100. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/klist $(1)/usr/bin
  101. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kpasswd $(1)/usr/bin
  102. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ksu $(1)/usr/bin
  103. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kvno $(1)/usr/bin
  104. $(INSTALL_DIR) $(1)/usr/sbin
  105. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5-send-pr $(1)/usr/sbin
  106. endef
  107. # Removed some server-side software to reduce package size. This should be
  108. # put in a separate package if needed.
  109. define Package/krb5-server/install
  110. $(INSTALL_DIR) $(1)/etc/init.d
  111. $(INSTALL_BIN) ./files/krb5kdc $(1)/etc/init.d/krb5kdc
  112. $(INSTALL_DIR) $(1)/usr/sbin
  113. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmin.local $(1)/usr/sbin
  114. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
  115. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5kdc $(1)/usr/sbin
  116. endef
  117. define Package/krb5-server-extras/install
  118. $(INSTALL_DIR) $(1)/usr/sbin
  119. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmind $(1)/usr/sbin
  120. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kprop $(1)/usr/sbin
  121. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kpropd $(1)/usr/sbin
  122. endef
  123. define Package/krb5-server/postinst
  124. mkdir -p $${IPKG_INSTROOT}/etc/krb5kdc
  125. touch $${IPKG_INSTROOT}/etc/krb5kdc/kadm5.acl
  126. endef
  127. $(eval $(call BuildPackage,krb5-libs))
  128. $(eval $(call BuildPackage,krb5-server))
  129. $(eval $(call BuildPackage,krb5-server-extras))
  130. $(eval $(call BuildPackage,krb5-client))