diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/taskd | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/taskd')
-rw-r--r-- | app-misc/taskd/Manifest | 7 | ||||
-rw-r--r-- | app-misc/taskd/files/config | 17 | ||||
-rw-r--r-- | app-misc/taskd/files/taskd.confd | 1 | ||||
-rw-r--r-- | app-misc/taskd/files/taskd.initd | 15 | ||||
-rw-r--r-- | app-misc/taskd/files/taskd.logrotate | 8 | ||||
-rw-r--r-- | app-misc/taskd/metadata.xml | 8 | ||||
-rw-r--r-- | app-misc/taskd/taskd-1.1.0-r1.ebuild | 84 |
7 files changed, 140 insertions, 0 deletions
diff --git a/app-misc/taskd/Manifest b/app-misc/taskd/Manifest new file mode 100644 index 000000000000..07ee0c04329a --- /dev/null +++ b/app-misc/taskd/Manifest @@ -0,0 +1,7 @@ +AUX config 392 BLAKE2B 4d31dd097cae0d784698cbbb2100310730bda647a139116ac237dcd765df6234651e5f833e1c58ff869d2780b5a79f4f45cd442a001577fd944e8d4253d1faa2 SHA512 00d21faa5063f7024885c63c455310b8f06738a03ff0b0c348f2b65166e2253d46148ee3faa2cc2269f5dd1178fc9be5f2566cccf9b2c3545ed311dff840b804 +AUX taskd.confd 27 BLAKE2B e60babd7477263d12aebb306607a6edea2cc4675d265b4c7a95928e686d95b1d655487e4c052bcc0b0bcb4bbc468e4b061740b2fc2cedfb093b666f3e5a1b93f SHA512 e05ff87aae4eb81d7d8c69396653abeef4d35be6804c7547440888078b33b77ed00371c10429453d59bf1583fb53e42e8f7b4120bac84aa9a29b046190aae44d +AUX taskd.initd 397 BLAKE2B 537dab2a50eb56f9830a83164b51f221a6ad219009c4b1bd176631b198d000017acf31b8c162c1ad6ef217e10d93da9a78413a7deb40e569676eff195176ba5b SHA512 92663323b44d5cb36d86ab2b33c761214926c24d5ba3e84c4495e3e6158e1ff4fe603c2f7e79070c02e88ba90904f9b701bc75feedd2a9ce5f1b9982192e1d3f +AUX taskd.logrotate 114 BLAKE2B ec9fe02930b299dc309771b1b2b696a6e6e93722760ccc56227d24d7fc38bfbc6ee37a7cdd17fc042df98aff8584a765e1833f4e24520cd99564b70a2bd81f06 SHA512 4d8c3c12dc203cc6c9f27ad6882934a2786504a5b6ef7dfedd43deb61faaa4ceff452adfc93e2ed0074dd2545a90867c2ff85bca73adf9d1c858adfc76649fc4 +DIST taskd-1.1.0.tar.gz 120115 BLAKE2B 1baabcd29afb2c44c5da19f6cb926546e9beb5716ea1a04d247e62c02b4a4c5bc4bf3347e32e0e417f3b5edf1b78f58d306f1d584340c344a13fd29cdd39dcc7 SHA512 df2349c354258fd1b014b1a9c78f68dc10c9e5a48357e282e8a760cf4e4aaf4d36486796ad094ee2b050e7506195b778e3316c90ef543a2f8242de313daa13aa +EBUILD taskd-1.1.0-r1.ebuild 1867 BLAKE2B aad3c71c48ef79d17ab77e86cd98b1190f4b76b5baf6b5e238bdcf9d87a48686a10c2caab9adc3c7f7dc1a6354657e9a3e67e0ff97911bbd6749e2e7a228db36 SHA512 6a0a307c4401622b8c65e13a0a243e8d1d4e302afc70851d6040529f9ac21ef841897501321d989a8b93441dcbf08a56121fb11c14dab0ead0759220ffcf332a +MISC metadata.xml 246 BLAKE2B bf870c5ee1af2f88418b8fac2cdf8adc852cebf6ee3d22f009ac4dda5307a5ff26d419f6d53c161d1096334a37b924d3188e51a299d3a4903ab842c68ee648b6 SHA512 cf3bffaa344cc0785ce4b3a18c5cef7b508e943de589d67485df46802f0c9c1b9bd6d51b7197fc84431180f82b8affae22175ae0bfe7616b57f6874a861f6698 diff --git a/app-misc/taskd/files/config b/app-misc/taskd/files/config new file mode 100644 index 000000000000..51a8cddf7992 --- /dev/null +++ b/app-misc/taskd/files/config @@ -0,0 +1,17 @@ +confirmation=1 +extensions=/usr/libexec/taskd +ip.log=on +log=/var/log/taskd/taskd.log +pid.file=/run/taskd.pid +queue.size=10 +request.limit=1048576 +root=/var/lib/taskd +server=localhost:53589 +trust=strict +verbose=1 +# TLS config: +#ciphers= +#ca.cert=/etc/taskd/tls/ca.pem +#server.cert=/etc/taskd/tls/server.crt.pem +#server.crl=/etc/taskd/tls/server.crl.pem +#server.key=/etc/taskd/tls/server.key.pem diff --git a/app-misc/taskd/files/taskd.confd b/app-misc/taskd/files/taskd.confd new file mode 100644 index 000000000000..aadbc6e8f741 --- /dev/null +++ b/app-misc/taskd/files/taskd.confd @@ -0,0 +1 @@ +TASKDDATA="/var/lib/taskd" diff --git a/app-misc/taskd/files/taskd.initd b/app-misc/taskd/files/taskd.initd new file mode 100644 index 000000000000..504ad104cb29 --- /dev/null +++ b/app-misc/taskd/files/taskd.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +need="net localmount" +command="/usr/bin/taskd" +command_args="server --data ${TASKDDATA:-/var/lib/taskd}" +pidfile="/run/taskd.pid" +start_stop_daemon_args="--user taskd:taskd" +command_background=1 +extra_started_commands="reload" + +reload() { + kill -HUP "$(cat $pidfile)" +} diff --git a/app-misc/taskd/files/taskd.logrotate b/app-misc/taskd/files/taskd.logrotate new file mode 100644 index 000000000000..cfce919c114d --- /dev/null +++ b/app-misc/taskd/files/taskd.logrotate @@ -0,0 +1,8 @@ +/var/log/taskd/taskd.log { + daily + missingok + rotate 7 + compress + delaycompress + copytruncate +} diff --git a/app-misc/taskd/metadata.xml b/app-misc/taskd/metadata.xml new file mode 100644 index 000000000000..2c0b1557c797 --- /dev/null +++ b/app-misc/taskd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>mschiff@gentoo.org</email> + <name>Marc Schiffbauer</name> +</maintainer> +</pkgmetadata> diff --git a/app-misc/taskd/taskd-1.1.0-r1.ebuild b/app-misc/taskd/taskd-1.1.0-r1.ebuild new file mode 100644 index 000000000000..fbf8edd6dd4d --- /dev/null +++ b/app-misc/taskd/taskd-1.1.0-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils cmake-utils systemd user + +DESCRIPTION="the 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" +IUSE="" + +DEPEND="sys-libs/readline:0 + net-libs/gnutls + sys-apps/util-linux" +RDEPEND="${DEPEND}" + +src_configure() { + mycmakeargs=( + -DTASKD_DOCDIR=share/doc/${PF} + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_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 + 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_setup() { + enewgroup taskd + enewuser taskd -1 /bin/bash /var/lib/taskd taskd +} + +pkg_postinst() { + chown taskd:taskd /var/lib/taskd{,/orgs} /var/log/taskd /etc/taskd/{config,tls} + + einfo "" + einfo "For configuration see 'man taskdrc' and edit /etc/taskd/config" + einfo "You will need to configure certificates first in order to use taskd" + einfo "" + 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'" + ewarn "" +} |