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 3ED1D58973 for ; Tue, 26 Jan 2016 20:06:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E2AD21C01D; Tue, 26 Jan 2016 20:06:12 +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 208AD21C01D for ; Tue, 26 Jan 2016 20:06:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C08EF340A99 for ; Tue, 26 Jan 2016 20:06:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25148C0 for ; Tue, 26 Jan 2016 20:06:09 +0000 (UTC) From: "Maxim Koltsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maxim Koltsov" Message-ID: <1453838746.3ab430380cf9887c09753890e28bfb96c05e367a.maksbotan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/radicale/files/, www-apps/radicale/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/radicale/Manifest www-apps/radicale/files/radicale-1.1.1-config.patch www-apps/radicale/files/radicale.init.d www-apps/radicale/metadata.xml www-apps/radicale/radicale-1.1.1.ebuild X-VCS-Directories: www-apps/radicale/files/ www-apps/radicale/ X-VCS-Committer: maksbotan X-VCS-Committer-Name: Maxim Koltsov X-VCS-Revision: 3ab430380cf9887c09753890e28bfb96c05e367a X-VCS-Branch: master Date: Tue, 26 Jan 2016 20:06:09 +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: 8b5784cb-48dc-4c2a-b687-3f7ce438d2a4 X-Archives-Hash: c3ca11de926ef822379c774839614efb commit: 3ab430380cf9887c09753890e28bfb96c05e367a Author: Maxim Koltsov gentoo org> AuthorDate: Tue Jan 26 20:02:09 2016 +0000 Commit: Maxim Koltsov gentoo org> CommitDate: Tue Jan 26 20:05:46 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ab43038 www-apps/radicale: add to tree, reworking Sunrise ebuild Package-Manager: portage-2.2.27 www-apps/radicale/Manifest | 1 + .../radicale/files/radicale-1.1.1-config.patch | 34 ++++++++++ www-apps/radicale/files/radicale.init.d | 27 ++++++++ www-apps/radicale/metadata.xml | 8 +++ www-apps/radicale/radicale-1.1.1.ebuild | 73 ++++++++++++++++++++++ 5 files changed, 143 insertions(+) diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest new file mode 100644 index 0000000..ab96bab --- /dev/null +++ b/www-apps/radicale/Manifest @@ -0,0 +1 @@ +DIST Radicale-1.1.1.tar.gz 47174 SHA256 e2c9812913c464ab88ae1f66b29e81f87a4cc6ee1c94d167b33508c530dab4b0 SHA512 dc251d8fa4d347c2bbcf472b7a2da94d674f858a007fec1d74774cd1f3ae43eb2d5902ed45762638ec49546b8ee1f66446d07b50fc0ff6595deb67ea07f87af2 WHIRLPOOL 315977a0bed6c1d5bfac24617b23e791d6c306658a14a478364dde61b5df5ac4136be18139d3edb7ab554f40a1d3cfce367770dab4c023868bb476f34e28a3b6 diff --git a/www-apps/radicale/files/radicale-1.1.1-config.patch b/www-apps/radicale/files/radicale-1.1.1-config.patch new file mode 100644 index 0000000..4eb286f --- /dev/null +++ b/www-apps/radicale/files/radicale-1.1.1-config.patch @@ -0,0 +1,34 @@ +diff --git a/config b/config +index 453a45e..10c1595 100644 +--- a/config ++++ b/config +@@ -146,7 +146,7 @@ http_password_parameter = + #custom_handler = + + # File for rights management from_file +-#file = ~/.config/radicale/rights ++file = /etc/radicale/rights + + + [storage] +@@ -163,7 +163,7 @@ file = ~/.config/radicale/rights + #custom_handler = + + # Folder for storing local collections, created if not present +-#filesystem_folder = ~/.config/radicale/collections ++filesystem_folder = /var/lib/radicale/ + + # Database URL for SQLAlchemy + # dialect+driver://user:password@host/dbname[?key=value..] +diff --git a/logging b/logging +--- 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 + + diff --git a/www-apps/radicale/files/radicale.init.d b/www-apps/radicale/files/radicale.init.d new file mode 100644 index 0000000..8e3e94a --- /dev/null +++ b/www-apps/radicale/files/radicale.init.d @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2012 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 \ + --user radicale \ + --pidfile ${PIDFILE} --make-pidfile \ + --exec /usr/bin/radicale -- --foreground + eend $? +} + +stop() { + ebegin "Stopping radicale" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} + eend $? +} diff --git a/www-apps/radicale/metadata.xml b/www-apps/radicale/metadata.xml new file mode 100644 index 0000000..fe24726 --- /dev/null +++ b/www-apps/radicale/metadata.xml @@ -0,0 +1,8 @@ + + + + + maksbotan@gentoo.org + Maxim Koltsov + + diff --git a/www-apps/radicale/radicale-1.1.1.ebuild b/www-apps/radicale/radicale-1.1.1.ebuild new file mode 100644 index 0000000..6ac4c3b --- /dev/null +++ b/www-apps/radicale/radicale-1.1.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) + +inherit eutils 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="~amd64 ~x86" +IUSE="" + +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() { + rm README* || die + + # init file + newinitd "${FILESDIR}"/radicale.init.d radicale + + # directories + diropts -m0750 + dodir ${RDIR} + fowners radicale:radicale ${RDIR} + diropts -m0755 + dodir ${LDIR} + fowners radicale:radicale ${LDIR} + + # config file + insinto /etc/${PN} + doins config logging + + # fcgi and wsgi files + exeinto /usr/share/${PN} + doexe radicale.wsgi + doexe radicale.fcgi + + distutils-r1_python_install_all +} + +pkg_postinst() { + einfo "A sample WSGI script has been put into ${ROOT}usr/share/${PN}." + einfo "You will also find there an example FastCGI script." + + einfo "Radicale supports different authentication backends that depend on external libraries." + einfo "Please install" + optfeature "LDAP auth" dev-python/python-ldap + optfeature "PAM auth" dev-python/python-pam + optfeature "HTTP auth" dev-python/requests + optfeature "FastCGI mode" dev-python/flup + optfeature "Database storage backend" dev-python/sqlalchemy + einfo "Please note that some of these libraries are Python 2 only." +}