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.

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