[arch-commits] Commit in i2pd/repos/community-x86_64 (16 files)

Daniel Bermond dbermond at archlinux.org
Sat Apr 11 22:45:31 UTC 2020


    Date: Saturday, April 11, 2020 @ 22:45:31
  Author: dbermond
Revision: 613371

archrelease: copy trunk to community-x86_64

Added:
  i2pd/repos/community-x86_64/010-i2pd-use-arch-flags-on-tests.patch
    (from rev 613370, i2pd/trunk/010-i2pd-use-arch-flags-on-tests.patch)
  i2pd/repos/community-x86_64/020-i2pd-fix-install.patch
    (from rev 613370, i2pd/trunk/020-i2pd-fix-install.patch)
  i2pd/repos/community-x86_64/030-i2pd-config.patch
    (from rev 613370, i2pd/trunk/030-i2pd-config.patch)
  i2pd/repos/community-x86_64/040-i2pd-do-not-override-config.patch
    (from rev 613370, i2pd/trunk/040-i2pd-do-not-override-config.patch)
  i2pd/repos/community-x86_64/050-i2pd-tunnels-d-readme.patch
    (from rev 613370, i2pd/trunk/050-i2pd-tunnels-d-readme.patch)
  i2pd/repos/community-x86_64/PKGBUILD
    (from rev 613370, i2pd/trunk/PKGBUILD)
  i2pd/repos/community-x86_64/i2pd.sysusers
    (from rev 613370, i2pd/trunk/i2pd.sysusers)
  i2pd/repos/community-x86_64/i2pd.tmpfiles
    (from rev 613370, i2pd/trunk/i2pd.tmpfiles)
Deleted:
  i2pd/repos/community-x86_64/010-i2pd-use-arch-flags-on-tests.patch
  i2pd/repos/community-x86_64/020-i2pd-fix-install.patch
  i2pd/repos/community-x86_64/030-i2pd-config.patch
  i2pd/repos/community-x86_64/040-i2pd-do-not-override-config.patch
  i2pd/repos/community-x86_64/050-i2pd-tunnels-d-readme.patch
  i2pd/repos/community-x86_64/PKGBUILD
  i2pd/repos/community-x86_64/i2pd.sysusers
  i2pd/repos/community-x86_64/i2pd.tmpfiles

----------------------------------------+
 010-i2pd-use-arch-flags-on-tests.patch |   90 ++++++-------
 020-i2pd-fix-install.patch             |   70 +++++-----
 030-i2pd-config.patch                  |   58 ++++----
 040-i2pd-do-not-override-config.patch  |   70 +++++-----
 050-i2pd-tunnels-d-readme.patch        |   18 +-
 PKGBUILD                               |  206 +++++++++++++++----------------
 i2pd.sysusers                          |    2 
 i2pd.tmpfiles                          |   12 -
 8 files changed, 263 insertions(+), 263 deletions(-)

Deleted: 010-i2pd-use-arch-flags-on-tests.patch
===================================================================
--- 010-i2pd-use-arch-flags-on-tests.patch	2020-04-11 22:44:30 UTC (rev 613370)
+++ 010-i2pd-use-arch-flags-on-tests.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1,45 +0,0 @@
-diff -Naurp a/tests/Makefile b/tests/Makefile
---- a/tests/Makefile	2020-02-24 15:46:01.000000000 +0000
-+++ b/tests/Makefile	2020-02-24 15:47:19.414667269 +0000
-@@ -1,32 +1,32 @@
--CXXFLAGS += -Wall -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I../libi2pd/ -pthread -Wl,--unresolved-symbols=ignore-in-object-files
-+CXXFLAGS += -Wall -Wextra -pedantic -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I../libi2pd/ -pthread -Wl,--unresolved-symbols=ignore-in-object-files
- 
- TESTS = test-gost test-gost-sig test-base-64 test-x25519 test-aeadchacha20poly1305 test-blinding test-elligator
- 
- all: $(TESTS) run
- 
- test-http-%: ../libi2pd/HTTP.cpp test-http-%.cpp
--	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
-+	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ $(LDFLAGS)
- 
- test-base-%: ../libi2pd/Base.cpp test-base-%.cpp
--	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
-+	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ $(LDFLAGS)
- 
- test-gost: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp test-gost.cpp
--	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto
-+	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto $(LDFLAGS)
- 
- test-gost-sig: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Crypto.cpp ../libi2pd/Log.cpp test-gost-sig.cpp
--	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
-+	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
- 
- test-x25519: ../libi2pd/Ed25519.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Log.cpp ../libi2pd/Crypto.cpp  test-x25519.cpp
--	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
-+	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
- 
- test-aeadchacha20poly1305: ../libi2pd/Crypto.cpp ../libi2pd/ChaCha20.cpp ../libi2pd/Poly1305.cpp test-aeadchacha20poly1305.cpp
--	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
-+	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
- 
- test-blinding: ../libi2pd/Crypto.cpp ../libi2pd/Blinding.cpp ../libi2pd/Ed25519.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Log.cpp ../libi2pd/util.cpp ../libi2pd/Identity.cpp ../libi2pd/Signature.cpp ../libi2pd/Timestamp.cpp test-blinding.cpp
--	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
-+	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
- 
- test-elligator: ../libi2pd/Elligator.cpp ../libi2pd/Crypto.cpp test-elligator.cpp
--	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
-+	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
- 
- run: $(TESTS)
- 	@for TEST in $(TESTS); do ./$$TEST ; done

