2017-11-30 15:26:49 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015, 2016 gxcreator
|
|
|
|
# Copyright (C) 2017 OpenWrt.org
|
2021-12-26 04:29:58 +00:00
|
|
|
# Copyright (C) 2021-2022 PurpleI2P team
|
2017-11-30 15:26:49 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=i2pd
|
2022-05-28 17:41:49 +00:00
|
|
|
PKG_VERSION:=2.42.1
|
2022-02-21 19:52:44 +00:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2021-12-26 04:29:58 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2017-11-30 15:26:49 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2019-04-25 17:54:33 +00:00
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/PurpleI2P/i2pd/tar.gz/$(PKG_VERSION)?
|
2022-05-28 17:41:49 +00:00
|
|
|
PKG_HASH:=d52b55cf144a6eedbb3433214c035161c07f776090074daba0e5e83c01d09139
|
2019-04-25 17:54:33 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2017-11-30 15:26:49 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/i2pd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2017-12-27 16:57:17 +00:00
|
|
|
DEPENDS:=+libopenssl +boost +boost-system +boost-filesystem \
|
|
|
|
+boost-program_options +boost-date_time +libatomic +zlib
|
2017-11-30 15:26:49 +00:00
|
|
|
TITLE:=full-featured C++ implementation of I2P client
|
|
|
|
URL:=https://github.com/PurpleI2P/i2pd
|
2017-12-27 16:57:17 +00:00
|
|
|
USERID:=i2pd:i2pd
|
2017-11-30 15:26:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/i2pd/description
|
2021-12-26 04:29:58 +00:00
|
|
|
I2P (Invisible Internet Protocol) is a universal anonymous network layer. All
|
|
|
|
communications over I2P are anonymous and end-to-end encrypted, participants
|
|
|
|
don't reveal their real IP addresses.
|
2017-11-30 15:26:49 +00:00
|
|
|
endef
|
|
|
|
|
2021-12-26 04:29:58 +00:00
|
|
|
TARGET_LDFLAGS+=-latomic
|
|
|
|
|
2017-11-30 15:26:49 +00:00
|
|
|
define Package/i2pd/conffiles
|
2020-07-06 22:28:47 +00:00
|
|
|
/etc/config/i2pd
|
|
|
|
/etc/i2pd/i2pd.conf
|
|
|
|
/etc/i2pd/tunnels.conf
|
2021-12-26 04:29:58 +00:00
|
|
|
/etc/i2pd/tunnels.d/*
|
2020-12-05 08:57:53 +00:00
|
|
|
endef
|
|
|
|
|
2017-11-30 15:26:49 +00:00
|
|
|
define Package/i2pd/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/i2pd $(1)/usr/sbin
|
2021-12-26 04:29:58 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/i2pd.init $(1)/etc/init.d/i2pd
|
2017-12-27 16:57:17 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/i2pd
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/contrib/certificates $(1)/usr/share/i2pd
|
2019-01-31 14:57:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2021-12-26 04:29:58 +00:00
|
|
|
$(INSTALL_CONF) ./files/i2pd.config $(1)/etc/config/i2pd
|
2017-11-30 15:26:49 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/i2pd
|
2021-12-26 04:29:58 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/i2pd.conf $(1)/etc/i2pd
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/tunnels.conf $(1)/etc/i2pd
|
2019-09-02 14:19:14 +00:00
|
|
|
# subscriptions.txt deprecated, see #8088
|
2021-12-26 04:29:58 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/i2pd/tunnels.d
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/tunnels.d/README $(1)/etc/i2pd/tunnels.d
|
2017-11-30 15:26:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,i2pd))
|