From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-auth/keystone/, sys-auth/keystone/files/
Date: Wed, 30 Mar 2022 10:35:19 +0000 (UTC)	[thread overview]
Message-ID: <1648635990.9dd644c92d9feb00643d419dd516d1c8d3ff5d6d.Alessandro-Barbieri@gentoo> (raw)
commit:     9dd644c92d9feb00643d419dd516d1c8d3ff5d6d
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Mar 30 10:22:30 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Mar 30 10:26:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9dd644c9
sys-auth/keystone: logrotate and tmpfile
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
 sys-auth/keystone/files/keystone.logrotate                    |  8 ++++++++
 sys-auth/keystone/files/keystone.tmpfile                      |  1 +
 ...ne-21.0.0.0_rc1.ebuild => keystone-21.0.0.0_rc1-r1.ebuild} | 11 ++++++++---
 3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/sys-auth/keystone/files/keystone.logrotate b/sys-auth/keystone/files/keystone.logrotate
new file mode 100644
index 000000000..2709c72aa
--- /dev/null
+++ b/sys-auth/keystone/files/keystone.logrotate
@@ -0,0 +1,8 @@
+/var/log/keystone/*.log {
+    daily
+    missingok
+    rotate 5
+    compress
+    minsize 100k
+    copytruncate
+}
\ No newline at end of file
diff --git a/sys-auth/keystone/files/keystone.tmpfile b/sys-auth/keystone/files/keystone.tmpfile
new file mode 100644
index 000000000..70745ce2f
--- /dev/null
+++ b/sys-auth/keystone/files/keystone.tmpfile
@@ -0,0 +1 @@
+d /run/keystone 0755 keystone keystone -
diff --git a/sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild b/sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild
similarity index 95%
rename from sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild
rename to sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild
index 715dc5765..662dd4ae7 100644
--- a/sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild
+++ b/sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 MYP="${P/_/}"
 PYTHON_COMPAT=( python3_{8..9} )
 
-inherit distutils-r1
+inherit distutils-r1 tmpfiles
 
 DESCRIPTION="The Openstack authentication, authorization, and service catalog"
 HOMEPAGE="
@@ -131,8 +131,8 @@ python_install_all() {
 	keepdir /etc/keystone /var/log/keystone
 	insinto /etc/keystone
 	insopts -m 0640 -o keystone -g keystone
-	doins etc/nova/keystone.conf.sample
-	doins etc/nova/policy.yaml.sample
+	doins etc/keystone.conf.sample
+	doins etc/keystone.policy.yaml.sample
 	doins etc/logging.conf.sample
 	doins etc/default_catalog.templates
 	insinto /etc/keystone/httpd
@@ -140,6 +140,11 @@ python_install_all() {
 
 	fowners keystone:keystone /etc/keystone /etc/keystone/httpd /var/log/keystone
 
+	newtmpfiles "${FILESDIR}/keystone.tmpfile" keystone.conf
+
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}/keystone.logrotate" keystone.conf
+
 	rm -r "${ED}/usr/etc" || die
 }
 
next             reply	other threads:[~2022-03-30 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30 10:35 Alessandro Barbieri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-19 18:31 [gentoo-commits] repo/proj/guru:dev commit in: sys-auth/keystone/, sys-auth/keystone/files/ Alessandro Barbieri
2022-03-29 20:53 Alessandro Barbieri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=1648635990.9dd644c92d9feb00643d419dd516d1c8d3ff5d6d.Alessandro-Barbieri@gentoo \
    --to=lssndrbarbieri@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox