From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3FC4E13933E for ; Tue, 13 Jul 2021 20:57:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DC0FE0DCE; Tue, 13 Jul 2021 20:57:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4747CE0DCE for ; Tue, 13 Jul 2021 20:57:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3E6A5342D2B for ; Tue, 13 Jul 2021 20:57:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6510B7EE for ; Tue, 13 Jul 2021 20:57:30 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1626209711.a4d1abfa697b232e337e3997835d03eeb187c5e0.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/taskd/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/taskd/taskd-1.1.0-r3.ebuild X-VCS-Directories: app-misc/taskd/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a4d1abfa697b232e337e3997835d03eeb187c5e0 X-VCS-Branch: master Date: Tue, 13 Jul 2021 20:57:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2d1df714-21cf-4bf6-abfc-00a7e70d136a X-Archives-Hash: c5d188f74a2adbc82fb56d0a7c9d1242 commit: a4d1abfa697b232e337e3997835d03eeb187c5e0 Author: Conrad Kostecki gentoo org> AuthorDate: Tue Jul 13 19:32:35 2021 +0000 Commit: Conrad Kostecki gentoo 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 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'" +}