commit:     9f98f4254c4abca5ccb691e83614386866942f2a
Author:     Alexey Korepanov <kaikaikai <AT> yandex <DOT> ru>
AuthorDate: Tue Jun 15 14:19:52 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 14:39:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f98f425

net-vpn/i2pd: fix logrotate #795123

Signed-off-by: Alexey Korepanov <kaikaikai <AT> yandex.ru>
Closes: https://bugs.gentoo.org/795123
Closes: https://github.com/gentoo/gentoo/pull/21254
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../i2pd/files/{i2pd-2.6.0-r3.logrotate => i2pd-2.38.0-r1.logrotate}  | 4 +++-
 net-vpn/i2pd/{i2pd-2.38.0.ebuild => i2pd-2.38.0-r1.ebuild}            | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-vpn/i2pd/files/i2pd-2.6.0-r3.logrotate 
b/net-vpn/i2pd/files/i2pd-2.38.0-r1.logrotate
similarity index 53%
rename from net-vpn/i2pd/files/i2pd-2.6.0-r3.logrotate
rename to net-vpn/i2pd/files/i2pd-2.38.0-r1.logrotate
index 251128b7be7..9245bca8c48 100644
--- a/net-vpn/i2pd/files/i2pd-2.6.0-r3.logrotate
+++ b/net-vpn/i2pd/files/i2pd-2.38.0-r1.logrotate
@@ -5,7 +5,9 @@
         notifempty
         create 640 i2pd i2pd
         postrotate
-                /bin/kill -HUP $(cat /run/i2pd/i2pd.pid)
+                if [ -f /run/i2pd/i2pd.pid ]; then
+                    /bin/kill -HUP $(/bin/cat /run/i2pd/i2pd.pid)
+                fi
         endscript
 }
 

diff --git a/net-vpn/i2pd/i2pd-2.38.0.ebuild 
b/net-vpn/i2pd/i2pd-2.38.0-r1.ebuild
similarity index 97%
rename from net-vpn/i2pd/i2pd-2.38.0.ebuild
rename to net-vpn/i2pd/i2pd-2.38.0-r1.ebuild
index 847dab8ce29..b77a5dab495 100644
--- a/net-vpn/i2pd/i2pd-2.38.0.ebuild
+++ b/net-vpn/i2pd/i2pd-2.38.0-r1.ebuild
@@ -79,7 +79,7 @@ src_install() {
 
        # logrotate
        insinto /etc/logrotate.d
-       newins "${FILESDIR}/i2pd-2.6.0-r3.logrotate" i2pd
+       newins "${FILESDIR}/i2pd-2.38.0-r1.logrotate" i2pd
 }
 
 pkg_postinst() {

Reply via email to