net-dns/dnscrypt-proxy: add logrotate file to live ebuild
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 20 Jun 2019 09:01:08 +0000 (02:01 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 20 Jun 2019 09:02:14 +0000 (02:02 -0700)
Package-Manager: Portage-2.3.67, Repoman-2.3.15
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild
net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate [new file with mode: 0644]

index 419d40281c6969a877f7a631a52cea171f89a630..721259c1364f5b9757bcbfef7ea1fcf6fbdad604 100644 (file)
@@ -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 (file)
index 0000000..dcc6032
--- /dev/null
@@ -0,0 +1,5 @@
+/var/log/dnscrypt-proxy/*.log {
+        copytruncate
+        missingok
+        notifempty
+}