app-misc/taskd: revbump: added logrotate, minor improvements
authorMarc Schiffbauer <mschiff@gentoo.org>
Sun, 3 Jan 2016 18:19:46 +0000 (19:19 +0100)
committerMarc Schiffbauer <mschiff@gentoo.org>
Sun, 3 Jan 2016 18:20:02 +0000 (19:20 +0100)
Package-Manager: portage-2.2.26

app-misc/taskd/files/taskd.logrotate [new file with mode: 0644]
app-misc/taskd/taskd-1.1.0-r1.ebuild [moved from app-misc/taskd/taskd-1.1.0.ebuild with 88% similarity]

diff --git a/app-misc/taskd/files/taskd.logrotate b/app-misc/taskd/files/taskd.logrotate
new file mode 100644 (file)
index 0000000..cfce919
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/taskd/taskd.log {
+    daily
+    missingok
+    rotate 7
+    compress
+    delaycompress
+    copytruncate
+}
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 e58da331743e9106b26c672875b5299daeee74e0..643b1551d4a7263a22df53345f72fc658c45e65c 100644 (file)
@@ -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 ""
 }