From da254bc90cd5cf2320b2ad861224ceb54d44b70c Mon Sep 17 00:00:00 2001 From: Karel Balej Date: Tue, 21 Sep 2021 20:11:44 +0200 Subject: [PATCH] New package: xandikos-0.2.6 --- srcpkgs/xandikos/INSTALL.msg | 5 ++++ srcpkgs/xandikos/files/xandikos/log/run | 2 ++ srcpkgs/xandikos/files/xandikos/run | 3 +++ srcpkgs/xandikos/template | 32 +++++++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 srcpkgs/xandikos/INSTALL.msg create mode 100755 srcpkgs/xandikos/files/xandikos/log/run create mode 100755 srcpkgs/xandikos/files/xandikos/run create mode 100644 srcpkgs/xandikos/template diff --git a/srcpkgs/xandikos/INSTALL.msg b/srcpkgs/xandikos/INSTALL.msg new file mode 100644 index 000000000000..2d097ddf7824 --- /dev/null +++ b/srcpkgs/xandikos/INSTALL.msg @@ -0,0 +1,5 @@ +For deployment in a production environment it is +recommended to utilize an external web server +application which can also be used to authenticate +requests. Please refer to the provided sample +configuration files in /usr/share/examples/xandikos. diff --git a/srcpkgs/xandikos/files/xandikos/log/run b/srcpkgs/xandikos/files/xandikos/log/run new file mode 100755 index 000000000000..d30b9efa358d --- /dev/null +++ b/srcpkgs/xandikos/files/xandikos/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec svlogd /var/log/xandikos diff --git a/srcpkgs/xandikos/files/xandikos/run b/srcpkgs/xandikos/files/xandikos/run new file mode 100755 index 000000000000..785e4628b0f1 --- /dev/null +++ b/srcpkgs/xandikos/files/xandikos/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec chpst -u _xandikos xandikos -d /var/lib/xandikos ${OPTS:- --defaults} 2>&1 diff --git a/srcpkgs/xandikos/template b/srcpkgs/xandikos/template new file mode 100644 index 000000000000..8a6eaa7f0e24 --- /dev/null +++ b/srcpkgs/xandikos/template @@ -0,0 +1,32 @@ +# Template file for 'xandikos' +pkgname=xandikos +version=0.2.6 +revision=1 +build_style="python3-module" +hostmakedepends="python3-setuptools" +depends="python3-dulwich python3-defusedxml python3-icalendar python3-Jinja2 python3-aiohttp" +checkdepends="python3-pytest $depends" +short_desc="Lightweight CardDAV/CalDAV server that backs onto a Git repository" +maintainer="Karel Balej " +license="GPL-3.0-or-later" +homepage="https://www.xandikos.org" +changelog="https://raw.githubusercontent.com/jelmer/xandikos/master/NEWS" +distfiles="${PYPI_SITE}/x/xandikos/xandikos-${version}.tar.gz" +checksum="6b58fbcb2f8c2a0fc2e1f8508160443a46b3db9bf577d0ce5548689138816e23" + +system_accounts="_xandikos" +_xandikos_homedir="/var/lib/xandikos" + +make_dirs=" + /var/lib/xandikos 0700 _xandikos _xandikos + /var/log/xandikos 0700 root root +" + +post_install() { + vsv xandikos + vsconf examples/uwsgi-heroku.ini + vsconf examples/uwsgi-standalone.ini + vsconf examples/uwsgi.ini + vsconf examples/xandikos.avahi.service + vsconf examples/xandikos.nginx.conf +}