diff --git a/srcpkgs/radicale2/INSTALL.msg b/srcpkgs/radicale2/INSTALL.msg new file mode 100644 index 00000000000..3e685412ef0 --- /dev/null +++ b/srcpkgs/radicale2/INSTALL.msg @@ -0,0 +1,13 @@ +We also provide radicale 2.x.x +If you want to switch from 1.x.x, there are couple steps: + +- Disabling the radicale 1.x service +- (Optionally) backing up the radicale 1.x collections in /var/lib/radicale +- Moving the old collections to a location that will not conflict with radicale 2.x +- Exporting the radicale 1.x collections in the 2.x format to /var/lib/radicale + (--export-storage path/to/empty/folder) +- Installing radicale 2.x (removing radicale 1.x) +- Enabling the radicale 2.x service +- (Optionally) removing the radicale 1.x collections once radicale 2.x service is confirmed to work + +More info at http://radicale.org/1to2/ diff --git a/srcpkgs/radicale2/files/radicale/log/run b/srcpkgs/radicale2/files/radicale/log/run new file mode 100755 index 00000000000..37284378a05 --- /dev/null +++ b/srcpkgs/radicale2/files/radicale/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec svlogd /var/log/radicale diff --git a/srcpkgs/radicale2/files/radicale/run b/srcpkgs/radicale2/files/radicale/run new file mode 100755 index 00000000000..0d44004cc10 --- /dev/null +++ b/srcpkgs/radicale2/files/radicale/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec chpst -u radicale radicale -f -C /etc/radicale/config diff --git a/srcpkgs/radicale2/template b/srcpkgs/radicale2/template new file mode 100644 index 00000000000..219fb59f375 --- /dev/null +++ b/srcpkgs/radicale2/template @@ -0,0 +1,37 @@ +# Template file for 'radicale2' +pkgname=radicale2 +version=2.1.10 +revision=1 +archs=noarch +wrksrc="Radicale-${version}" +build_style=python3-module +pycompile_module="radicale" +hostmakedepends="python3 python3-setuptools" +depends="python3-pam python3-requests python3-dulwich python3-vobject + python3-dateutil python3-passlib python3-bcrypt" +# added passlib and bcrypt, since its seems to be the safest option. +short_desc="Complete calendar and contact storing and manipulating solution" +maintainer="teldra " +license="GPL-3.0-or-later" +homepage="https://radicale.org" +distfiles="${PYPI_SITE}/R/Radicale/Radicale-${version}.tar.gz" +checksum=d5c60b57ddc233fce426430710a3c521c7ffd5a0f05b02d2d4ce6f6631194832 +conflicts="radicale" +provides="radicale-${version}_${revision}" +conf_files=" + /etc/radicale/config + /etc/sv/radicale/log/run" +make_dirs=" + /etc/radicale 755 root root + /usr/share/radicale/ 755 root root + /var/log/radicale/ 700 root root + /var/lib/radicale 750 radicale radicale" +system_accounts="radicale" +radicale_homedir="/var/lib/radicale" + +post_install() { + vinstall config 644 etc/radicale/ + vinstall radicale.fcgi 644 usr/share/radicale + vinstall radicale.wsgi 644 usr/share/radicale + vsv radicale +}