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.

69 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2015, 2016 gxcreator
  3. # Copyright (C) 2017 OpenWrt.org
  4. # Copyright (C) 2021-2022 PurpleI2P team
  5. #
  6. # This is free software, licensed under the GNU General Public License v2.
  7. # See /LICENSE for more information.
  8. #
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=i2pd
  11. PKG_VERSION:=2.40.0
  12. PKG_RELEASE:=1
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://codeload.github.com/PurpleI2P/i2pd/tar.gz/$(PKG_VERSION)?
  16. PKG_HASH:=4443f484ad40753e892170a26c8ee8126e8338bf416d04eab0c55c1c94a4e193
  17. PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
  18. PKG_LICENSE:=BSD-3-Clause
  19. PKG_LICENSE_FILES:=LICENSE
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/i2pd
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libopenssl +boost +boost-system +boost-filesystem \
  25. +boost-program_options +boost-date_time +libatomic +zlib
  26. TITLE:=full-featured C++ implementation of I2P client
  27. URL:=https://github.com/PurpleI2P/i2pd
  28. USERID:=i2pd:i2pd
  29. endef
  30. define Package/i2pd/description
  31. I2P (Invisible Internet Protocol) is a universal anonymous network layer. All
  32. communications over I2P are anonymous and end-to-end encrypted, participants
  33. don't reveal their real IP addresses.
  34. endef
  35. TARGET_LDFLAGS+=-latomic
  36. define Package/i2pd/conffiles
  37. /etc/config/i2pd
  38. /etc/i2pd/i2pd.conf
  39. /etc/i2pd/tunnels.conf
  40. /etc/i2pd/tunnels.d/*
  41. endef
  42. define Package/i2pd/install
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/i2pd $(1)/usr/sbin
  45. $(INSTALL_DIR) $(1)/etc/init.d
  46. $(INSTALL_BIN) ./files/i2pd.init $(1)/etc/init.d/i2pd
  47. $(INSTALL_DIR) $(1)/usr/share/i2pd
  48. $(CP) $(PKG_BUILD_DIR)/contrib/certificates $(1)/usr/share/i2pd
  49. $(INSTALL_DIR) $(1)/etc/config
  50. $(INSTALL_CONF) ./files/i2pd.config $(1)/etc/config/i2pd
  51. $(INSTALL_DIR) $(1)/etc/i2pd
  52. $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/i2pd.conf $(1)/etc/i2pd
  53. $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/tunnels.conf $(1)/etc/i2pd
  54. # subscriptions.txt deprecated, see #8088
  55. $(INSTALL_DIR) $(1)/etc/i2pd/tunnels.d
  56. $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/tunnels.d/README $(1)/etc/i2pd/tunnels.d
  57. endef
  58. $(eval $(call BuildPackage,i2pd))