1 |
commit: 4f4d15e36c34bdf900f9157f5873c2065c0cf188 |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 3 18:19:46 2016 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 3 18:20:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4d15e3 |
7 |
|
8 |
app-misc/taskd: revbump: added logrotate, minor improvements |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-misc/taskd/files/taskd.logrotate | 8 ++++++++ |
13 |
app-misc/taskd/{taskd-1.1.0.ebuild => taskd-1.1.0-r1.ebuild} | 12 +++++++++++- |
14 |
2 files changed, 19 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/app-misc/taskd/files/taskd.logrotate b/app-misc/taskd/files/taskd.logrotate |
17 |
new file mode 100644 |
18 |
index 0000000..cfce919 |
19 |
--- /dev/null |
20 |
+++ b/app-misc/taskd/files/taskd.logrotate |
21 |
@@ -0,0 +1,8 @@ |
22 |
+/var/log/taskd/taskd.log { |
23 |
+ daily |
24 |
+ missingok |
25 |
+ rotate 7 |
26 |
+ compress |
27 |
+ delaycompress |
28 |
+ copytruncate |
29 |
+} |
30 |
|
31 |
diff --git a/app-misc/taskd/taskd-1.1.0.ebuild b/app-misc/taskd/taskd-1.1.0-r1.ebuild |
32 |
similarity index 88% |
33 |
rename from app-misc/taskd/taskd-1.1.0.ebuild |
34 |
rename to app-misc/taskd/taskd-1.1.0-r1.ebuild |
35 |
index e58da33..643b155 100644 |
36 |
--- a/app-misc/taskd/taskd-1.1.0.ebuild |
37 |
+++ b/app-misc/taskd/taskd-1.1.0-r1.ebuild |
38 |
@@ -44,16 +44,24 @@ src_install() { |
39 |
grep ^TASKDDATA= "${FILESDIR}"/taskd.confd > 90taskd |
40 |
doenvd 90taskd |
41 |
|
42 |
- keepdir /usr/libexec/taskd /etc/taskd |
43 |
+ dodir /etc/taskd |
44 |
+ keepdir /usr/libexec/taskd |
45 |
+ |
46 |
diropts -m 0750 |
47 |
dodir /var/lib/taskd |
48 |
keepdir /var/log/taskd |
49 |
+ |
50 |
diropts -m 0700 |
51 |
keepdir /var/lib/taskd/orgs /etc/taskd/tls |
52 |
+ |
53 |
insopts -m0600 |
54 |
insinto /etc/taskd |
55 |
doins "${FILESDIR}"/config |
56 |
+ |
57 |
dosym /etc/taskd/config /var/lib/taskd/config |
58 |
+ |
59 |
+ insinto /etc/logrotate.d |
60 |
+ newins "${FILESDIR}"/taskd.logrotate taskd |
61 |
} |
62 |
|
63 |
pkg_preinst() { |
64 |
@@ -72,4 +80,6 @@ pkg_postinst() { |
65 |
ewarn "Do not use 'taskd init' as this will replace the config file and set" |
66 |
ewarn "default but unsuitable paths" |
67 |
ewarn "" |
68 |
+ ewarn "In order to manage taskd via 'taskd' either relogin or run 'source /etc/profile'" |
69 |
+ ewarn "" |
70 |
} |