From 26c1fcf81f7ca370f4cd5e2fc8ef6c59b197d3d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 9 Mar 2013 15:51:21 +0100 Subject: Update radicale ebuild --- app-office/radicale/Manifest | 2 +- app-office/radicale/radicale-0.7.1-r1.ebuild | 84 ++++++++++++++++++++++++++++ app-office/radicale/radicale-0.7.1.ebuild | 83 --------------------------- 3 files changed, 85 insertions(+), 84 deletions(-) create mode 100644 app-office/radicale/radicale-0.7.1-r1.ebuild delete mode 100644 app-office/radicale/radicale-0.7.1.ebuild diff --git a/app-office/radicale/Manifest b/app-office/radicale/Manifest index 8420df7..d3f59b5 100644 --- a/app-office/radicale/Manifest +++ b/app-office/radicale/Manifest @@ -1,3 +1,3 @@ AUX radicale.init.d 576 SHA256 695b1e49b94d93586838db454388e19423bf64a6e7f3b623518b23de5d686206 SHA512 96567a16f4fd6d3b0fb7258b77b25ea903e2fa55b1cedca91118d45285628bdd678a67092bc23ff0c8df0078c44574cbdcfd999e34f32513962660155edcfaee WHIRLPOOL ba6416158fbb6ed4d64835c310f50548d480e697cddaefe8807ef83d05c58af138afa9d7f475cde729859e0e1eb023cc59e04b1558aeedd095f57fcdf6f20605 DIST Radicale-0.7.1.tar.gz 35355 SHA256 36e076b8c54be9df61a8434e9670d852429dcae557fadb77de23e762258bb8e4 SHA512 00ad9788b39a33f94e656e9104e1a81a9052b182021ea486d865a826c8e8711d58476beb35b89fd46371166886d9a312f417db49d81293d0434af0261c1636e1 WHIRLPOOL a353dad90c3391e104b113479b975e4a29049e7c4301122c6ed064233cc757661ea56ee92fbfe21c97e2702787bd8f639ae93418d68ac3abacb744848d909fa1 -EBUILD radicale-0.7.1.ebuild 1964 SHA256 5fab56fddf69db2ec176fad78912217cca5fc1e374f3af6bc31d34fc30cab5fd SHA512 e20e3faf2d65f7e880d03d79c98324c1872665c43e4205f510969c0f92d7df1176c99e6e8f2e84d2fcb36d76a9c6eed078aeb6465a9cb5779cd5e3163601cb17 WHIRLPOOL 9e55316330deff3cbdcc8ce1df7be6f0471e178d7dd8dc76397e3341331a5d3d82d2f7a41a2d140d1fd98043b4da7ebb0955f44678b405c9518c5492a9a147eb +EBUILD radicale-0.7.1-r1.ebuild 1982 SHA256 092833bebe4e7d486aa2d800fbd10588c70714717c80f1565b0a483f5489dcdb SHA512 4dbff3bd2e63c124b140b37d0a6964877ac68f7a33f45f18087466e335bbc73325d55149292984dec23012a79aa193d48c2df4425d9dc7ebb0ca072bf934f504 WHIRLPOOL cf62ba565bbf57171c0bbb1715aeeffa2d6c2851843d9d5969dd23f6cbd0372fd8ac6ae13e7826ef028613ee5ece914f9174af5f521c7139b71843c8f6adc294 diff --git a/app-office/radicale/radicale-0.7.1-r1.ebuild b/app-office/radicale/radicale-0.7.1-r1.ebuild new file mode 100644 index 0000000..c85f5f9 --- /dev/null +++ b/app-office/radicale/radicale-0.7.1-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +PYTHON_DEPEND="*:2.6" +SUPPORT_PYTHON_ABIS=1 + +inherit distutils user + +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 )" + +# radicale's authentication against PAM is not possible here: +# Gentoo has not included the package +# also it seems old, which is bad with respect to +# http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-1502 + +S=${WORKDIR}/${MY_P} + +RDIR=/var/lib/radicale +LDIR=/var/log/radicale + +pkg_setup() { + python_pkg_setup + enewgroup radicale + enewuser radicale -1 -1 ${RDIR} radicale +} + +src_prepare() { + # fix pathes + sed -i -e "s:^\(filesystem_folder = \).*$:\1${RDIR}:g" \ + config || die + sed -i -e "s;^\(args = ('/var/log/radicale\);\1/radicale.log;" \ + logging || die + distutils_src_prepare +} + +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 + + # directories + diropts -m0750 + dodir ${RDIR}; fowners radicale:radicale ${RDIR} + dodir ${LDIR}; fowners radicale:radicale ${LDIR} + + # 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." + + distutils_pkg_postinst +} diff --git a/app-office/radicale/radicale-0.7.1.ebuild b/app-office/radicale/radicale-0.7.1.ebuild deleted file mode 100644 index 4309e40..0000000 --- a/app-office/radicale/radicale-0.7.1.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2012 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 user - -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 )" - -# radicale's authentication against PAM is not possible here: -# Gentoo has not included the package -# also it seems old, which is bad with respect to -# http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-1502 - -S=${WORKDIR}/${MY_P} - -RDIR=/var/lib/radicale -LDIR=/var/log/radicale - -pkg_setup() { - enewgroup radicale - enewuser radicale -1 -1 ${RDIR} radicale -} - -src_prepare() { - # fix pathes - sed -i -e "s:^\(filesystem_folder = \).*$:\1${RDIR}:g" \ - config || die - sed -i -e "s;^\(args = ('/var/log/radicale\);\1/radicale.log;" \ - logging || die - distutils_src_prepare -} - -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 - - # directories - diropts -m0750 - dodir ${RDIR}; fowners radicale:radicale ${RDIR} - dodir ${LDIR}; fowners radicale:radicale ${LDIR} - - # 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." - - distutils_pkg_postinst -} -- cgit v1.2.3