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.

61 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2015, 2016 gxcreator
  3. # Copyright (C) 2017 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=i2pd
  10. PKG_VERSION:=2.16.0
  11. PKG_RELEASE:=1
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_URL:=https://github.com/PurpleI2P/i2pd.git
  17. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  18. PKG_MIRROR_HASH:=e9dee670dc53d258919e1fb9444fcaeab0d380c438e71cd5323f08332b937918
  19. PKG_LICENSE:=BSD-3-clause
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/i2pd
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libopenssl +boost +boost-system +boost-filesystem +boost-regex \
  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. MAINTAINER:=David Yang <mmyangfl@gmail.com>
  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. define Package/i2pd/conffiles
  36. /etc/i2pd/i2pd.conf
  37. /etc/i2pd/subscriptions.txt
  38. /etc/i2pd/tunnels.conf
  39. endef
  40. MAKE_FLAGS+=USE_AESNI=no USE_AVX=no
  41. define Package/i2pd/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/i2pd $(1)/usr/sbin
  44. $(INSTALL_DIR) $(1)/etc/i2pd
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/i2pd.conf $(1)/etc/i2pd
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/subscriptions.txt $(1)/etc/i2pd
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/tunnels.conf $(1)/etc/i2pd
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/i2pd.init $(1)/etc/init.d/i2pd
  50. endef
  51. $(eval $(call BuildPackage,i2pd))