From 3db391486f339af5536d7942bc51d9c5ad60cabe Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 20 Oct 2016 00:47:29 -0700 Subject: [PATCH] app-admin/vault: add logrotate config Package-Manager: portage-2.3.2 --- app-admin/vault/files/vault.logrotated | 8 ++++++++ app-admin/vault/vault-0.5.3.ebuild | 2 ++ app-admin/vault/vault-0.6.2.ebuild | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 app-admin/vault/files/vault.logrotated diff --git a/app-admin/vault/files/vault.logrotated b/app-admin/vault/files/vault.logrotated new file mode 100644 index 0000000000000..db24363591653 --- /dev/null +++ b/app-admin/vault/files/vault.logrotated @@ -0,0 +1,8 @@ +/var/log/vault/vault.log { + su vault vault + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/app-admin/vault/vault-0.5.3.ebuild b/app-admin/vault/vault-0.5.3.ebuild index 2a42585a20a23..31c138aaebbc9 100644 --- a/app-admin/vault/vault-0.5.3.ebuild +++ b/app-admin/vault/vault-0.5.3.ebuild @@ -44,6 +44,8 @@ src_install() { dodoc "${S}"/src/${EGO_PN%/*}/{CHANGELOG.md,CONTRIBUTING.md,README.md} newinitd "${FILESDIR}/${PN}.initd" "${PN}" newconfd "${FILESDIR}/${PN}.confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" systemd_dounit "${FILESDIR}/${PN}.service" keepdir /etc/${PN}.d diff --git a/app-admin/vault/vault-0.6.2.ebuild b/app-admin/vault/vault-0.6.2.ebuild index ade0af0668cdf..f16d491d94e09 100644 --- a/app-admin/vault/vault-0.6.2.ebuild +++ b/app-admin/vault/vault-0.6.2.ebuild @@ -91,6 +91,8 @@ src_install() { dodoc "${S}"/src/${EGO_PN%/*}/{CHANGELOG.md,CONTRIBUTING.md,README.md} newinitd "${FILESDIR}/${PN}.initd" "${PN}" newconfd "${FILESDIR}/${PN}.confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" systemd_dounit "${FILESDIR}/${PN}.service" keepdir /etc/${PN}.d