added latest-and-greatest version of radicale!

This commit is contained in:
Manuel Friedli 2011-11-12 17:49:14 +00:00
parent 5b4e576cd5
commit e2d3a37476
3 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,3 @@
AUX radicale.init.d 550 RMD160 f1f6aa919952b744900c781b8d6cd9283bc44534 SHA1 3c2043b9f2680b14969bd7f3727e3df85c7f9c48 SHA256 1b28de6c1bc2c6119eb654622713fdd2c16d89105940c6b55d2bc081fbb2fd2c
DIST Radicale-0.6.3.tar.gz 30993 RMD160 e7ec0be50a164b0bffa46688e47a3ada2d56e697 SHA1 de478e41a61ccf039e1e1da603ef275f500e44f5 SHA256 bd2c2058e1222735981639206eade3082f6ff76a0055bd010ae0f8b2b33ee8f6
EBUILD radicale-0.6.3.ebuild 1244 RMD160 0e6141bf71f76c5bb0167cb0e09ae3563b96813f SHA1 c6906f98667806ac6b48a1182399136b2c345865 SHA256 c877b26955737f4042bd3b12744736993829f17ffd42eeab30ad802ddccfb5b7

View File

@ -0,0 +1,26 @@
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
PIDFILE=/var/run/radicale.pid
depend() {
use net
need localmount
}
start() {
ebegin "Starting radicale"
start-stop-daemon --start --quiet --background \
--pidfile ${PIDFILE} --make-pidfile \
--exec /usr/bin/radicale -- --foreground
eend $?
}
stop() {
ebegin "Stopping radicale"
start-stop-daemon --stop --quiet \
--pidfile ${PIDFILE}
eend $?
}

View File

@ -0,0 +1,54 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
PYTHON_DEPEND="*:2.6"
SUPPORT_PYTHON_ABIS=1
inherit distutils
MY_PN="Radicale"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A simple CalDAV calendar server"
HOMEPAGE="http://www.radicale.org/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="fastcgi ldap ssl"
# the '>=' goes ok, as radicale supports _all_ other python version
# this includes all 3.* versions
RDEPEND="ssl? ( >=dev-lang/python-2.6.6[ssl] )
ldap? ( dev-python/python-ldap )
fastcgi? ( dev-python/flup )"
S=${WORKDIR}/${MY_P}
src_install() {
# delete the useless .rst, so that it is not installed
rm README.rst
distutils_src_install
# init file
newinitd "${FILESDIR}"/radicale.init.d radicale || die
# config file
insinto /etc/${PN}
doins config logging || die
# fcgi and wsgi files
insinto /usr/share/${PN}
doins radicale.wsgi
use fastcgi && doins radicale.fcgi
}
pkg_postinst() {
einfo "Radicale now supports WSGI."
einfo "A sample wsgi-script has been put into ${ROOT}usr/share/${PN}."
use fastcgi && einfo "You will also find there an example fcgi-script."
}