1 |
commit: 21eb29083da6b3afeb3fc511aef9aa98c48192e3 |
2 |
Author: Henning Schild <henning <AT> hennsch <DOT> de> |
3 |
AuthorDate: Fri Aug 17 06:37:07 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 18 10:29:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21eb2908 |
7 |
|
8 |
www-apps/radicale: Version bump to 2.1.10 |
9 |
|
10 |
Signed-off-by: Henning Schild <henning <AT> hennsch.de> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/9035 |
12 |
|
13 |
www-apps/radicale/Manifest | 1 + |
14 |
www-apps/radicale/radicale-2.1.10.ebuild | 84 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 85 insertions(+) |
16 |
|
17 |
diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest |
18 |
index 838270c76c7..437b4a0d556 100644 |
19 |
--- a/www-apps/radicale/Manifest |
20 |
+++ b/www-apps/radicale/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST Radicale-1.1.6.tar.gz 48280 BLAKE2B 38d3047d473fad24188b597a57d3e1f0e34df03f00f6806b86c447ed731be074bf0b5f6dfb951c8a9f627993bf0763792150bc06532414a658e4d306123fcdd6 SHA512 3fed85fc5fa2b041277112870b8b508a22cc85ec0680dd1cf9411e73715e18a9b0ddd651eafb0c9529bd308e7fd87ae44ecdd82935f4062050919780301d56d9 |
23 |
+DIST Radicale-2.1.10.tar.gz 77790 BLAKE2B 37061dd049dc918775f20b522ed86a47f32f34505c13763f8ae49ff007aca77f88caafc959be857c735c11b13506efdfc8413750808b88d5ea6dbe69e05f03ff SHA512 30fac6639e56bbd10664330d84ebba28b34005b4b4b4c5a6c22f53cb7e810ba4961cbd314e62fe33538674a2d4b45f14751f36ef5fa2ae2b7d44c1b1158f6e1c |
24 |
DIST Radicale-2.1.8.tar.gz 76348 BLAKE2B 87a4ec20990dc7e5dbba88a3fb3d1475210d40c12584d5bb7ba7c6d1ca2cd8efb97b7054d322f0a7fbe58fd8325be63df52f1d370cc13ccc90863b0900925656 SHA512 038bee4114b090bcf873e8a4ec83cbbc7bdd34b4843fd1a769a023c891b589b3a18637d5f8f8595691a7930804ad7695e333bb9df96d00515b7a3695294eb5f7 |
25 |
|
26 |
diff --git a/www-apps/radicale/radicale-2.1.10.ebuild b/www-apps/radicale/radicale-2.1.10.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..89f03ec7fc8 |
29 |
--- /dev/null |
30 |
+++ b/www-apps/radicale/radicale-2.1.10.ebuild |
31 |
@@ -0,0 +1,84 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{3_4,3_5,3_6} ) |
38 |
+ |
39 |
+inherit distutils-r1 eutils user |
40 |
+ |
41 |
+MY_PN="Radicale" |
42 |
+MY_P="${MY_PN}-${PV}" |
43 |
+ |
44 |
+DESCRIPTION="A simple CalDAV calendar server" |
45 |
+HOMEPAGE="https://radicale.org/" |
46 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-3+" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="+bcrypt" |
52 |
+ |
53 |
+RDEPEND=">=dev-python/vobject-0.9.6[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/python-dateutil-2.7.3[${PYTHON_USEDEP}] |
55 |
+ bcrypt? ( dev-python/passlib[bcrypt,${PYTHON_USEDEP}] )" |
56 |
+ |
57 |
+S=${WORKDIR}/${MY_P} |
58 |
+ |
59 |
+RDIR=/var/lib/radicale |
60 |
+LDIR=/var/log/radicale |
61 |
+ |
62 |
+pkg_pretend() { |
63 |
+ if [[ -f ${RDIR}/.props && ${MERGE_TYPE} != buildonly ]]; then |
64 |
+ eerror "It looks like you have a version 1 database in ${RDIR}." |
65 |
+ eerror "You must convert this database to version 2 format before upgrading." |
66 |
+ eerror "You may want to back up the old database before migrating." |
67 |
+ eerror |
68 |
+ eerror "If you have kept the Gentoo-default database configuration, this will work:" |
69 |
+ eerror "1. Stop any running instance of Radicale." |
70 |
+ eerror "2. Run \`radicale --export-storage ~/radicale-exported\`." |
71 |
+ eerror "3. Run \`chown -R radicale: ~/radicale-exported\`" |
72 |
+ eerror "4. Run \`mv \"${RDIR}\" \"${RDIR}.old\"\`." |
73 |
+ eerror "5. Install Radicale version 2." |
74 |
+ eerror "6. Run \`mv ~/radicale-exported \"${RDIR}/collections\"\`." |
75 |
+ eerror |
76 |
+ eerror "For more details, or if you are have a more complex configuration," |
77 |
+ eerror "please see the migration guide: https://radicale.org/1to2/" |
78 |
+ eerror "If you do a custom migration, please ensure the database is cleaned out of" |
79 |
+ eerror "${RDIR}, including the hidden .props file." |
80 |
+ die |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+pkg_setup() { |
85 |
+ enewgroup radicale |
86 |
+ enewuser radicale -1 -1 ${RDIR} radicale |
87 |
+} |
88 |
+ |
89 |
+python_install_all() { |
90 |
+ rm README* || die |
91 |
+ |
92 |
+ # init file |
93 |
+ newinitd "${FILESDIR}"/radicale.init.d radicale |
94 |
+ |
95 |
+ # directories |
96 |
+ diropts -m0750 -oradicale -gradicale |
97 |
+ keepdir ${RDIR} |
98 |
+ diropts -m0755 -oradicale -gradicale |
99 |
+ keepdir ${LDIR} |
100 |
+ |
101 |
+ # config file |
102 |
+ insinto /etc/${PN} |
103 |
+ doins config logging |
104 |
+ |
105 |
+ # fcgi and wsgi files |
106 |
+ exeinto /usr/share/${PN} |
107 |
+ doexe radicale.fcgi radicale.wsgi |
108 |
+ |
109 |
+ distutils-r1_python_install_all |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ einfo "A sample WSGI script has been put into ${ROOT%/}/usr/share/${PN}." |
114 |
+ einfo "You will also find there an example FastCGI script." |
115 |
+} |