1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
14 DESCRIPTION="A simple CalDAV calendar server"
15 HOMEPAGE="http://www.radicale.org/"
16 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="fastcgi ldap ssl"
23 # the '>=' goes ok, as radicale supports _all_ other python version
24 # this includes all 3.* versions
25 RDEPEND="ssl? ( >=dev-lang/python-2.6.6[ssl] )
26 ldap? ( dev-python/python-ldap )
27 fastcgi? ( dev-python/flup )"
29 # radicale's authentication against PAM is not possible here:
30 # Gentoo has not included the package
31 # also it seems old, which is bad with respect to
32 # http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-1502
36 RDIR=/var/lib/radicale
37 LDIR=/var/log/radicale
42 enewuser radicale -1 -1 ${RDIR} radicale
47 sed -i -e "s:^\(filesystem_folder = \).*$:\1${RDIR}:g" \
49 sed -i -e "s;^\(args = ('/var/log/radicale\);\1/radicale.log;" \
55 # delete the useless .rst, so that it is not installed
61 newinitd "${FILESDIR}"/radicale.init.d radicale || die
65 dodir ${RDIR}; fowners radicale:radicale ${RDIR}
66 dodir ${LDIR}; fowners radicale:radicale ${LDIR}
70 doins config logging || die
73 insinto /usr/share/${PN}
75 use fastcgi && doins radicale.fcgi
79 einfo "Radicale now supports WSGI."
80 einfo "A sample wsgi-script has been put into ${ROOT}usr/share/${PN}."
81 use fastcgi && einfo "You will also find there an example fcgi-script."
83 distutils_pkg_postinst