Copied: i2pd/repos/community-x86_64/010-i2pd-use-arch-flags-on-tests.patch (from rev 613370, i2pd/trunk/010-i2pd-use-arch-flags-on-tests.patch)
===================================================================
--- 010-i2pd-use-arch-flags-on-tests.patch	                        (rev 0)
+++ 010-i2pd-use-arch-flags-on-tests.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1,45 @@
+diff -Naurp a/tests/Makefile b/tests/Makefile
+--- a/tests/Makefile	2020-02-24 15:46:01.000000000 +0000
++++ b/tests/Makefile	2020-02-24 15:47:19.414667269 +0000
+@@ -1,32 +1,32 @@
+-CXXFLAGS += -Wall -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I../libi2pd/ -pthread -Wl,--unresolved-symbols=ignore-in-object-files
++CXXFLAGS += -Wall -Wextra -pedantic -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I../libi2pd/ -pthread -Wl,--unresolved-symbols=ignore-in-object-files
+ 
+ TESTS = test-gost test-gost-sig test-base-64 test-x25519 test-aeadchacha20poly1305 test-blinding test-elligator
+ 
+ all: $(TESTS) run
+ 
+ test-http-%: ../libi2pd/HTTP.cpp test-http-%.cpp
+-	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
++	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ $(LDFLAGS)
+ 
+ test-base-%: ../libi2pd/Base.cpp test-base-%.cpp
+-	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
++	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ $(LDFLAGS)
+ 
+ test-gost: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp test-gost.cpp
+-	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto
++	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto $(LDFLAGS)
+ 
+ test-gost-sig: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Crypto.cpp ../libi2pd/Log.cpp test-gost-sig.cpp
+-	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
++	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
+ 
+ test-x25519: ../libi2pd/Ed25519.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Log.cpp ../libi2pd/Crypto.cpp  test-x25519.cpp
+-	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
++	$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
+ 
+ test-aeadchacha20poly1305: ../libi2pd/Crypto.cpp ../libi2pd/ChaCha20.cpp ../libi2pd/Poly1305.cpp test-aeadchacha20poly1305.cpp
+-	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
++	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
+ 
+ test-blinding: ../libi2pd/Crypto.cpp ../libi2pd/Blinding.cpp ../libi2pd/Ed25519.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Log.cpp ../libi2pd/util.cpp ../libi2pd/Identity.cpp ../libi2pd/Signature.cpp ../libi2pd/Timestamp.cpp test-blinding.cpp
+-	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
++	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
+ 
+ test-elligator: ../libi2pd/Elligator.cpp ../libi2pd/Crypto.cpp test-elligator.cpp
+-	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
++	 $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(CPPFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system $(LDFLAGS)
+ 
+ run: $(TESTS)
+ 	@for TEST in $(TESTS); do ./$$TEST ; done

Deleted: 020-i2pd-fix-install.patch
===================================================================
--- 020-i2pd-fix-install.patch	2020-04-11 22:44:30 UTC (rev 613370)
+++ 020-i2pd-fix-install.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1,35 +0,0 @@
-diff -Naurp a/build/CMakeLists.txt b/build/CMakeLists.txt
---- a/build/CMakeLists.txt	2020-02-25 17:08:50.000000000 +0000
-+++ b/build/CMakeLists.txt	2020-02-29 14:47:28.000000000 +0000
-@@ -488,20 +488,7 @@ if (WITH_BINARY)
-   endif ()
- endif ()
- 
--install(FILES ../LICENSE
--  DESTINATION .
--  COMPONENT Runtime
--  )
--# Take a copy on Appveyor
--install(FILES "C:/projects/openssl-$ENV{OPENSSL}/LICENSE"
--  DESTINATION .
--  COMPONENT Runtime
--  RENAME LICENSE_OPENSSL
--  OPTIONAL                      # for local builds only!
--  )
--
- file(GLOB_RECURSE I2PD_SOURCES "../libi2pd/*.cpp" "../libi2pd_client/*.cpp" "../daemon/*.cpp" "../build" "../Win32" "../Makefile*")
--install(FILES ${I2PD_SOURCES} DESTINATION src/ COMPONENT Source)
- # install(DIRECTORY ../ DESTINATION src/
- #   # OPTIONAL
- #   COMPONENT Source FILES_MATCHING
-@@ -509,8 +496,8 @@ install(FILES ${I2PD_SOURCES} DESTINATIO
- #   PATTERN "*.cpp"
- #   )
- 
--file(GLOB I2PD_HEADERS "../libi2pd/*.h" "../libi2pd_client/*.h" "../daemon/*.h")
--install(FILES ${I2PD_HEADERS} DESTINATION src/ COMPONENT Headers)
-+file(GLOB I2PD_HEADERS "../libi2pd/*.h" "../libi2pd_client/*.h")
-+install(FILES ${I2PD_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/i2pd COMPONENT Headers)
- # install(DIRECTORY ../ DESTINATION src/
- #   # OPTIONAL
- #   COMPONENT Headers FILES_MATCHING

Copied: i2pd/repos/community-x86_64/020-i2pd-fix-install.patch (from rev 613370, i2pd/trunk/020-i2pd-fix-install.patch)
===================================================================
--- 020-i2pd-fix-install.patch	                        (rev 0)
+++ 020-i2pd-fix-install.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1,35 @@
+diff -Naurp a/build/CMakeLists.txt b/build/CMakeLists.txt
+--- a/build/CMakeLists.txt	2020-04-10 17:33:54.000000000 +0000
++++ b/build/CMakeLists.txt	2020-04-11 21:52:44.000000000 +0000
+@@ -469,20 +469,7 @@ if (WITH_BINARY)
+   endif ()
+ endif ()
+ 
+-install(FILES ../LICENSE
+-  DESTINATION .
+-  COMPONENT Runtime
+-  )
+-# Take a copy on Appveyor
+-install(FILES "C:/projects/openssl-$ENV{OPENSSL}/LICENSE"
+-  DESTINATION .
+-  COMPONENT Runtime
+-  RENAME LICENSE_OPENSSL
+-  OPTIONAL                      # for local builds only!
+-  )
+-
+ file(GLOB_RECURSE I2PD_SOURCES "../libi2pd/*.cpp" "../libi2pd_client/*.cpp" "../daemon/*.cpp" "../build" "../Win32" "../Makefile*")
+-install(FILES ${I2PD_SOURCES} DESTINATION src/ COMPONENT Source)
+ # install(DIRECTORY ../ DESTINATION src/
+ #   # OPTIONAL
+ #   COMPONENT Source FILES_MATCHING
+@@ -490,8 +477,8 @@ install(FILES ${I2PD_SOURCES} DESTINATIO
+ #   PATTERN "*.cpp"
+ #   )
+ 
+-file(GLOB I2PD_HEADERS "../libi2pd/*.h" "../libi2pd_client/*.h" "../daemon/*.h")
+-install(FILES ${I2PD_HEADERS} DESTINATION src/ COMPONENT Headers)
++file(GLOB I2PD_HEADERS "../libi2pd/*.h" "../libi2pd_client/*.h")
++install(FILES ${I2PD_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/i2pd COMPONENT Headers)
+ # install(DIRECTORY ../ DESTINATION src/
+ #   # OPTIONAL
+ #   COMPONENT Headers FILES_MATCHING

Deleted: 030-i2pd-config.patch
===================================================================
--- 030-i2pd-config.patch	2020-04-11 22:44:30 UTC (rev 613370)
+++ 030-i2pd-config.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1,29 +0,0 @@
-diff -Naurp a/contrib/i2pd.conf b/contrib/i2pd.conf
---- a/contrib/i2pd.conf	2019-08-27 14:17:32.000000000 +0000
-+++ b/contrib/i2pd.conf	2019-10-03 01:26:29.274686807 +0000
-@@ -7,13 +7,13 @@
- ## by removing the "#" symbol.
- 
- ## Tunnels config file
--## Default: ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf
-+## Default: /var/lib/i2pd/tunnels.conf (symlink to /etc/i2pd/tunnels.conf)
- # tunconf = /var/lib/i2pd/tunnels.conf
- 
- ## Tunnels config files path
- ## Use that path to store separated tunnels in different config files.
--## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d
--# tunnelsdir = /var/lib/i2pd/tunnels.conf.d
-+## Default: /var/lib/i2pd/tunnels.d (symlink to /etc/i2pd/tunnels.d)
-+# tunnelsdir = /var/lib/i2pd/tunnels.d
- 
- ## Where to write pidfile (don't write by default)
- # pidfile = /var/run/i2pd.pid
-@@ -27,7 +27,7 @@
- ##  * syslog - use syslog, see man 3 syslog
- # log = file
- ## Path to logfile (default - autodetect)
--# logfile = /var/log/i2pd.log
-+logfile = /var/log/i2pd/i2pd.log
- ## Log messages above this level (debug, *info, warn, error, none)
- ## If you set it to none, logging will be disabled
- # loglevel = info

Copied: i2pd/repos/community-x86_64/030-i2pd-config.patch (from rev 613370, i2pd/trunk/030-i2pd-config.patch)
===================================================================
--- 030-i2pd-config.patch	                        (rev 0)
+++ 030-i2pd-config.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1,29 @@
+diff -Naurp a/contrib/i2pd.conf b/contrib/i2pd.conf
+--- a/contrib/i2pd.conf	2019-08-27 14:17:32.000000000 +0000
++++ b/contrib/i2pd.conf	2019-10-03 01:26:29.274686807 +0000
+@@ -7,13 +7,13 @@
+ ## by removing the "#" symbol.
+ 
+ ## Tunnels config file
+-## Default: ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf
++## Default: /var/lib/i2pd/tunnels.conf (symlink to /etc/i2pd/tunnels.conf)
+ # tunconf = /var/lib/i2pd/tunnels.conf
+ 
+ ## Tunnels config files path
+ ## Use that path to store separated tunnels in different config files.
+-## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d
+-# tunnelsdir = /var/lib/i2pd/tunnels.conf.d
++## Default: /var/lib/i2pd/tunnels.d (symlink to /etc/i2pd/tunnels.d)
++# tunnelsdir = /var/lib/i2pd/tunnels.d
+ 
+ ## Where to write pidfile (don't write by default)
+ # pidfile = /var/run/i2pd.pid
+@@ -27,7 +27,7 @@
+ ##  * syslog - use syslog, see man 3 syslog
+ # log = file
+ ## Path to logfile (default - autodetect)
+-# logfile = /var/log/i2pd.log
++logfile = /var/log/i2pd/i2pd.log
+ ## Log messages above this level (debug, *info, warn, error, none)
+ ## If you set it to none, logging will be disabled
+ # loglevel = info

Deleted: 040-i2pd-do-not-override-config.patch
===================================================================
--- 040-i2pd-do-not-override-config.patch	2020-04-11 22:44:30 UTC (rev 613370)
+++ 040-i2pd-do-not-override-config.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1,35 +0,0 @@
-diff -Naurp a/contrib/i2pd.service b/contrib/i2pd.service
---- a/contrib/i2pd.service	2019-08-27 14:17:32.000000000 +0000
-+++ b/contrib/i2pd.service	2019-10-06 14:20:27.895454321 +0000
-@@ -11,23 +11,25 @@ RuntimeDirectoryMode=0700
- LogsDirectory=i2pd
- LogsDirectoryMode=0700
- Type=forking
--ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf --tunnelsdir=/etc/i2pd/tunnels.conf.d --pidfile=/var/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service
-+ExecStart=/usr/bin/i2pd --conf=/var/lib/i2pd/i2pd.conf --pidfile=/run/i2pd/i2pd.pid --daemon --service
- ExecReload=/bin/kill -HUP $MAINPID
--PIDFile=/var/run/i2pd/i2pd.pid
--### Uncomment, if auto restart needed
--#Restart=on-failure
-+PIDFile=/run/i2pd/i2pd.pid
-+PrivateDevices=yes
- 
-+# SIGQUIT is setted by upstream and always generates a core dump.
-+# You can ignore the failed exit (core dump) when stopping the service.
- KillSignal=SIGQUIT
-+
- # If you have the patience waiting 10 min on restarting/stopping it, uncomment this.
- # i2pd stops accepting new tunnels and waits ~10 min while old ones do not die.
- #KillSignal=SIGINT
- #TimeoutStopSec=10m
- 
--# If you have problems with hanging i2pd, you can try increase this
-+# If you have problems with hanging i2pd, you can try to increase this
- LimitNOFILE=4096
-+
- # To enable write of coredump uncomment this
- #LimitCORE=infinity
--PrivateDevices=yes
- 
- [Install]
- WantedBy=multi-user.target

Copied: i2pd/repos/community-x86_64/040-i2pd-do-not-override-config.patch (from rev 613370, i2pd/trunk/040-i2pd-do-not-override-config.patch)
===================================================================
--- 040-i2pd-do-not-override-config.patch	                        (rev 0)
+++ 040-i2pd-do-not-override-config.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1,35 @@
+diff -Naurp a/contrib/i2pd.service b/contrib/i2pd.service
+--- a/contrib/i2pd.service	2019-08-27 14:17:32.000000000 +0000
++++ b/contrib/i2pd.service	2019-10-06 14:20:27.895454321 +0000
+@@ -11,23 +11,25 @@ RuntimeDirectoryMode=0700
+ LogsDirectory=i2pd
+ LogsDirectoryMode=0700
+ Type=forking
+-ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf --tunnelsdir=/etc/i2pd/tunnels.conf.d --pidfile=/var/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service
++ExecStart=/usr/bin/i2pd --conf=/var/lib/i2pd/i2pd.conf --pidfile=/run/i2pd/i2pd.pid --daemon --service
+ ExecReload=/bin/kill -HUP $MAINPID
+-PIDFile=/var/run/i2pd/i2pd.pid
+-### Uncomment, if auto restart needed
+-#Restart=on-failure
++PIDFile=/run/i2pd/i2pd.pid
++PrivateDevices=yes
+ 
++# SIGQUIT is setted by upstream and always generates a core dump.
++# You can ignore the failed exit (core dump) when stopping the service.
+ KillSignal=SIGQUIT
++
+ # If you have the patience waiting 10 min on restarting/stopping it, uncomment this.
+ # i2pd stops accepting new tunnels and waits ~10 min while old ones do not die.
+ #KillSignal=SIGINT
+ #TimeoutStopSec=10m
+ 
+-# If you have problems with hanging i2pd, you can try increase this
++# If you have problems with hanging i2pd, you can try to increase this
+ LimitNOFILE=4096
++
+ # To enable write of coredump uncomment this
+ #LimitCORE=infinity
+-PrivateDevices=yes
+ 
+ [Install]
+ WantedBy=multi-user.target

Deleted: 050-i2pd-tunnels-d-readme.patch
===================================================================
--- 050-i2pd-tunnels-d-readme.patch	2020-04-11 22:44:30 UTC (rev 613370)
+++ 050-i2pd-tunnels-d-readme.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1,9 +0,0 @@
-diff -Naurp a/contrib/tunnels.d/README b/contrib/tunnels.d/README
---- a/contrib/tunnels.d/README	2019-08-27 14:17:32.000000000 +0000
-+++ b/contrib/tunnels.d/README	2019-09-30 18:48:51.066404952 +0000
-@@ -1,4 +1,4 @@
--# In that directory you can store separated config files for every tunnel.
-+# In the /etc/i2pd/tunnels.d directory you can store separated config files for every tunnel.
- # Please read documentation for more info.
- #
- # You can find examples in /usr/share/doc/i2pd/tunnels.d directory

Copied: i2pd/repos/community-x86_64/050-i2pd-tunnels-d-readme.patch (from rev 613370, i2pd/trunk/050-i2pd-tunnels-d-readme.patch)
===================================================================
--- 050-i2pd-tunnels-d-readme.patch	                        (rev 0)
+++ 050-i2pd-tunnels-d-readme.patch	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1,9 @@
+diff -Naurp a/contrib/tunnels.d/README b/contrib/tunnels.d/README
+--- a/contrib/tunnels.d/README	2019-08-27 14:17:32.000000000 +0000
++++ b/contrib/tunnels.d/README	2019-09-30 18:48:51.066404952 +0000
+@@ -1,4 +1,4 @@
+-# In that directory you can store separated config files for every tunnel.
++# In the /etc/i2pd/tunnels.d directory you can store separated config files for every tunnel.
+ # Please read documentation for more info.
+ #
+ # You can find examples in /usr/share/doc/i2pd/tunnels.d directory

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-11 22:44:30 UTC (rev 613370)
+++ PKGBUILD	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1,103 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-# Contributor: robertfoster
-# Contributor: kurych
-# Contributor: redfish
-# Contributor: atommixz
-# Contributor: denn
-# Contributor: post-factum
-# Contributor: wrdcrrtmnstr
-# Contributor: r4sas
-
-pkgname=i2pd
-pkgver=2.30.0
-pkgrel=1
-pkgdesc='A full-featured C++ implementation of the I2P router'
-arch=('x86_64')
-url='https://i2pd.website/'
-license=('BSD')
-depends=('boost-libs' 'libminiupnpc.so' 'openssl' 'zlib')
-makedepends=('cmake' 'boost')
-provides=('i2p-router')
-backup=('etc/i2pd/i2pd.conf'
-        'etc/i2pd/tunnels.conf')
-source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/PurpleI2P/i2pd/archive/${pkgver}.tar.gz"
-        '010-i2pd-use-arch-flags-on-tests.patch'
-        '020-i2pd-fix-install.patch'
-        '030-i2pd-config.patch'
-        '040-i2pd-do-not-override-config.patch'
-        '050-i2pd-tunnels-d-readme.patch'
-        'i2pd.sysusers'
-        'i2pd.tmpfiles')
-sha256sums=('25915cbd33a9f53c89ddf7fbd68fccc5ffc89ab40d4445ccc813da74fae154f2'
-            '9394ed4825fdebe398566d8748cd8b4f1e931f5ab07907e8eda9fb11d4146c67'
-            'bccb099df5f9010055455a6d74f5cc44ad9de09755ca5e7505ae1e56f9273965'
-            'f3a2afe0adc2f502dcb388f778a394a2556848fe8be014f3470e205a098e765c'
-            'a9a2fabd093b952507a297c755b75ff765f658cad16ec0318b22514d1bba44d7'
-            '48217794d5d520751e00efe3ea4fe0f2a340df16c669007cf08058c349746ac1'
-            '88b2e709228049ba11f37863f87de75ab6cde295104852871384337cfdc906a3'
-            '55005dfc1cba3e1fa3b6a2740fdbbb0cc9eb3178941ddd7008e2ef1d5c85a088')
-
-prepare() {
-    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-i2pd-use-arch-flags-on-tests.patch"
-    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/020-i2pd-fix-install.patch"
-    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/030-i2pd-config.patch"
-    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/040-i2pd-do-not-override-config.patch"
-    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/050-i2pd-tunnels-d-readme.patch"
-}
-
-build() {
-    export CXXFLAGS+=" ${CPPFLAGS}"
-    cmake \
-        -B "${pkgname}-${pkgver}/build" \
-        -S "${pkgname}-${pkgver}/build" \
-        -DCMAKE_BUILD_TYPE:STRING='None' \
-        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-        -DBUILD_SHARED_LIBS:BOOL='ON' \
-        -DWITH_UPNP:BOOL='ON' \
-        -DWITH_AESNI:BOOL='OFF' \
-        -DWITH_AVX:BOOL='OFF' \
-        -Wno-dev
-    make -C "${pkgname}-${pkgver}/build"
-}
-
-check() {
-    make -C "${pkgname}-${pkgver}/tests"
-}
-
-package() {
-    local _dir
-    local _file
-    
-    cd "${pkgname}-${pkgver}"
-    
-    make -C build DESTDIR="$pkgdir" install
-    
-    # config
-    install -D -m644 contrib/i2pd.conf    -t "${pkgdir}/etc/i2pd"
-    install -D -m644 contrib/tunnels.conf -t "${pkgdir}/etc/i2pd"
-    install -d -m755 "${pkgdir}/etc/i2pd/tunnels.d"
-    
-    # certificates
-    while read -r -d '' _file
-    do
-        _dir="${_file#contrib/certificates}"
-        _dir="${_dir%/*}"
-        install -D -m644 "$_file" -t "${pkgdir}/usr/share/i2pd/certificates/${_dir}"
-    done < <(find contrib/certificates -type f -print0)
-    
-    # systemd
-    install -D -m644 contrib/i2pd.service   -t "${pkgdir}/usr/lib/systemd/system"
-    install -D -m644 "${srcdir}/i2pd.sysusers" "${pkgdir}/usr/lib/sysusers.d/i2pd.conf"
-    install -D -m644 "${srcdir}/i2pd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/i2pd.conf"
-    
-    # tunnels.d examples
-    install -D -m644 contrib/tunnels.d/README         -t "${pkgdir}/usr/share/doc/${pkgname}/tunnels.d"
-    install -D -m644 contrib/tunnels.d/IRC-Ilita.conf -t "${pkgdir}/usr/share/doc/${pkgname}/tunnels.d"
-    install -D -m644 contrib/tunnels.d/IRC-Irc2P.conf -t "${pkgdir}/usr/share/doc/${pkgname}/tunnels.d"
-    
-    # man page
-    install -D -m644 debian/i2pd.1 -t "${pkgdir}/usr/share/man/man1"
-    
-    # license
-    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: i2pd/repos/community-x86_64/PKGBUILD (from rev 613370, i2pd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1,103 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Contributor: robertfoster
+# Contributor: kurych
+# Contributor: redfish
+# Contributor: atommixz
+# Contributor: denn
+# Contributor: post-factum
+# Contributor: wrdcrrtmnstr
+# Contributor: r4sas
+
+pkgname=i2pd
+pkgver=2.31.0
+pkgrel=1
+pkgdesc='A full-featured C++ implementation of the I2P router'
+arch=('x86_64')
+url='https://i2pd.website/'
+license=('BSD')
+depends=('boost-libs' 'libminiupnpc.so' 'openssl' 'zlib')
+makedepends=('cmake' 'boost')
+provides=('i2p-router')
+backup=('etc/i2pd/i2pd.conf'
+        'etc/i2pd/tunnels.conf')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/PurpleI2P/i2pd/archive/${pkgver}.tar.gz"
+        '010-i2pd-use-arch-flags-on-tests.patch'
+        '020-i2pd-fix-install.patch'
+        '030-i2pd-config.patch'
+        '040-i2pd-do-not-override-config.patch'
+        '050-i2pd-tunnels-d-readme.patch'
+        'i2pd.sysusers'
+        'i2pd.tmpfiles')
+sha256sums=('7e37abcf49e9f59ef6939069f4d74fc6bf29b09deec111bd3561021fc1349528'
+            '9394ed4825fdebe398566d8748cd8b4f1e931f5ab07907e8eda9fb11d4146c67'
+            'e55b877e8d2ac520abf2645436c03296427c3fe1fd62f290ec062aa5607c261f'
+            'f3a2afe0adc2f502dcb388f778a394a2556848fe8be014f3470e205a098e765c'
+            'a9a2fabd093b952507a297c755b75ff765f658cad16ec0318b22514d1bba44d7'
+            '48217794d5d520751e00efe3ea4fe0f2a340df16c669007cf08058c349746ac1'
+            '88b2e709228049ba11f37863f87de75ab6cde295104852871384337cfdc906a3'
+            '55005dfc1cba3e1fa3b6a2740fdbbb0cc9eb3178941ddd7008e2ef1d5c85a088')
+
+prepare() {
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-i2pd-use-arch-flags-on-tests.patch"
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/020-i2pd-fix-install.patch"
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/030-i2pd-config.patch"
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/040-i2pd-do-not-override-config.patch"
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/050-i2pd-tunnels-d-readme.patch"
+}
+
+build() {
+    export CXXFLAGS+=" ${CPPFLAGS}"
+    cmake \
+        -B "${pkgname}-${pkgver}/build" \
+        -S "${pkgname}-${pkgver}/build" \
+        -DCMAKE_BUILD_TYPE:STRING='None' \
+        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+        -DBUILD_SHARED_LIBS:BOOL='ON' \
+        -DWITH_UPNP:BOOL='ON' \
+        -DWITH_AESNI:BOOL='OFF' \
+        -DWITH_AVX:BOOL='OFF' \
+        -Wno-dev
+    make -C "${pkgname}-${pkgver}/build"
+}
+
+check() {
+    make -C "${pkgname}-${pkgver}/tests"
+}
+
+package() {
+    local _dir
+    local _file
+    
+    cd "${pkgname}-${pkgver}"
+    
+    make -C build DESTDIR="$pkgdir" install
+    
+    # config
+    install -D -m644 contrib/i2pd.conf    -t "${pkgdir}/etc/i2pd"
+    install -D -m644 contrib/tunnels.conf -t "${pkgdir}/etc/i2pd"
+    install -d -m755 "${pkgdir}/etc/i2pd/tunnels.d"
+    
+    # certificates
+    while read -r -d '' _file
+    do
+        _dir="${_file#contrib/certificates}"
+        _dir="${_dir%/*}"
+        install -D -m644 "$_file" -t "${pkgdir}/usr/share/i2pd/certificates/${_dir}"
+    done < <(find contrib/certificates -type f -print0)
+    
+    # systemd
+    install -D -m644 contrib/i2pd.service   -t "${pkgdir}/usr/lib/systemd/system"
+    install -D -m644 "${srcdir}/i2pd.sysusers" "${pkgdir}/usr/lib/sysusers.d/i2pd.conf"
+    install -D -m644 "${srcdir}/i2pd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/i2pd.conf"
+    
+    # tunnels.d examples
+    install -D -m644 contrib/tunnels.d/README         -t "${pkgdir}/usr/share/doc/${pkgname}/tunnels.d"
+    install -D -m644 contrib/tunnels.d/IRC-Ilita.conf -t "${pkgdir}/usr/share/doc/${pkgname}/tunnels.d"
+    install -D -m644 contrib/tunnels.d/IRC-Irc2P.conf -t "${pkgdir}/usr/share/doc/${pkgname}/tunnels.d"
+    
+    # man page
+    install -D -m644 debian/i2pd.1 -t "${pkgdir}/usr/share/man/man1"
+    
+    # license
+    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}

Deleted: i2pd.sysusers
===================================================================
--- i2pd.sysusers	2020-04-11 22:44:30 UTC (rev 613370)
+++ i2pd.sysusers	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1 +0,0 @@
-u i2pd - "i2pd user" /var/lib/i2pd -

Copied: i2pd/repos/community-x86_64/i2pd.sysusers (from rev 613370, i2pd/trunk/i2pd.sysusers)
===================================================================
--- i2pd.sysusers	                        (rev 0)
+++ i2pd.sysusers	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1 @@
+u i2pd - "i2pd user" /var/lib/i2pd -

Deleted: i2pd.tmpfiles
===================================================================
--- i2pd.tmpfiles	2020-04-11 22:44:30 UTC (rev 613370)
+++ i2pd.tmpfiles	2020-04-11 22:45:31 UTC (rev 613371)
@@ -1,6 +0,0 @@
-d /var/lib/i2pd 0700 i2pd i2pd - - -
-d /var/log/i2pd 0700 i2pd i2pd - - -
-L /var/lib/i2pd/i2pd.conf - - - - /etc/i2pd/i2pd.conf
-L /var/lib/i2pd/tunnels.d - - - - /etc/i2pd/tunnels.d
-L /var/lib/i2pd/tunnels.conf - - - - /etc/i2pd/tunnels.conf
-L /var/lib/i2pd/certificates - - - - /usr/share/i2pd/certificates

Copied: i2pd/repos/community-x86_64/i2pd.tmpfiles (from rev 613370, i2pd/trunk/i2pd.tmpfiles)
===================================================================
--- i2pd.tmpfiles	                        (rev 0)
+++ i2pd.tmpfiles	2020-04-11 22:45:31 UTC (rev 613371)
@@ -0,0 +1,6 @@
+d /var/lib/i2pd 0700 i2pd i2pd - - -
+d /var/log/i2pd 0700 i2pd i2pd - - -
+L /var/lib/i2pd/i2pd.conf - - - - /etc/i2pd/i2pd.conf
+L /var/lib/i2pd/tunnels.d - - - - /etc/i2pd/tunnels.d
+L /var/lib/i2pd/tunnels.conf - - - - /etc/i2pd/tunnels.conf
+L /var/lib/i2pd/certificates - - - - /usr/share/i2pd/certificates



More information about the arch-commits mailing list