Date: Tuesday, April 2, 2019 @ 16:57:18 Author: shibumi Revision: 447821
added taskd Added: taskd/ taskd/repos/ taskd/trunk/ taskd/trunk/PKGBUILD taskd/trunk/taskd.install taskd/trunk/taskd.sysusers.conf ---------------------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ taskd.install | 12 ++++++++++++ taskd.sysusers.conf | 1 + 3 files changed, 53 insertions(+) Added: taskd/trunk/PKGBUILD =================================================================== --- taskd/trunk/PKGBUILD (rev 0) +++ taskd/trunk/PKGBUILD 2019-04-02 16:57:18 UTC (rev 447821) @@ -0,0 +1,40 @@ +# Maintainer: Christian Rebischke <[email protected]> +# Contributor: Keerthan Jaic <jckeerthan at gmail dot com> +# Contributor: Rich Li <rich at dranek com> +# Contributor: Kevin MacMartin <prurigro at gmail dot com> +# Contributor: Markus Holtermann <[email protected]> +# Contributor: Andrea Scarpino <[email protected]> + +pkgname=taskd +pkgver=1.1.0 +pkgrel=3 +pkgdesc="A lightweight, secure server providing multi-user, multi-client access to task data" +url="http://tasktools.org/projects/${pkgname}.html" +license=('MIT') +arch=('x86_64') +depends=('gnutls' 'libutil-linux') +makedepends=('cmake') +install="${pkgname}.install" +source=("http://taskwarrior.org/download/${pkgname}-${pkgver}.tar.gz" + "${pkgname}.sysusers.conf") + +sha512sums=('df2349c354258fd1b014b1a9c78f68dc10c9e5a48357e282e8a760cf4e4aaf4d36486796ad094ee2b050e7506195b778e3316c90ef543a2f8242de313daa13aa' + '882ffe7de4bf569a16595d69cfd827fffd23beae7af19c90748bc2ee23e74f8313bcd2733131155d8fea4a37a207b052255fa5aeb6b61b47e4207332f7083e04') + +build() { + cd ${pkgname}-${pkgver} + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + cp -a {pki,scripts} "${pkgdir}/usr/share/doc/taskd/" + + install -Dm644 ${srcdir}/${pkgname}.sysusers.conf "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf" + install -Dm644 scripts/systemd/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Added: taskd/trunk/taskd.install =================================================================== --- taskd/trunk/taskd.install (rev 0) +++ taskd/trunk/taskd.install 2019-04-02 16:57:18 UTC (rev 447821) @@ -0,0 +1,12 @@ +datadir=/var/lib/taskd + +post_install() { + systemd-sysusers taskd.conf + if [[ ! -e $datadir ]]; then + echo "Initializing taskd data." + install -dm770 $datadir + taskd init --data $datadir + chown -R taskd:taskd $datadir + fi + +} Added: taskd/trunk/taskd.sysusers.conf =================================================================== --- taskd/trunk/taskd.sysusers.conf (rev 0) +++ taskd/trunk/taskd.sysusers.conf 2019-04-02 16:57:18 UTC (rev 447821) @@ -0,0 +1 @@ +u taskd - "Taskwarrior Sync Server"
