annotate www-apps/radicale/radicale-2.1.8.ebuild @ 504:7a3286a4fba4

Automated merge with https://localhost/hg/portage
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 20 Jun 2018 07:29:16 +0200
parents 510b2157b669
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
503
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2017 Gentoo Foundation
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 EAPI=6
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 PYTHON_COMPAT=( python{3_4,3_5,3_6} )
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 inherit eutils distutils-r1 user
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 MY_PN="Radicale"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 MY_P="${MY_PN}-${PV}"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 DESCRIPTION="A simple CalDAV calendar server"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 HOMEPAGE="http://www.radicale.org/"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 LICENSE="GPL-3"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 SLOT="0"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 KEYWORDS="~amd64 ~x86"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 IUSE="+bcrypt"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 DEPEND="
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 dev-python/vobject
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 bcrypt? ( app-admin/apache-tools dev-python/passlib[bcrypt] )"
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 S=${WORKDIR}/${MY_P}
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 RDIR=/var/lib/radicale
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 LDIR=/var/log/radicale
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 pkg_setup() {
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 enewgroup radicale
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 enewuser radicale -1 -1 ${RDIR} radicale
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 }
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 python_install_all() {
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 rm README* || die
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 # init file
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 newinitd "${FILESDIR}"/radicale.init.d radicale
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 # directories
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 diropts -m0750
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 dodir ${RDIR}
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 fowners radicale:radicale ${RDIR}
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 diropts -m0755
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 dodir ${LDIR}
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 fowners radicale:radicale ${LDIR}
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 # config file
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 insinto /etc/${PN}
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 doins config logging
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 # fcgi and wsgi files
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 exeinto /usr/share/${PN}
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 doexe radicale.wsgi
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 doexe radicale.fcgi
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 distutils-r1_python_install_all
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 }
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 pkg_postinst() {
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 einfo "A sample WSGI script has been put into ${ROOT}usr/share/${PN}."
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 einfo "You will also find there an example FastCGI script."
510b2157b669 ebuild for the latest and greatest radicale
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 }