0007-libuecc-use-shared-instead-of-static-library.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 3 May 2016 21:33:34 +0200
  3. Subject: libuecc: use shared instead of static library
  4. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  5. diff --git a/libs/libuecc/Makefile b/libs/libuecc/Makefile
  6. index c1ba53f..8111062 100644
  7. --- a/libs/libuecc/Makefile
  8. +++ b/libs/libuecc/Makefile
  9. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
  10. PKG_NAME:=libuecc
  11. PKG_VERSION:=7
  12. -PKG_RELEASE:=1
  13. +PKG_RELEASE:=2
  14. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  16. @@ -35,11 +35,16 @@ CMAKE_OPTIONS += \
  17. -DCMAKE_BUILD_TYPE:String="MINSIZEREL"
  18. +define Package/libuecc/install
  19. + $(INSTALL_DIR) $(1)/usr/lib
  20. + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuecc.so* $(1)/usr/lib/
  21. +endef
  22. +
  23. define Build/InstallDev
  24. $(INSTALL_DIR) $(1)/usr/include
  25. $(CP) $(PKG_INSTALL_DIR)/usr/include/libuecc-$(PKG_VERSION) $(1)/usr/include/
  26. $(INSTALL_DIR) $(1)/usr/lib
  27. - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuecc.a $(1)/usr/lib/
  28. + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuecc.so* $(1)/usr/lib/
  29. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuecc.pc $(1)/usr/lib/pkgconfig/
  31. endef
  32. diff --git a/net/fastd/Makefile b/net/fastd/Makefile
  33. index 5c550d8..aeaa1df 100644
  34. --- a/net/fastd/Makefile
  35. +++ b/net/fastd/Makefile
  36. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
  37. PKG_NAME:=fastd
  38. PKG_VERSION:=18
  39. -PKG_RELEASE:=1
  40. +PKG_RELEASE:=2
  41. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  42. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  43. @@ -43,7 +43,7 @@ PKG_CONFIG_DEPENDS:=\
  44. CONFIG_FASTD_WITH_STATUS_SOCKET
  45. -PKG_BUILD_DEPENDS:=nacl libuecc
  46. +PKG_BUILD_DEPENDS:=nacl
  47. include $(INCLUDE_DIR)/package.mk
  48. include $(INCLUDE_DIR)/cmake.mk
  49. @@ -51,7 +51,7 @@ include $(INCLUDE_DIR)/cmake.mk
  50. define Package/fastd
  51. SECTION:=net
  52. CATEGORY:=Network
  53. - DEPENDS:=+kmod-tun +librt +libpthread +FASTD_WITH_STATUS_SOCKET:libjson-c +FASTD_WITH_CAPABILITIES:libcap
  54. + DEPENDS:=+kmod-tun +librt +libpthread +libuecc +FASTD_WITH_STATUS_SOCKET:libjson-c +FASTD_WITH_CAPABILITIES:libcap
  55. TITLE:=Fast and Secure Tunneling Daemon
  56. URL:=https://projects.universe-factory.net/projects/fastd
  57. SUBMENU:=VPN