Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh
taskd
taskd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File taskd.spec of Package taskd
# # spec file for package taskwarrior # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates %endif Name: taskd Version: 1.1.0 Release: 0 Summary: Task sharing server for taskwarrior clients License: MIT Group: Productivity/Office/Organizers Url: http://taskwarrior.org Source0: http://www.taskwarrior.org/download/taskd-%{version}.tar.gz Patch0: taskd.logfile.patch Patch1: taskd.pidfile.patch Patch2: taskd.build-compare.patch Source10: README.taskd.txt Source11: taskd.generate.example.vars.txt Source12: taskd.generate.ca.sh Source13: taskd.generate.server.sh Source14: taskd.generate.client.sh Source15: taskd.generate.crl.sh BuildRequires: cmake >= 2.8.11 BuildRequires: gcc-c++ BuildRequires: coreutils BuildRequires: pkgconfig(gnutls) BuildRequires: libuuid-devel BuildRequires: systemd %{?systemd_requires} Requires(pre): %fillup_prereq Requires(pre): %{_bindir}/getent Requires(pre): %{_sbindir}/groupadd Requires(pre): %{_sbindir}/useradd Requires(pre): /bin/mkdir BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Taskserver will allow you set up a server so your Taskwarrior client (and others, coming soon) can share tasks. %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %cmake make %{?_smp_mflags} %install %cmake_install rm -f %{buildroot}/%{_datadir}/doc/%{name}/INSTALL mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_datadir}/doc/packages/ mv %{buildroot}/%{_datadir}/doc/%{name} \ %{buildroot}/%{_datadir}/doc/packages rm -fv %{buildroot}%{_mandir}/*/%{name}ctl* mkdir -vp %{buildroot}%{_libexecdir}/%{name} pushd %{buildroot}%{_bindir} rm -fv %{name}ctl mv -vt %{buildroot}%{_sbindir} %{name} popd pushd %{buildroot}%{_sbindir} for i in %{name} do mv -vt %{buildroot}%{_libexecdir}/%{name} $i tee $i <<_EOF_ #!/bin/sh set -e test -z "\${TASKDATA}" && . /etc/sysconfig/%{name} exec env TASKDDATA="\${TASKDDATA}" "%{_libexecdir}/%{name}/$i" "\$@" _EOF_ chmod 00755 $i done popd tee %{name}.service <<_EOS_ [Unit] Description=Task sharing server for taskwarrior clients After=network-online.target Wants=nss-lookup.target Before=nss-lookup.target [Service] Type=simple User=%{name} Group=%{name} Environment=TASKDDATA= EnvironmentFile=/etc/sysconfig/%{name} ExecStart=%{_sbindir}/%{name} server ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target _EOS_ install -m 444 -D %{name}.service %{buildroot}%{_unitdir}/%{name}.service ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} mkdir -p %{buildroot}%{_fillupdir} pushd $_ tee sysconfig.%{name} <<_EOS_ ## Path: Applications/%{name} ## Description: data root ## Type: string ## Default: "/var/lib/%{name}" # # Directory which contains the data to be served. # TASKDDATA="/var/lib/%{name}" _EOS_ popd # mkdir -p %{buildroot}%{_datadir}/%{name}/skel/bin ln -sfvbn %{_sbindir}/%{name} %{buildroot}%{_datadir}/%{name}/skel/bin/%{name} cp -avL %{S:10} README.taskd.txt mkdir -p %{buildroot}%{_datadir}/%{name}/pki pushd $_ cp -avL %{S:11} example.vars.txt cp -avL %{S:12} generate.ca.sh cp -avL %{S:13} generate.server.sh cp -avL %{S:14} generate.client.sh cp -avL %{S:15} generate.crl.sh chmod -v 00755 *.sh chmod -v 00644 *.txt popd %pre %service_add_pre %{name}.service %post %{fillup_only} if ! %{_bindir}/getent group %{name} ; then %{_sbindir}/groupadd --system %{name} || : fi if ! %{_bindir}/getent passwd %{name} ; then %{_sbindir}/useradd \ --system \ --create-home \ --skel %{_datadir}/%{name}/skel \ --home-dir /var/lib/%{name} \ --shell /bin/sh \ --comment "%{name}" \ --gid nogroup \ --groups %{name} \ %{name} || : fi taskd_log=/var/log/%{name}.log if test -e "${taskd_log}" then ls -ld --time-style=full-iso "${taskd_log}" else touch "${taskd_log}" chown -v %{name}.%{name} "${taskd_log}" fi %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS pki scripts demo README.taskd.txt %config %{_unitdir}/* %{_libexecdir}/%{name} %{_datadir}/%{name} %{_sbindir}/rc%{name} %{_sbindir}/%{name} %{_mandir}/man1/%{name}.1.* %{_mandir}/man5/%{name}rc.5.* %{_fillupdir}/sysconfig.%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor