0002-fastd-update-to-v16.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sat, 15 Nov 2014 18:50:34 +0100
  3. Subject: fastd: update to v16
  4. diff --git a/net/fastd/Config.in b/net/fastd/Config.in
  5. index ca4045c..8292245 100644
  6. --- a/net/fastd/Config.in
  7. +++ b/net/fastd/Config.in
  8. @@ -80,8 +80,14 @@ config FASTD_WITH_CMDLINE_COMMANDS
  9. default n
  10. config FASTD_WITH_VERIFY
  11. - bool "Include support for on-verify handlers"
  12. - depends on PACKAGE_fastd
  13. - default n
  14. + bool "Include support for on-verify handlers"
  15. + depends on PACKAGE_fastd
  16. + default n
  17. +
  18. +config FASTD_WITH_STATUS_SOCKET
  19. + bool "Include support for status sockets"
  20. + depends on PACKAGE_fastd
  21. + default y
  22. +
  23. endmenu
  24. diff --git a/net/fastd/Makefile b/net/fastd/Makefile
  25. index 0629cd7..acf973b 100644
  26. --- a/net/fastd/Makefile
  27. +++ b/net/fastd/Makefile
  28. @@ -8,13 +8,16 @@
  29. include $(TOPDIR)/rules.mk
  30. PKG_NAME:=fastd
  31. -PKG_VERSION:=14
  32. +PKG_VERSION:=16
  33. PKG_RELEASE:=1
  34. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  35. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  36. -PKG_SOURCE_URL:=https://projects.universe-factory.net/attachments/download/75
  37. -PKG_MD5SUM:=34f6bdebd0410a1fba7c8fd06fff7a05
  38. +PKG_SOURCE_URL:=https://projects.universe-factory.net/attachments/download/78
  39. +PKG_MD5SUM:=135b3083d2743e335738de3bd4bb0c3c
  40. +
  41. +PKG_LICENSE:=BSD-2-Clause
  42. +PKG_LICENSE_FILE:=COPYRIGHT
  43. PKG_CONFIG_DEPENDS:=\
  44. CONFIG_FASTD_ENABLE_METHOD_CIPHER_TEST \
  45. @@ -32,7 +35,8 @@ PKG_CONFIG_DEPENDS:=\
  46. CONFIG_FASTD_WITH_CMDLINE_LOGGING \
  47. CONFIG_FASTD_WITH_CMDLINE_OPERATION \
  48. CONFIG_FASTD_WITH_CMDLINE_COMMANDS \
  49. - CONFIG_FASTD_WITH_VERIFY
  50. + CONFIG_FASTD_WITH_VERIFY \
  51. + CONFIG_FASTD_WITH_STATUS_SOCKET
  52. PKG_BUILD_DEPENDS:=nacl libuecc
  53. @@ -43,7 +47,7 @@ include $(INCLUDE_DIR)/cmake.mk
  54. define Package/fastd
  55. SECTION:=net
  56. CATEGORY:=Network
  57. - DEPENDS:=+kmod-tun +librt +libpthread
  58. + DEPENDS:=+kmod-tun +librt +libpthread +FASTD_WITH_STATUS_SOCKET:libjson-c
  59. TITLE:=Fast and Secure Tunneling Daemon
  60. URL:=https://projects.universe-factory.net/projects/fastd
  61. SUBMENU:=VPN
  62. @@ -74,6 +78,7 @@ CMAKE_OPTIONS += \
  63. -DWITH_CMDLINE_OPERATION:BOOL=FALSE \
  64. -DWITH_CMDLINE_COMMANDS:BOOL=FALSE \
  65. -DWITH_VERIFY:BOOL=FALSE \
  66. + -DWITH_STATUS_SOCKET:BOOL=FALSE \
  67. -DWITH_CAPABILITIES:BOOL=FALSE \
  68. -DENABLE_SYSTEMD:BOOL=FALSE \
  69. -DENABLE_LIBSODIUM:BOOL=FALSE \
  70. @@ -147,6 +152,10 @@ ifeq ($(CONFIG_FASTD_WITH_VERIFY),y)
  71. CMAKE_OPTIONS += -DWITH_VERIFY:BOOL=TRUE
  72. endif
  73. +ifeq ($(CONFIG_FASTD_WITH_STATUS_SOCKET),y)
  74. +CMAKE_OPTIONS += -DWITH_STATUS_SOCKET:BOOL=TRUE
  75. +endif
  76. +
  77. define Package/fastd/description
  78. Fast and secure tunneling daemon, which is optimized on small code size and few dependencies
  79. @@ -161,9 +170,9 @@ define Package/fastd/install
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fastd $(1)/usr/bin/
  81. $(INSTALL_DIR) $(1)/etc/init.d/
  82. - $(INSTALL_BIN) files/fastd.init $(1)/etc/init.d/fastd
  83. + $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/openwrt/fastd.init $(1)/etc/init.d/fastd
  84. $(INSTALL_DIR) $(1)/etc/config
  85. - $(INSTALL_CONF) files/fastd.config $(1)/etc/config/fastd
  86. + $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/examples/openwrt/fastd.config $(1)/etc/config/fastd
  87. $(INSTALL_DIR) $(1)/etc/fastd
  88. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  89. $(INSTALL_DATA) files/fastd.upgrade $(1)/lib/upgrade/keep.d/fastd