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.

87 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2010-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:=lksctp-tools
  9. PKG_VERSION:=1.0.19
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/sctp/lksctp-tools/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=9251b1368472fb55aaeafe4787131bdde4e96758f6170620bc75b638449cef01
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/lksctp-tools/Default
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=SCTP user-land
  25. URL:=https://github.com/sctp/lksctp-tools
  26. endef
  27. define Package/libsctp
  28. $(call Package/lksctp-tools/Default)
  29. SUBMENU:=Networking
  30. SECTION:=libs
  31. CATEGORY:=Libraries
  32. TITLE+= library
  33. DEPENDS:=+kmod-sctp
  34. endef
  35. define Package/sctp
  36. $(call Package/lksctp-tools/Default)
  37. TITLE+= (meta)
  38. DEPENDS:=+libsctp +sctp-tools
  39. BUILDONLY:=1
  40. endef
  41. define Package/sctp-tools
  42. $(call Package/lksctp-tools/Default)
  43. TITLE+= tools
  44. DEPENDS:=+libsctp
  45. endef
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include/netinet
  48. $(INSTALL_DATA) \
  49. $(PKG_INSTALL_DIR)/usr/include/netinet/sctp.h \
  50. $(1)/usr/include/netinet
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libsctp.{a,so*} \
  54. $(1)/usr/lib/
  55. endef
  56. define Package/libsctp/install
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/libsctp.so.* \
  60. $(1)/usr/lib/
  61. endef
  62. define Package/sctp-tools/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(INSTALL_BIN) \
  65. $(PKG_INSTALL_DIR)/usr/bin/checksctp \
  66. $(1)/usr/bin/
  67. $(INSTALL_BIN) \
  68. $(PKG_INSTALL_DIR)/usr/bin/sctp_{darn,status,test} \
  69. $(1)/usr/bin/
  70. endef
  71. $(eval $(call BuildPackage,libsctp))
  72. $(eval $(call BuildPackage,sctp))
  73. $(eval $(call BuildPackage,sctp-tools))