From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B567F138CED for ; Mon, 15 Jun 2015 17:40:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BA8CE07D5; Mon, 15 Jun 2015 17:40:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C4F1E07D5 for ; Mon, 15 Jun 2015 17:40:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33274340D80 for ; Mon, 15 Jun 2015 17:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D891A29 for ; Mon, 15 Jun 2015 17:40:48 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1434390015.d7f94acd19fe34b1cbf81a0db94054b826308ee2.graaff@gentoo> Subject: [gentoo-commits] dev/graaff:master commit in: app-office/radicale/files/, app-office/radicale/ X-VCS-Repository: dev/graaff X-VCS-Files: app-office/radicale/ChangeLog app-office/radicale/Manifest app-office/radicale/files/radicale-0.10-config.patch app-office/radicale/radicale-0.10.ebuild X-VCS-Directories: app-office/radicale/files/ app-office/radicale/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: d7f94acd19fe34b1cbf81a0db94054b826308ee2 X-VCS-Branch: master Date: Mon, 15 Jun 2015 17:40:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 749e9f4c-02c2-4051-a16b-7adf4ea635bf X-Archives-Hash: b756c79b28f84909a7dd20b4a50f2008 commit: d7f94acd19fe34b1cbf81a0db94054b826308ee2 Author: Hans de Graaff degraaff org> AuthorDate: Mon Jun 15 17:40:15 2015 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Jun 15 17:40:15 2015 +0000 URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=d7f94acd Version bump. Package-Manager: portage-2.2.18 app-office/radicale/ChangeLog | 8 ++- app-office/radicale/Manifest | 1 + .../radicale/files/radicale-0.10-config.patch | 30 +++++++++ app-office/radicale/radicale-0.10.ebuild | 75 ++++++++++++++++++++++ 4 files changed, 113 insertions(+), 1 deletion(-) diff --git a/app-office/radicale/ChangeLog b/app-office/radicale/ChangeLog index 573946d..49ac643 100644 --- a/app-office/radicale/ChangeLog +++ b/app-office/radicale/ChangeLog @@ -1,7 +1,13 @@ # ChangeLog for app-office/radicale -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*radicale-0.10 (15 Jun 2015) + + 15 Jun 2015; Hans de Graaff +radicale-0.10.ebuild, + +files/radicale-0.10-config.patch: + Version bump. + *radicale-0.8 (06 Oct 2013) 06 Oct 2013; Hans de Graaff +radicale-0.8.ebuild, diff --git a/app-office/radicale/Manifest b/app-office/radicale/Manifest index b17b4f3..6522ce5 100644 --- a/app-office/radicale/Manifest +++ b/app-office/radicale/Manifest @@ -1,3 +1,4 @@ +DIST Radicale-0.10.tar.gz 43051 SHA256 0c6522f5751685fc159524ed7acee811ccb9a582db2adb6bbb4da99ce0103d64 SHA512 d223df0277e43081c9d5a95f30fb5ad5f852b24fc9493b089e36d82ee45ce1549b68e28bf8bdd12352bc3f087babc8f3b6d4e3fce87980e6ca5e3e75f4ace820 WHIRLPOOL 9e4b1beae792e47badb7b33bf343e442f92e9add9d3f877b8796f0c51eda448b0ed975bb9ad99d8d18a69c106813595a16ec108889cefffb6504c8fcae02450f DIST Radicale-0.7.1.tar.gz 35355 SHA256 36e076b8c54be9df61a8434e9670d852429dcae557fadb77de23e762258bb8e4 SHA512 00ad9788b39a33f94e656e9104e1a81a9052b182021ea486d865a826c8e8711d58476beb35b89fd46371166886d9a312f417db49d81293d0434af0261c1636e1 WHIRLPOOL a353dad90c3391e104b113479b975e4a29049e7c4301122c6ed064233cc757661ea56ee92fbfe21c97e2702787bd8f639ae93418d68ac3abacb744848d909fa1 DIST Radicale-0.7.tar.gz 34061 SHA256 f3d17d16bac4cbeedc5e66a8b711f29d51309e9264a9ef930b5d466503794c09 SHA512 7c7fb9ad0b9820d490f615af9193bbbbb204aee9f940264221d2e74ef72ffcc28bdb84b97dcd225efe117d346e386465c25c1798875831587033341e432716f0 WHIRLPOOL e6322e41c0ebcf19eb8874f574a797a4aa4c63822587be4c59ebce105c2b19b9e9bc1dc09890f5a5d0a5d95a6029ab6ab8ea0f82362d3f893a65d91d42482e22 DIST Radicale-0.8.tar.gz 39813 SHA256 e8c0df5239c22f2687a09eca7d53c318706648aff72b620849ed3f7540bc1941 SHA512 8b4db28b1fedc78e6d638a8e00dbbe0f37ada39686aae4afdf427461bbd7189d8222adf417fa5e546d9f6a6c7ff0c08eb3aa8609e9fb57c17a9e30161eabba85 WHIRLPOOL c705914db79503215f86e40545950e0fb07d439bc89372849865fece597eb863c28bd13255206a6e298308ba0a819b2e065ca05b592fc7bbb0c2c44896322138 diff --git a/app-office/radicale/files/radicale-0.10-config.patch b/app-office/radicale/files/radicale-0.10-config.patch new file mode 100644 index 0000000..ae5e81c --- /dev/null +++ b/app-office/radicale/files/radicale-0.10-config.patch @@ -0,0 +1,30 @@ +From 6887e996ad771d22659c0eb8cbca94c936fdb10a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= +Date: Sun, 15 Sep 2013 14:02:32 +0200 +Subject: Fix the config for Gentoo's default needs. + + * Set pathes + * Set rights.type to 'owner_only' to model pre-0.8 behavior + (None means 'everyone is allowed everything') + * Remove 'public_users' and 'private_users' as they are obsolete. +--- + config | 13 ++++--------- + logging | 2 +- + 2 files changed, 5 insertions(+), 10 deletions(-) + +diff --git a/config b/config +index 453a45e..10c1595 100644 +--- a/logging ++++ b/logging +@@ -45,7 +45,7 @@ formatter = simple + [handler_file] + # File handler + class = FileHandler +-args = ('/var/log/radicale',) ++args = ('/var/log/radicale/radicale.log',) + formatter = full + + +-- +1.8.1.5 + diff --git a/app-office/radicale/radicale-0.10.ebuild b/app-office/radicale/radicale-0.10.ebuild new file mode 100644 index 0000000..553f04b --- /dev/null +++ b/app-office/radicale/radicale-0.10.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +# radicale also supports python3_{2,3} +# but python-ldap and flup are blocking here +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="ssl?" + +inherit distutils-r1 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 sql ssl" + +RDEPEND="ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) + fastcgi? ( dev-python/flup[${PYTHON_USEDEP}] ) + sql? ( dev-python/sqlalchemy[${PYTHON_USEDEP}] )" + +# 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 + +PATCHES=( "${FILESDIR}"/${P}-config.patch ) + +pkg_setup() { + enewgroup radicale + enewuser radicale -1 -1 ${RDIR} radicale +} + +python_install_all() { + # delete the useless .rst, so that it is not installed + rm README.rst + + # 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 + + distutils-r1_python_install_all +} + +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." +}