Browse Source

Merge pull request #6393 from yangfl/master

i2pd: Update to 2.19.0
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
85c96ddacd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 15 deletions
  1. +3
    -8
      net/i2pd/Makefile
  2. +9
    -7
      net/i2pd/files/i2pd.init

+ 3
- 8
net/i2pd/Makefile View File

@ -9,16 +9,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=i2pd
PKG_VERSION:=2.18.0
PKG_VERSION:=2.19.0
PKG_RELEASE:=1
PKG_BUILD_PARALLEL:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://codeload.github.com/PurpleI2P/i2pd/tar.gz/$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MIRROR_HASH:=1a04826b54e649ebb341d3feacdd05c0415335679d1aa787a74ea5995d419378
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://github.com/PurpleI2P/i2pd.git
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_HASH:=7202497ffc3db632d0f7fed93eafaf39aa75efea199705dae7d022249b069eb9
PKG_LICENSE:=BSD-3-clause
include $(INCLUDE_DIR)/package.mk
@ -55,8 +52,6 @@ define Package/i2pd/install
$(INSTALL_DIR) $(1)/usr/share/i2pd
$(CP) $(PKG_BUILD_DIR)/contrib/certificates $(1)/usr/share/i2pd
$(INSTALL_DIR) $(1)/etc/i2pd
$(LN) /usr/share/i2pd/certificates $(1)/etc/i2pd/certificates
$(LN) /var/lib/i2pd/peerProfiles $(1)/etc/i2pd/peerProfiles
$(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/i2pd.conf $(1)/etc/i2pd
$(SED) ' \
s/127.0.0.1/192.168.1.1/g; \


+ 9
- 7
net/i2pd/files/i2pd.init View File

@ -10,24 +10,26 @@ PROG=/usr/sbin/i2pd
USER="i2pd"
GROUP="i2pd"
PIDFILE=/var/run/i2pd.pid
DATADIR=/etc/i2pd
PEERDIR=/var/lib/i2pd/peerProfiles
DATADIR=/var/lib/i2pd
start_service() {
## RAM
if [ ! -d $PEERDIR ]; then
mkdir -p $PEERDIR
chown $USER:$GROUP $PEERDIR
if [ ! -d $DATADIR ]; then
mkdir -p $DATADIR
ln -s /usr/share/i2pd/certificates $DATADIR/certificates
ln -s /etc/i2pd/tunnels.conf $DATADIR/tunnels.conf
# for peoples who not possible to use http reseeding
ln -s /etc/i2pd/addressbook $DATADIR/addressbook
fi
## We need permissions
chown -R $USER:$GROUP $DATADIR
chown $USER:$GROUP $DATADIR
touch $PIDFILE
chown $USER:adm $PIDFILE
procd_open_instance
procd_set_param command $PROG --service --conf=/etc/i2pd/i2pd.conf
procd_set_param command $PROG --service --conf=/etc/i2pd/i2pd.conf --pidfile $PIDFILE
## Don't know about i2pd user's HOME
procd_set_param env HOME=$DATADIR
procd_set_param limits nofile=4096


Loading…
Cancel
Save