Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/taskd/
Date: Sat, 01 Sep 2018 20:28:33
Message-Id: 1535833612.7bf8c8f7b6367e8d0314abb255c4212219fb1805.asturm@gentoo
1 commit: 7bf8c8f7b6367e8d0314abb255c4212219fb1805
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 25 14:26:54 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 1 20:26:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bf8c8f7
7
8 app-misc/taskd: EAPI-6 bump, misc fixes
9
10 Add missing slot op.
11 Sort DEPENDs.
12 local mycmakeargs.
13 Drop unnecessary emptylines.
14 Drop superfluous eclasses.
15
16 Package-Manager: Portage-2.3.48, Repoman-2.3.10
17 Closes: https://github.com/gentoo/gentoo/pull/9693
18
19 app-misc/taskd/taskd-1.1.0-r2.ebuild | 82 ++++++++++++++++++++++++++++++++++++
20 1 file changed, 82 insertions(+)
21
22 diff --git a/app-misc/taskd/taskd-1.1.0-r2.ebuild b/app-misc/taskd/taskd-1.1.0-r2.ebuild
23 new file mode 100644
24 index 00000000000..1b18af5ecd1
25 --- /dev/null
26 +++ b/app-misc/taskd/taskd-1.1.0-r2.ebuild
27 @@ -0,0 +1,82 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +inherit cmake-utils systemd user
34 +
35 +DESCRIPTION="Server part of Taskwarrior, a command-line todo list manager"
36 +HOMEPAGE="https://taskwarrior.org/"
37 +SRC_URI="https://taskwarrior.org/download/${P}.tar.gz"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE=""
43 +
44 +DEPEND="
45 + net-libs/gnutls:=
46 + sys-apps/util-linux
47 + sys-libs/readline:0="
48 +RDEPEND="${DEPEND}"
49 +
50 +src_configure() {
51 + local mycmakeargs=(
52 + -DTASKD_DOCDIR=share/doc/${PF}
53 + )
54 + cmake-utils_src_configure
55 +}
56 +
57 +src_install() {
58 + cmake-utils_src_install
59 +
60 + systemd_dounit "${S}"/scripts/systemd/taskd.service
61 +
62 + insinto /usr/share/${PN}/pki
63 + doins pki/*
64 +
65 + insinto /usr/share/${PN}/mon
66 + doins mon/*
67 +
68 + newinitd "${FILESDIR}"/taskd.initd taskd
69 + newconfd "${FILESDIR}"/taskd.confd taskd
70 +
71 + grep ^TASKDDATA= "${FILESDIR}"/taskd.confd > 90taskd || die
72 + doenvd 90taskd
73 +
74 + dodir /etc/taskd
75 + keepdir /usr/libexec/taskd
76 +
77 + diropts -m 0750
78 + dodir /var/lib/taskd
79 + keepdir /var/log/taskd
80 +
81 + diropts -m 0700
82 + keepdir /var/lib/taskd/orgs /etc/taskd/tls
83 +
84 + insopts -m0600
85 + insinto /etc/taskd
86 + doins "${FILESDIR}"/config
87 +
88 + dosym ../../../etc/taskd/config /var/lib/taskd/config
89 +
90 + insinto /etc/logrotate.d
91 + newins "${FILESDIR}"/taskd.logrotate taskd
92 +}
93 +
94 +pkg_setup() {
95 + enewgroup taskd
96 + enewuser taskd -1 /bin/bash /var/lib/taskd taskd
97 +}
98 +
99 +pkg_postinst() {
100 + chown taskd:taskd /var/lib/taskd{,/orgs} /var/log/taskd /etc/taskd/{config,tls}
101 +
102 + elog "For configuration see 'man taskdrc' and edit /etc/taskd/config"
103 + elog "You will need to configure certificates first in order to use taskd"
104 + ewarn
105 + ewarn "Do not use 'taskd init' as this will replace the config file and set"
106 + ewarn "default but unsuitable paths"
107 + ewarn
108 + ewarn "In order to manage taskd via 'taskd' either relogin or run 'source /etc/profile'"
109 +}