summaryrefslogtreecommitdiff
path: root/app-misc/taskd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/taskd
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/taskd')
-rw-r--r--app-misc/taskd/Manifest8
-rw-r--r--app-misc/taskd/files/config17
-rw-r--r--app-misc/taskd/files/taskd.confd1
-rw-r--r--app-misc/taskd/files/taskd.initd15
-rw-r--r--app-misc/taskd/files/taskd.logrotate8
-rw-r--r--app-misc/taskd/metadata.xml8
-rw-r--r--app-misc/taskd/taskd-1.1.0-r1.ebuild84
7 files changed, 141 insertions, 0 deletions
diff --git a/app-misc/taskd/Manifest b/app-misc/taskd/Manifest
new file mode 100644
index 000000000000..47639a5fd9b8
--- /dev/null
+++ b/app-misc/taskd/Manifest
@@ -0,0 +1,8 @@
+AUX config 392 SHA256 7523f304465ac27a13fc7222dbbee99ff2b5c720a95826c2bd4cb77ca883e4ce SHA512 00d21faa5063f7024885c63c455310b8f06738a03ff0b0c348f2b65166e2253d46148ee3faa2cc2269f5dd1178fc9be5f2566cccf9b2c3545ed311dff840b804 WHIRLPOOL 3d656adf6c768433c3155c9f34f44b5ffc364f80ff9bc2082d977b03c1d87a7104f701ab5463205643269180dc7348b4e36f1b4adeb7cdc56b3cd822250a1f17
+AUX taskd.confd 27 SHA256 33950500b2d04cfa94260f42dbedc2eb7ec389d2070adac6db43cc33569f20a6 SHA512 e05ff87aae4eb81d7d8c69396653abeef4d35be6804c7547440888078b33b77ed00371c10429453d59bf1583fb53e42e8f7b4120bac84aa9a29b046190aae44d WHIRLPOOL 9b1f12ca775be7dd068fba9644e046cb30ee0c804750fd25941a42673894e9a9c96c6457912802a7adb6c4c5a31235c6527b054651404cddef6b8ac355a1135a
+AUX taskd.initd 397 SHA256 719b7e297cfcf015466841a5072387d89e6bcadb35cb28e6d6fcac9244e67b42 SHA512 92663323b44d5cb36d86ab2b33c761214926c24d5ba3e84c4495e3e6158e1ff4fe603c2f7e79070c02e88ba90904f9b701bc75feedd2a9ce5f1b9982192e1d3f WHIRLPOOL d20566b53ca5b8e70a91f0898e5419840b8f35a96d4cb5617cf42fc0c1ab32c0e8260f1c1c94845229ce0967a6b5291913fa5708d39a79e81d188620c6268964
+AUX taskd.logrotate 114 SHA256 d8b149b0055b09283adc1a10c16f184b4ae353e9d596db0192fbf2910d7a450a SHA512 4d8c3c12dc203cc6c9f27ad6882934a2786504a5b6ef7dfedd43deb61faaa4ceff452adfc93e2ed0074dd2545a90867c2ff85bca73adf9d1c858adfc76649fc4 WHIRLPOOL 03e407535d0d53a6ea34ce8d5aca19f05ac57d10655a081be0c906b3642eaabc2735a15a6ff94bb4039c7f7f4c1d891e8cea1f30e1f19be71e2daecc1a6ba156
+DIST taskd-1.1.0.tar.gz 120115 SHA256 7b8488e687971ae56729ff4e2e5209ff8806cf8cd57718bfd7e521be130621b4 SHA512 df2349c354258fd1b014b1a9c78f68dc10c9e5a48357e282e8a760cf4e4aaf4d36486796ad094ee2b050e7506195b778e3316c90ef543a2f8242de313daa13aa WHIRLPOOL f3247de0ab1ecfed48e6c4e2f2391d370e77b6fb17a4aee5b0824efb1c0e70b725a6d9a544ffb9611d2dcba9956ec0443b0161ca8310f56a41cdd89b99335591
+EBUILD taskd-1.1.0-r1.ebuild 1867 SHA256 c1dd2a955f2337464ea2931a25ca149689456cae8eb3e2184d6013182829fbc8 SHA512 6a0a307c4401622b8c65e13a0a243e8d1d4e302afc70851d6040529f9ac21ef841897501321d989a8b93441dcbf08a56121fb11c14dab0ead0759220ffcf332a WHIRLPOOL c86ea2e4170f6b275948afa085e01a31c8fa6cd6d8b6dd31efd2976ad81860702c7666b5986fcbea683900c5d9fb13ade4cb92dda8b3b76917b5efe3cd212af6
+MISC ChangeLog 1174 SHA256 76f4df46c051e1168b95c17ee7d32e3fb5b0bb664f11e5f0faed1273d36a0971 SHA512 805efe4158590b7ccbd68ec22dc1d55d646897331260a44514fd624525d7e0492e6d838b9a8f92d0761cf0924b3498b6f2ae6bebba655e24349e50ab023bb496 WHIRLPOOL 985f17d54d1929891e694e4bafd7f5146044e8bcc58db053d0cbae9176c6b32974a0aebc58f484c7a2f46ca6b4a945f082dbc10d4d6aa230c7063c884e85b413
+MISC metadata.xml 246 SHA256 8c6ebbba986310a482981d0b04b95c563bbd468d48a3a78f3a781c42df768685 SHA512 cf3bffaa344cc0785ce4b3a18c5cef7b508e943de589d67485df46802f0c9c1b9bd6d51b7197fc84431180f82b8affae22175ae0bfe7616b57f6874a861f6698 WHIRLPOOL c6b19f5fb30c47dec1cb760524bad2e1ce067dbe71ec345709953c2d448df685845c0c8194986db459dcf0e4efd1722bcb9b80ab5a78a934d11cf2a9ccbbed0c
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 ""
+}