i2pd: Update to 2.35.0
Signed-off-by: David Yang <mmyangfl@gmail.com>
This commit is contained in:
parent
2aee3b04c0
commit
61069b82fc
|
@ -9,18 +9,20 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=i2pd
|
PKG_NAME:=i2pd
|
||||||
PKG_VERSION:=2.32.1
|
PKG_VERSION:=2.35.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/PurpleI2P/i2pd/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/PurpleI2P/i2pd/tar.gz/$(PKG_VERSION)?
|
||||||
PKG_HASH:=64229101411a9dda3237dc27939aa13ec90d4900aae499e59931063c36e8556b
|
PKG_HASH:=d041fd4e7a88ac168e76f66fdab40174ad093cdc13451cdbd0dd1216e5581f8a
|
||||||
|
|
||||||
PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
|
PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/i2pd
|
define Package/i2pd
|
||||||
|
@ -46,6 +48,12 @@ define Package/i2pd/conffiles
|
||||||
/etc/i2pd/tunnels.d/
|
/etc/i2pd/tunnels.d/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
$(Build/Prepare/Default)
|
||||||
|
# race condition
|
||||||
|
cd $(PKG_BUILD_DIR); $(MAKE) mk_obj_dir
|
||||||
|
endef
|
||||||
|
|
||||||
TARGET_LDFLAGS+=-latomic
|
TARGET_LDFLAGS+=-latomic
|
||||||
MAKE_FLAGS+=USE_AESNI=no USE_AVX=no
|
MAKE_FLAGS+=USE_AESNI=no USE_AVX=no
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
config i2pd
|
config i2pd
|
||||||
|
# Make sure your directories have the right owner! (i2pd:i2pd)
|
||||||
|
|
||||||
# Set where i2pd should store its data (netDB, certificates, addresses,
|
# Set where i2pd should store its data (netDB, certificates, addresses,
|
||||||
# etc). By default we store it in RAM so no data is written to ROM.
|
# etc). By default we store it in RAM so no data is written to ROM.
|
||||||
# If you store data permanently, you may want to enable
|
# If you store data permanently, you may want to enable
|
||||||
# 'profiles = true' and 'addressbook = true' in i2pd.conf
|
# 'profiles = true' and 'addressbook = true' in i2pd.conf.
|
||||||
#### IMPORTANT! ####
|
#### IMPORTANT! ####
|
||||||
# Data is consistently rewritten. DO NOT POINT IT TO INNER ROM. Flash
|
# Data is consistently rewritten. DO NOT POINT IT TO INNER ROM. Flash
|
||||||
# will die.
|
# will die.
|
||||||
|
|
|
@ -17,7 +17,6 @@ CONFFILE=/etc/i2pd/i2pd.conf
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
i2pd_start() {
|
i2pd_start() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
local data_dir
|
local data_dir
|
||||||
|
@ -27,16 +26,19 @@ i2pd_start() {
|
||||||
config_get addressbook_dir "$cfg" addressbook_dir
|
config_get addressbook_dir "$cfg" addressbook_dir
|
||||||
|
|
||||||
## Setting up data dir
|
## Setting up data dir
|
||||||
[ -d "$data_dir" ] || {
|
if [ ! -d "$data_dir" ] ; then
|
||||||
mkdir -p "$data_dir"
|
mkdir -p "$data_dir"
|
||||||
chown "$USER:$GROUP" "$data_dir"
|
chown "$USER:$GROUP" "$data_dir"
|
||||||
ln -s /usr/share/i2pd/certificates "$data_dir/certificates"
|
ln -s /usr/share/i2pd/certificates "$data_dir/certificates"
|
||||||
[ -n "$addressbook_dir" ] && {
|
if [ -n "$addressbook_dir" ] ; then
|
||||||
[ -d "$addressbook_dir" ] || mkdir -p "$addressbook_dir"
|
if [ ! -d "$addressbook_dir" ] ; then
|
||||||
|
mkdir -p "$addressbook_dir"
|
||||||
chown "$USER:$GROUP" "$addressbook_dir"
|
chown "$USER:$GROUP" "$addressbook_dir"
|
||||||
|
fi
|
||||||
ln -s "$addressbook_dir" "$data_dir/addressbook"
|
ln -s "$addressbook_dir" "$data_dir/addressbook"
|
||||||
}
|
fi
|
||||||
}
|
fi
|
||||||
|
[ -d "$DATADIR" ] || ln -s "$data_dir" "$DATADIR"
|
||||||
|
|
||||||
## We need permissions
|
## We need permissions
|
||||||
touch "$PIDFILE"
|
touch "$PIDFILE"
|
||||||
|
@ -44,7 +46,6 @@ i2pd_start() {
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command "$PROG" --service --conf="$CONFFILE" --pidfile "$PIDFILE"
|
procd_set_param command "$PROG" --service --conf="$CONFFILE" --pidfile "$PIDFILE"
|
||||||
## Don't know about i2pd user's HOME
|
|
||||||
procd_set_param env "HOME=$DATADIR"
|
procd_set_param env "HOME=$DATADIR"
|
||||||
## For debugging, provide about 512 MB on external storage for coredump and adjust /proc/sys/kernel/core_pattern
|
## For debugging, provide about 512 MB on external storage for coredump and adjust /proc/sys/kernel/core_pattern
|
||||||
# echo "/tmp/coredumps/core.%e.%p.%s.%t" > /proc/sys/kernel/core_pattern
|
# echo "/tmp/coredumps/core.%e.%p.%s.%t" > /proc/sys/kernel/core_pattern
|
||||||
|
@ -65,13 +66,13 @@ start_service() {
|
||||||
config_cb() {
|
config_cb() {
|
||||||
local type="$1"
|
local type="$1"
|
||||||
local name="$2"
|
local name="$2"
|
||||||
[ "$type" = "i2pd" ] && [ -n "$instance" ] && [ "$instance" = "$name" ] && instance_found=1
|
[ "$type" = "i2pd" -a -n "$instance" -a "$instance" = "$name" ] && instance_found=1
|
||||||
}
|
}
|
||||||
|
|
||||||
config_load i2pd
|
config_load i2pd
|
||||||
|
|
||||||
if [ -n "$instance" ]; then
|
if [ -n "$instance" ]; then
|
||||||
[ "$instance_found" -gt 0 ] || return
|
[ "$instance_found" = 0 ] && return
|
||||||
i2pd_start "$instance"
|
i2pd_start "$instance"
|
||||||
else
|
else
|
||||||
config_foreach i2pd_start i2pd
|
config_foreach i2pd_start i2pd
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
diff --git a/contrib/i2pd.conf b/contrib/i2pd.conf
|
||||||
|
index 5ef39bc9..8d5034eb 100644
|
||||||
--- a/contrib/i2pd.conf
|
--- a/contrib/i2pd.conf
|
||||||
+++ b/contrib/i2pd.conf
|
+++ b/contrib/i2pd.conf
|
||||||
@@ -8,12 +8,12 @@
|
@@ -8,12 +8,12 @@
|
||||||
|
@ -11,7 +13,7 @@
|
||||||
## Use that path to store separated tunnels in different config files.
|
## Use that path to store separated tunnels in different config files.
|
||||||
## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d
|
## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d
|
||||||
-# tunnelsdir = /var/lib/i2pd/tunnels.d
|
-# tunnelsdir = /var/lib/i2pd/tunnels.d
|
||||||
+tunnelsdir = /etc/i2pd/tunnels.conf
|
+tunnelsdir = /etc/i2pd/tunnels.d
|
||||||
|
|
||||||
## Where to write pidfile (default: i2pd.pid, not used in Windows)
|
## Where to write pidfile (default: i2pd.pid, not used in Windows)
|
||||||
# pidfile = /run/i2pd.pid
|
# pidfile = /run/i2pd.pid
|
||||||
|
@ -78,10 +80,13 @@
|
||||||
port = 4447
|
port = 4447
|
||||||
## Optional keys file for proxy local destination
|
## Optional keys file for proxy local destination
|
||||||
# keys = socks-proxy-keys.dat
|
# keys = socks-proxy-keys.dat
|
||||||
@@ -228,4 +230,5 @@ verify = true
|
@@ -228,7 +230,8 @@ verify = true
|
||||||
|
|
||||||
[persist]
|
[persist]
|
||||||
## Save peer profiles on disk (default: true)
|
## Save peer profiles on disk (default: true)
|
||||||
-# profiles = true
|
-# profiles = true
|
||||||
+profiles = false
|
+profiles = false
|
||||||
+addressbook = false
|
+addressbook = false
|
||||||
|
|
||||||
|
[cpuext]
|
||||||
|
## Use CPU AES-NI instructions set when work with cryptography when available (default: true)
|
||||||
|
|
Loading…
Reference in New Issue