summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-06-20 02:01:08 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-06-20 02:02:14 -0700
commit8f622db8da37097481c9150f152fd2b2ed2b31ec (patch)
treebc886a41a4b2bc4ccc3403eeeaa348d443dead92 /net-dns/dnscrypt-proxy
parentapp-portage/unsymlink-lib: amd64 stable wrt bug #688164 (diff)
downloadgentoo-8f622db8da37097481c9150f152fd2b2ed2b31ec.tar.gz
gentoo-8f622db8da37097481c9150f152fd2b2ed2b31ec.tar.bz2
gentoo-8f622db8da37097481c9150f152fd2b2ed2b31ec.zip
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 <gyakovlev@gentoo.org>
Diffstat (limited to 'net-dns/dnscrypt-proxy')
-rw-r--r--net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild3
-rw-r--r--net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate5
2 files changed, 8 insertions, 0 deletions
diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild
index 419d40281c6..721259c1364 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 00000000000..dcc603284a8
--- /dev/null
+++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.logrotate
@@ -0,0 +1,5 @@
+/var/log/dnscrypt-proxy/*.log {
+ copytruncate
+ missingok
+ notifempty
+}