public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/taskd/
Date: Tue, 13 Jul 2021 20:57:30 +0000 (UTC)	[thread overview]
Message-ID: <1626209711.a4d1abfa697b232e337e3997835d03eeb187c5e0.conikost@gentoo> (raw)

commit:     a4d1abfa697b232e337e3997835d03eeb187c5e0
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 13 19:32:35 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jul 13 20:55:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4d1abfa

app-misc/taskd: migrate to GLEP 81

Bug: https://bugs.gentoo.org/781266
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-misc/taskd/taskd-1.1.0-r3.ebuild | 82 ++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)

diff --git a/app-misc/taskd/taskd-1.1.0-r3.ebuild b/app-misc/taskd/taskd-1.1.0-r3.ebuild
new file mode 100644
index 00000000000..d86934a2f78
--- /dev/null
+++ b/app-misc/taskd/taskd-1.1.0-r3.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake systemd
+
+DESCRIPTION="Server part of Taskwarrior, a command-line todo list manager"
+HOMEPAGE="https://taskwarrior.org/"
+SRC_URI="https://taskwarrior.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+	net-libs/gnutls:=
+	sys-apps/util-linux
+	sys-libs/readline:0=
+"
+
+RDEPEND="
+	${DEPEND}
+	acct-group/taskd
+	acct-user/taskd
+"
+
+src_configure() {
+	local mycmakeargs=(
+		-DTASKD_DOCDIR=share/doc/${PF}
+	)
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	systemd_dounit "${S}"/scripts/systemd/taskd.service
+
+	insinto /usr/share/${PN}/pki
+	doins pki/*
+
+	insinto /usr/share/${PN}/mon
+	doins mon/*
+
+	newinitd "${FILESDIR}"/taskd.initd taskd
+	newconfd "${FILESDIR}"/taskd.confd taskd
+
+	grep ^TASKDDATA= "${FILESDIR}"/taskd.confd > 90taskd || die
+	doenvd 90taskd
+
+	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_postinst() {
+	chown taskd:taskd /var/lib/taskd{,/orgs} /var/log/taskd /etc/taskd/{config,tls}
+
+	elog "For configuration see 'man taskdrc' and edit /etc/taskd/config"
+	elog "You will need to configure certificates first in order to use taskd"
+	ewarn
+	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'"
+}


             reply	other threads:[~2021-07-13 20:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 20:57 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-13 20:57 [gentoo-commits] repo/gentoo:master commit in: app-misc/taskd/ Conrad Kostecki
2018-09-01 20:28 Andreas Sturmlechner
2018-09-01 20:28 Andreas Sturmlechner
2017-08-31 13:49 Tim Harder
2017-08-24 15:53 Michał Górny
2016-01-07  0:11 Marc Schiffbauer
2016-01-05  3:12 Marc Schiffbauer

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=1626209711.a4d1abfa697b232e337e3997835d03eeb187c5e0.conikost@gentoo \
    --to=conikost@gentoo.org \
    --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