From 4f4d15e36c34bdf900f9157f5873c2065c0cf188 Mon Sep 17 00:00:00 2001 From: Marc Schiffbauer Date: Sun, 3 Jan 2016 19:19:46 +0100 Subject: app-misc/taskd: revbump: added logrotate, minor improvements Package-Manager: portage-2.2.26 --- app-misc/taskd/files/taskd.logrotate | 8 ++++ app-misc/taskd/taskd-1.1.0-r1.ebuild | 85 ++++++++++++++++++++++++++++++++++++ app-misc/taskd/taskd-1.1.0.ebuild | 75 ------------------------------- 3 files changed, 93 insertions(+), 75 deletions(-) create mode 100644 app-misc/taskd/files/taskd.logrotate create mode 100644 app-misc/taskd/taskd-1.1.0-r1.ebuild delete mode 100644 app-misc/taskd/taskd-1.1.0.ebuild (limited to 'app-misc/taskd') 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/taskd-1.1.0-r1.ebuild b/app-misc/taskd/taskd-1.1.0-r1.ebuild new file mode 100644 index 000000000000..643b1551d4a7 --- /dev/null +++ b/app-misc/taskd/taskd-1.1.0-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils systemd user + +DESCRIPTION="the server part of Taskwarrior, a command-line todo list manager" +HOMEPAGE="http://taskwarrior.org/" +SRC_URI="http://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_preinst() { + enewgroup taskd + enewuser taskd -1 -1 /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 "" +} diff --git a/app-misc/taskd/taskd-1.1.0.ebuild b/app-misc/taskd/taskd-1.1.0.ebuild deleted file mode 100644 index e58da331743e..000000000000 --- a/app-misc/taskd/taskd-1.1.0.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils cmake-utils systemd user - -DESCRIPTION="the server part of Taskwarrior, a command-line todo list manager" -HOMEPAGE="http://taskwarrior.org/" -SRC_URI="http://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 - - keepdir /usr/libexec/taskd /etc/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 -} - -pkg_preinst() { - enewgroup taskd - enewuser taskd -1 -1 /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 "" -} -- cgit v1.2.3-65-gdbad