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.

107 lines
3.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gnunet-secushare
  3. PKG_SOURCE_VERSION:=a831d35535e278e0534fa4f8848f0113fc8572a2
  4. PKG_SOURCE_DATE:=20191029
  5. PKG_MIRROR_HASH:=e8c0762bd8d185cd504d73070b633e1902311cb1c13f8d55a7f0e9ec2597d957
  6. PKG_RELEASE:=1
  7. PKG_SOURCE_URL:=https://gnunet.org/git/gnunet-secushare.git
  8. PKG_SOURCE_PROTO:=git
  9. PKG_LICENSE:=GPL-3.0
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_FIXUP:=gettext-version
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/nls.mk
  17. define Package/gnunet-secushare
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=GNUnet Secushare
  21. URL:=https://www.secushare.org/
  22. DEPENDS:=gnunet +gnunet-reclaim
  23. endef
  24. define Package/gnunet-secushare-mysql
  25. SECTION:=net
  26. CATEGORY:=Network
  27. TITLE:=GNUnet Secushare (mySQL)
  28. URL:=https://www.secushare.org/
  29. DEPENDS:=gnunet +gnunet-secushare +gnunet-mysql
  30. endef
  31. define Package/gnunet-secushare-pgsql
  32. SECTION:=net
  33. CATEGORY:=Network
  34. TITLE:=GNUnet Secushare (PostgreSQL)
  35. URL:=https://www.secushare.org/
  36. DEPENDS:=gnunet +gnunet-secushare +gnunet-pgsql
  37. endef
  38. define Package/gnunet-secushare-sqlite
  39. SECTION:=net
  40. CATEGORY:=Network
  41. TITLE:=GNUnet Secushare (SQLite)
  42. URL:=https://www.secushare.org/
  43. DEPENDS:=gnunet +gnunet-secushare +gnunet-sqlite
  44. endef
  45. CONFIGURE_ARGS+= \
  46. --with-libiconv-prefix="$(ICONV_PREFIX)" \
  47. --with-libintl-prefix="$(INTL_PREFIX)" \
  48. --with-gnunet="$(STAGING_DIR)/usr" \
  49. $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mysql),--with-mysql="$(STAGING_DIR)/usr",--without-mysql) \
  50. $(if $(CONFIG_PACKAGE_$(PKG_NAME)-pgsql),--with-postgresql="$(STAGING_DIR)/usr/bin/pg_config",--without-postgresql) \
  51. $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sqlite),--with-sqlite="$(STAGING_DIR)/usr",--without-sqlite) \
  52. --enable-testing \
  53. --disable-testruns \
  54. --enable-experimental
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include/gnunet $(1)/usr/lib/pkgconfig
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so}* $(1)/usr/lib/
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
  59. $(CP) $(PKG_INSTALL_DIR)/usr/include/gnunet/*.h $(1)/usr/include/gnunet
  60. endef
  61. define Package/gnunet-secushare/install
  62. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/gnunet $(1)/usr/lib/gnunet-secushare/libexec
  63. $(INSTALL_DIR) $(1)/usr/share/gnunet-secushare/config.d $(1)/usr/share/gnunet/config.d
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnunet-multicast $(1)/usr/bin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnunet-social $(1)/usr/bin
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/gnunet-secushare/libexec/* $(1)/usr/lib/gnunet-secushare/libexec/
  68. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/gnunet-secushare/config.d/* $(1)/usr/share/gnunet-secushare/config.d
  69. endef
  70. define Package/gnunet-secushare-mysql/install
  71. $(INSTALL_DIR) $(1)/usr/lib/gnunet
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/gnunet/libgnunet_plugin_psycstore_mysql.so* $(1)/usr/lib/gnunet/
  73. $(INSTALL_DIR) $(1)/etc/uci-defaults
  74. $(INSTALL_BIN) ./files/gnunet-secushare-mysql.defaults $(1)/etc/uci-defaults/gnunet-secushare-mysql
  75. endef
  76. define Package/gnunet-secushare-pgsql/install
  77. $(INSTALL_DIR) $(1)/usr/lib/gnunet
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/gnunet/libgnunet_plugin_psycstore_postgres.so* $(1)/usr/lib/gnunet/
  79. $(INSTALL_DIR) $(1)/etc/uci-defaults
  80. $(INSTALL_BIN) ./files/gnunet-secushare-pgsql.defaults $(1)/etc/uci-defaults/gnunet-secushare-pgsql
  81. endef
  82. define Package/gnunet-secushare-sqlite/install
  83. $(INSTALL_DIR) $(1)/usr/lib/gnunet
  84. $(CP) $(PKG_INSTALL_DIR)/usr/lib/gnunet/libgnunet_plugin_psycstore_sqlite.so* $(1)/usr/lib/gnunet/
  85. $(INSTALL_DIR) $(1)/etc/uci-defaults
  86. $(INSTALL_BIN) ./files/gnunet-secushare-sqlite.defaults $(1)/etc/uci-defaults/gnunet-secushare-sqlite
  87. endef
  88. $(eval $(call BuildPackage,gnunet-secushare))
  89. $(eval $(call BuildPackage,gnunet-secushare-mysql))
  90. $(eval $(call BuildPackage,gnunet-secushare-pgsql))
  91. $(eval $(call BuildPackage,gnunet-secushare-sqlite))