commit: 4f4d15e36c34bdf900f9157f5873c2065c0cf188
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 3 18:19:46 2016 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Sun Jan 3 18:20:02 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4d15e3
app-misc/taskd: revbump: added logrotate, minor improvements
Package-Manager: portage-2.2.26
app-misc/taskd/files/taskd.logrotate | 8 ++++++++
app-misc/taskd/{taskd-1.1.0.ebuild => taskd-1.1.0-r1.ebuild} | 12 +++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/app-misc/taskd/files/taskd.logrotate
b/app-misc/taskd/files/taskd.logrotate
new file mode 100644
index 0000000..cfce919
--- /dev/null
+++ b/app-misc/taskd/files/taskd.logrotate
@@ -0,0 +1,8 @@
+/var/log/taskd/taskd.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ delaycompress
+ copytruncate
+}
diff --git a/app-misc/taskd/taskd-1.1.0.ebuild
b/app-misc/taskd/taskd-1.1.0-r1.ebuild
similarity index 88%
rename from app-misc/taskd/taskd-1.1.0.ebuild
rename to app-misc/taskd/taskd-1.1.0-r1.ebuild
index e58da33..643b155 100644
--- a/app-misc/taskd/taskd-1.1.0.ebuild
+++ b/app-misc/taskd/taskd-1.1.0-r1.ebuild
@@ -44,16 +44,24 @@ src_install() {
grep ^TASKDDATA= "${FILESDIR}"/taskd.confd > 90taskd
doenvd 90taskd
- keepdir /usr/libexec/taskd /etc/taskd
+ dodir /etc/taskd
+ keepdir /usr/libexec/taskd
+
diropts -m 0750
dodir /var/lib/taskd
keepdir /var/log/taskd
+
diropts -m 0700
keepdir /var/lib/taskd/orgs /etc/taskd/tls
+
insopts -m0600
insinto /etc/taskd
doins "${FILESDIR}"/config
+
dosym /etc/taskd/config /var/lib/taskd/config
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/taskd.logrotate taskd
}
pkg_preinst() {
@@ -72,4 +80,6 @@ pkg_postinst() {
ewarn "Do not use 'taskd init' as this will replace the config file and
set"
ewarn "default but unsuitable paths"
ewarn ""
+ ewarn "In order to manage taskd via 'taskd' either relogin or run
'source /etc/profile'"
+ ewarn ""
}