0007-libuecc-use-shared-instead-of-static-library.patch 2.3 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 c1ba53f854b5f0e29728f0a4d2e8f682ff8357a3..81110624212291d86631a7b56232208459b004da 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 5c550d8a5f4669d4f018dde23b622376bc8d0b06..aeaa1dfcf682a5c2b048d636b549953035fdbf0d 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