Mercurial > hg > portage
annotate www-apps/radicale/radicale-1.1.6.ebuild @ 451:beac8a186972
update the radicale ebuild
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 13 Dec 2017 09:46:24 +0100 |
parents | 907e7215a5aa |
children |
rev | line source |
---|---|
450
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2017 Gentoo Foundation |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 EAPI=6 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 inherit eutils distutils-r1 user |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 MY_PN="Radicale" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 MY_P="${MY_PN}-${PV}" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 DESCRIPTION="A simple CalDAV calendar server" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 HOMEPAGE="http://www.radicale.org/" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 LICENSE="GPL-3" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 SLOT="0" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 KEYWORDS="~amd64 ~x86" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 IUSE="" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 S=${WORKDIR}/${MY_P} |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 RDIR=/var/lib/radicale |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 LDIR=/var/log/radicale |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 PATCHES=( "${FILESDIR}"/${P}-config.patch ) |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 pkg_setup() { |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 enewgroup radicale |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 enewuser radicale -1 -1 ${RDIR} radicale |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 } |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 python_install_all() { |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 rm README* || die |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 # init file |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 newinitd "${FILESDIR}"/radicale.init.d radicale |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 # directories |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 diropts -m0750 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 dodir ${RDIR} |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 fowners radicale:radicale ${RDIR} |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 diropts -m0755 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 dodir ${LDIR} |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 fowners radicale:radicale ${LDIR} |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 # config file |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 insinto /etc/${PN} |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 doins config logging |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 # fcgi and wsgi files |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 exeinto /usr/share/${PN} |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 doexe radicale.wsgi |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 doexe radicale.fcgi |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 distutils-r1_python_install_all |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 } |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
59 |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
60 pkg_postinst() { |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
61 einfo "A sample WSGI and FastCGI script are in ${ROOT}usr/share/${PN}." |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
62 einfo "Radicale supports different authentication backends that depend on external libraries." |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
63 einfo "Please install" |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
64 optfeature "LDAP auth" dev-python/python-ldap |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
65 optfeature "PAM auth" dev-python/python-pam |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
66 optfeature "HTTP auth" dev-python/requests |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
67 optfeature "FastCGI mode" dev-python/flup |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
68 optfeature "Database storage backend" dev-python/sqlalchemy |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
69 einfo "Please note that some of these libraries are Python 2 only." |
907e7215a5aa
add an ebuild for the latest radicale 1.x
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
70 } |