Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/radicale/files/, www-apps/radicale/
Date: Sat, 24 Feb 2018 03:21:37
Message-Id: 1519442473.7a16b479386b0087d551eac28b81e2facc97166d.whissi@gentoo
1 commit: 7a16b479386b0087d551eac28b81e2facc97166d
2 Author: Henning Schild <henning <AT> hennsch <DOT> de>
3 AuthorDate: Sat Feb 24 03:16:42 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 03:21:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a16b479
7
8 www-apps/radicale: Bump to v1.1.6
9
10 Closes: https://github.com/gentoo/gentoo/pull/5990
11 Bug: https://bugs.gentoo.org/618176
12 Bug: https://bugs.gentoo.org/618724
13
14 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
15
16 www-apps/radicale/Manifest | 1 +
17 .../radicale/files/radicale-1.1.6-config.patch | 34 ++++++++++
18 www-apps/radicale/radicale-1.1.6.ebuild | 75 ++++++++++++++++++++++
19 3 files changed, 110 insertions(+)
20
21 diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest
22 index 8a93a667d07..a84266d4ed5 100644
23 --- a/www-apps/radicale/Manifest
24 +++ b/www-apps/radicale/Manifest
25 @@ -1 +1,2 @@
26 DIST Radicale-1.1.1.tar.gz 47174 BLAKE2B 60b2ccff2a2c604becc8c4c40d106c467f43be93593471732528cf1939165451702aa6e0ed8435584eb1202072fbe82a9afecd292b6365143d095f784e7eecb5 SHA512 dc251d8fa4d347c2bbcf472b7a2da94d674f858a007fec1d74774cd1f3ae43eb2d5902ed45762638ec49546b8ee1f66446d07b50fc0ff6595deb67ea07f87af2
27 +DIST Radicale-1.1.6.tar.gz 48280 BLAKE2B 38d3047d473fad24188b597a57d3e1f0e34df03f00f6806b86c447ed731be074bf0b5f6dfb951c8a9f627993bf0763792150bc06532414a658e4d306123fcdd6 SHA512 3fed85fc5fa2b041277112870b8b508a22cc85ec0680dd1cf9411e73715e18a9b0ddd651eafb0c9529bd308e7fd87ae44ecdd82935f4062050919780301d56d9
28
29 diff --git a/www-apps/radicale/files/radicale-1.1.6-config.patch b/www-apps/radicale/files/radicale-1.1.6-config.patch
30 new file mode 100644
31 index 00000000000..4eb286f8d40
32 --- /dev/null
33 +++ b/www-apps/radicale/files/radicale-1.1.6-config.patch
34 @@ -0,0 +1,34 @@
35 +diff --git a/config b/config
36 +index 453a45e..10c1595 100644
37 +--- a/config
38 ++++ b/config
39 +@@ -146,7 +146,7 @@ http_password_parameter =
40 + #custom_handler =
41 +
42 + # File for rights management from_file
43 +-#file = ~/.config/radicale/rights
44 ++file = /etc/radicale/rights
45 +
46 +
47 + [storage]
48 +@@ -163,7 +163,7 @@ file = ~/.config/radicale/rights
49 + #custom_handler =
50 +
51 + # Folder for storing local collections, created if not present
52 +-#filesystem_folder = ~/.config/radicale/collections
53 ++filesystem_folder = /var/lib/radicale/
54 +
55 + # Database URL for SQLAlchemy
56 + # dialect+driver://user:password@host/dbname[?key=value..]
57 +diff --git a/logging b/logging
58 +--- a/logging
59 ++++ b/logging
60 +@@ -45,7 +45,7 @@ formatter = simple
61 + [handler_file]
62 + # File handler
63 + class = FileHandler
64 +-args = ('/var/log/radicale',)
65 ++args = ('/var/log/radicale/radicale.log',)
66 + formatter = full
67 +
68 +
69
70 diff --git a/www-apps/radicale/radicale-1.1.6.ebuild b/www-apps/radicale/radicale-1.1.6.ebuild
71 new file mode 100644
72 index 00000000000..702c9e9c110
73 --- /dev/null
74 +++ b/www-apps/radicale/radicale-1.1.6.ebuild
75 @@ -0,0 +1,75 @@
76 +# Copyright 1999-2018 Gentoo Foundation
77 +# Distributed under the terms of the GNU General Public License v2
78 +
79 +EAPI="6"
80 +
81 +PYTHON_COMPAT=( python{3_4,3_5,3_6} )
82 +
83 +inherit eutils distutils-r1 user
84 +
85 +MY_PN="Radicale"
86 +MY_P="${MY_PN}-${PV}"
87 +
88 +DESCRIPTION="A simple CalDAV calendar server"
89 +HOMEPAGE="http://radicale.org/"
90 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
91 +
92 +LICENSE="GPL-3"
93 +SLOT="0"
94 +KEYWORDS="~amd64 ~x86"
95 +IUSE=""
96 +
97 +DEPEND=""
98 +RDEPEND=">=dev-python/vobject-0.9.5[${PYTHON_USEDEP}]"
99 +
100 +S=${WORKDIR}/${MY_P}
101 +
102 +RDIR=/var/lib/radicale
103 +LDIR=/var/log/radicale
104 +
105 +PATCHES=( "${FILESDIR}"/${P}-config.patch )
106 +
107 +pkg_setup() {
108 + enewgroup radicale
109 + enewuser radicale -1 -1 ${RDIR} radicale
110 +}
111 +
112 +python_install_all() {
113 + rm README* || die
114 +
115 + # init file
116 + newinitd "${FILESDIR}"/radicale.init.d radicale
117 +
118 + # directories
119 + diropts -m0750
120 + dodir ${RDIR}
121 + fowners radicale:radicale ${RDIR}
122 + keepdir ${RDIR}
123 + diropts -m0755
124 + dodir ${LDIR}
125 + fowners radicale:radicale ${LDIR}
126 + keepdir ${LDIR}
127 +
128 + # config file
129 + insinto /etc/${PN}
130 + doins config logging
131 +
132 + # fcgi and wsgi files
133 + exeinto /usr/share/${PN}
134 + doexe radicale.wsgi
135 + doexe radicale.fcgi
136 +
137 + distutils-r1_python_install_all
138 +}
139 +
140 +pkg_postinst() {
141 + einfo "A sample WSGI and FastCGI script are in ${EROOT}usr/share/${PN}."
142 + einfo "Radicale supports different authentication backends that depend on external libraries."
143 + einfo "Please install"
144 + optfeature "LDAP auth" dev-python/python-ldap
145 + optfeature "PAM auth" dev-python/python-pam
146 + optfeature "HTTP auth" dev-python/requests
147 + optfeature "FastCGI mode" dev-python/flup
148 + optfeature "Database storage backend" dev-python/sqlalchemy
149 + einfo "Please note that some of these libraries are Python 2 only."
150 +}