From 2aaeaa199bfdd8bb9c6f4c3954004fce14060c5d Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Tue, 5 Mar 2013 14:59:38 +0800 Subject: app-office/radicale: Add ~amd64 keyword, EAPI bump --- 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 (limited to 'app-office') diff --git a/app-office/radicale/Manifest b/app-office/radicale/Manifest index 638c05d64..0df78f4f5 100644 --- a/app-office/radicale/Manifest +++ b/app-office/radicale/Manifest @@ -1,5 +1,5 @@ AUX radicale.init.d 576 SHA256 8090c06d040f3f3cde4d031920136b8f9db85010566fcfe9036a764223fb09bd SHA512 906b0a525c44df5872f51493567b51f4ab83fd4879407275ecfc43c19efa41c40b6a5fd41612972349b1eb00357337be07ee2013a18e6673e2600b1f04fb40bf WHIRLPOOL 0791d62f25975205c1d48b04749468d3dd224980fac7625ebdf4f0def51fa00a12e02b42b3409e6b280d434a04412dbc9b7e5849430cc22f7192d386a2f41795 DIST Radicale-0.7.1.tar.gz 35355 SHA256 36e076b8c54be9df61a8434e9670d852429dcae557fadb77de23e762258bb8e4 SHA512 00ad9788b39a33f94e656e9104e1a81a9052b182021ea486d865a826c8e8711d58476beb35b89fd46371166886d9a312f417db49d81293d0434af0261c1636e1 WHIRLPOOL a353dad90c3391e104b113479b975e4a29049e7c4301122c6ed064233cc757661ea56ee92fbfe21c97e2702787bd8f639ae93418d68ac3abacb744848d909fa1 -EBUILD radicale-0.7.1.ebuild 1964 SHA256 07f1423f904631e0859908ad32b6596f0a9f4aa00e05f3854767f2546def8ac1 SHA512 2a1646b3ded6f65af1b8017fd65e86051647b10075aad2601c69c2ac85ba0aa27643d7745b004cb616b749b30f3e0b6780cc4b0eb277fa715cfadab2e5018cb5 WHIRLPOOL 3600a240975e399f82568d6d67e40635d9efbb49ec262919a73961fce80f22e2aef812ade53a735a5f87f6dcec7cb9facb97eaa97568276ab14a86340bbfa014 +EBUILD radicale-0.7.1-r1.ebuild 1984 SHA256 0a1561c3f6c7b79c6d672f9f2f69374f5bafccfce04ae8508af4a99081833777 SHA512 a3827b51068e14639c2bffa5b1bf9100a76efc90df98a31374bc9dea546d416c463a30ea8c4d1ffa86afba0e3d1b862d2cbfac0e2d10cd5d362f49976900df6a WHIRLPOOL f75a2b18197d9e29f261ba5a0d82ef19034dd39eb12e60aafb4844d97e1cbf6fd3279cc18b9bedb840d066d1353b436ed5eb2070a123a9dabc088fbd8cb35031 MISC ChangeLog 1173 SHA256 693ed7790858194ae1e73e56e6eb1956fcba5b15da8fe9f7fbc9366986f94f4c SHA512 ab10b6ecba025c539143ccd019d50e83346c8de85202ea85ffc3ac689629de57122120a3890284eb1842b149cd745a14d362841623cd216374ea3cc6cf582a29 WHIRLPOOL 8e2110af503105919edd3ba4fee828ea5ce88d2f4e8eda4a2590a839156ec0b17835756bb5c761158096293b143b313abb8bfab13c5bf4aba8a4e90d26c51aaa MISC metadata.xml 208 SHA256 c4841c87f0c2b9b5e679a27dc72180be8d508fb3f5df0fbab2ec2c805c0a6d82 SHA512 21d90d4547c76c80e50e134359dfbec42b158bbc16e4741738bdde5f67b7926d158dae1905948a477405b74e754ce4ed63cad910f220a709db8dfccf160e5288 WHIRLPOOL 33ec53f42c7a8c4c419989bd94e083c417574463e19c9c1322e6b96d0f5a6a52e3dd69fbedf2d11a7a77d24a93b81f3a604b6b33cac62548389537bf3e42df0e 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 000000000..a56152ce2 --- /dev/null +++ b/app-office/radicale/radicale-0.7.1-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2012 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="~amd64 ~x86" +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 6343a6f92..000000000 --- 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="~amd64 ~x86" -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-65-gdbad