mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-08 11:17:36 +08:00
b5be6bb6d8
Maintainer : @yangfl (David Yang) Build system : Arch Linux x86_64 Build tested : r7800 OpenWrt git master (r22104-01262c921c) Run tested : r7800 OpenWrt git master (r22104-01262c921c) Signed-off-by: Daniel Bermond <danielbermond@gmail.com>
70 lines
2.1 KiB
Makefile
70 lines
2.1 KiB
Makefile
#
|
|
# Copyright (C) 2015, 2016 gxcreator
|
|
# Copyright (C) 2017 OpenWrt.org
|
|
# Copyright (C) 2021-2022 PurpleI2P team
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=i2pd
|
|
PKG_VERSION:=2.46.1
|
|
PKG_RELEASE:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/PurpleI2P/i2pd/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=83bb5e2494d566d41ff3a85e4c93078d290d10e3cf1fbe7807bec9f0d024513e
|
|
|
|
PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/i2pd
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libopenssl +boost +boost-system +boost-filesystem \
|
|
+boost-program_options +boost-date_time +libatomic +zlib
|
|
TITLE:=full-featured C++ implementation of I2P client
|
|
URL:=https://github.com/PurpleI2P/i2pd
|
|
USERID:=i2pd:i2pd
|
|
endef
|
|
|
|
define Package/i2pd/description
|
|
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.
|
|
endef
|
|
|
|
TARGET_LDFLAGS+=-latomic
|
|
|
|
define Package/i2pd/conffiles
|
|
/etc/config/i2pd
|
|
/etc/i2pd/i2pd.conf
|
|
/etc/i2pd/tunnels.conf
|
|
/etc/i2pd/tunnels.d/*
|
|
endef
|
|
|
|
define Package/i2pd/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/i2pd $(1)/usr/sbin
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/i2pd.init $(1)/etc/init.d/i2pd
|
|
$(INSTALL_DIR) $(1)/usr/share/i2pd
|
|
$(CP) $(PKG_BUILD_DIR)/contrib/certificates $(1)/usr/share/i2pd
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/i2pd.config $(1)/etc/config/i2pd
|
|
$(INSTALL_DIR) $(1)/etc/i2pd
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/i2pd.conf $(1)/etc/i2pd
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/tunnels.conf $(1)/etc/i2pd
|
|
# subscriptions.txt deprecated, see #8088
|
|
$(INSTALL_DIR) $(1)/etc/i2pd/tunnels.d
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/tunnels.d/README $(1)/etc/i2pd/tunnels.d
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,i2pd))
|