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