From 8f622db8da37097481c9150f152fd2b2ed2b31ec Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Thu, 20 Jun 2019 02:01:08 -0700 Subject: [PATCH] net-dns/dnscrypt-proxy: add logrotate file to live ebuild Package-Manager: Portage-2.3.67, Repoman-2.3.15 Signed-off-by: Georgy Yakovlev --- net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild | 3 +++ net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild index 419d40281c69..721259c1364f 100644 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild +++ b/net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild @@ -62,6 +62,9 @@ src_install() { systemd_newunit "${FILESDIR}"/dnscrypt-proxy.service dnscrypt-proxy.service systemd_newunit "${FILESDIR}"/dnscrypt-proxy.socket dnscrypt-proxy.socket + insinto /etc/logrotate.d + newins "${FILESDIR}"/dnscrypt-proxy.logrotate dnscrypt-proxy + einstalldocs } diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate new file mode 100644 index 000000000000..dcc603284a85 --- /dev/null +++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate @@ -0,0 +1,5 @@ +/var/log/dnscrypt-proxy/*.log { + copytruncate + missingok + notifempty +} -- 2.26.2