From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9B7CC13835A for ; Wed, 28 Apr 2021 06:42:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C07BEE0821; Wed, 28 Apr 2021 06:42:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 98763E0821 for ; Wed, 28 Apr 2021 06:42:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 10A893410BB for ; Wed, 28 Apr 2021 06:42:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 53002732 for ; Wed, 28 Apr 2021 06:42:15 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1619592122.a3327bfde9e17d219080e9aeb7ec744c1b61a38b.juippis@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-r2.init.d www-apps/radicale/metadata.xml www-apps/radicale/radicale-2.1.12.ebuild X-VCS-Directories: www-apps/radicale/ www-apps/radicale/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: a3327bfde9e17d219080e9aeb7ec744c1b61a38b X-VCS-Branch: master Date: Wed, 28 Apr 2021 06:42:15 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d6a8b8f1-c07d-41b4-9410-e18e853284b1 X-Archives-Hash: d66ea59ab4688678fc7015867f0cb9ee commit: a3327bfde9e17d219080e9aeb7ec744c1b61a38b Author: Marco Scardovi scardovi com> AuthorDate: Fri Apr 16 12:03:12 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Apr 28 06:42:02 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3327bfd www-apps/radicale: add back radicale 2.1.12 Added 2.1.12 back due to bug: https://bugs.gentoo.org/783057 Waiting upstream for bugfix: https://github.com/Kozea/Radicale/issues/1142 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Marco Scardovi scardovi.com> Closes: https://github.com/gentoo/gentoo/pull/20407 Signed-off-by: Joonas Niilola gentoo.org> www-apps/radicale/Manifest | 1 + www-apps/radicale/files/radicale-r2.init.d | 27 +++++++++++ www-apps/radicale/metadata.xml | 5 ++- www-apps/radicale/radicale-2.1.12.ebuild | 72 ++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 1 deletion(-) diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest index 65bd4d52291..1f7f02d5411 100644 --- a/www-apps/radicale/Manifest +++ b/www-apps/radicale/Manifest @@ -1 +1,2 @@ +DIST radicale-2.1.12.tar.gz 123828 BLAKE2B 38ffb264b1f8e185642e0236821bd1a7714c34306f4d67d181a9130c7955b9f3a616547fa04a15781c2587bbdc5e7ea1eeab9da65790b72fb78cd83d78b0fd43 SHA512 98b5c1e6c71928859de9f497b7e968e56c659e9e5d8c559d4359718511d67a23d4daa9adca679f5f732ad531cb04d184b022cf2684fa5fdbfe24a35c92813968 DIST radicale-3.0.6.tar.gz 123817 BLAKE2B fa4b70c9920d518df6c939395eca857c237a75218b90ada45564f2d84266d65df12898e4efbb52905829948061e10e72b5442943fd5061a28447330ae8d491e8 SHA512 e9741547395fae8886ad84b6807422ebb196f5293d484f5f6136498058576cff697e28c117216f151d56494af83593347ceee40a6efa21272b803d0f301a396d diff --git a/www-apps/radicale/files/radicale-r2.init.d b/www-apps/radicale/files/radicale-r2.init.d new file mode 100644 index 00000000000..23da22d7fc9 --- /dev/null +++ b/www-apps/radicale/files/radicale-r2.init.d @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE=/run/radicale.pid + +depend() { + need localmount +} + +start() { + ebegin "Starting radicale" + start-stop-daemon --start --quiet --background \ + --user radicale \ + --umask 0027 \ + --stderr-logger /usr/bin/logger \ + --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 index 4c4f4b3022a..4912a745a44 100644 --- a/www-apps/radicale/metadata.xml +++ b/www-apps/radicale/metadata.xml @@ -11,6 +11,9 @@ - Radicale + Kozea/Radicale + + Enable bcrypt + diff --git a/www-apps/radicale/radicale-2.1.12.ebuild b/www-apps/radicale/radicale-2.1.12.ebuild new file mode 100644 index 00000000000..1db7cd93f32 --- /dev/null +++ b/www-apps/radicale/radicale-2.1.12.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 eutils systemd + +MY_PN="Radicale" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A simple CalDAV calendar server" +HOMEPAGE="https://radicale.org/" +SRC_URI="https://github.com/Kozea/Radicale/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+bcrypt" + +RDEPEND=" + acct-user/radicale + acct-group/radicale + >=dev-python/vobject-0.9.6[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.7.3[${PYTHON_USEDEP}] + sys-apps/util-linux + bcrypt? ( dev-python/passlib[bcrypt,${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +RDIR=/var/lib/${PN} + +python_install_all() { + rm README* || die + + # init file + newinitd "${FILESDIR}"/radicale-r2.init.d radicale + systemd_dounit "${FILESDIR}/${PN}.service" + + # directories + keepdir ${RDIR} + fowners ${PN}:${PN} ${RDIR} + fperms 0750 ${RDIR} + + # config file + insinto /etc/${PN} + doins config logging + + # fcgi and wsgi files + exeinto /usr/share/${PN} + doexe radicale.fcgi radicale.wsgi + + distutils-r1_python_install_all +} + +pkg_postinst() { + local _erdir="${EROOT}${RDIR}" + + einfo "A sample WSGI script has been put into ${EROOT}/usr/share/${PN}." + einfo "You will also find there an example FastCGI script." + if [[ $(stat --format="%U:%G:%a" "${_erdir}") != "${PN}:${PN}:750" ]] + then + ewarn "Unsafe file permissions detected on ${_erdir}. This probably comes" + ewarn "from an earlier version of this ebuild." + ewarn "To fix run:" + ewarn " \`chown -R ${PN}:${PN} ${_erdir}\`" + ewarn " \`chmod 0750 ${_erdir}\`" + ewarn " \`chmod -R o= ${_erdir}\`" + fi +}