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 8AB6F13835A for ; Sat, 27 Mar 2021 17:01:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92474E0823; Sat, 27 Mar 2021 17:01:46 +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 66A0AE0823 for ; Sat, 27 Mar 2021 17:01:46 +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 28D30340D55 for ; Sat, 27 Mar 2021 17:01:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 595CA592 for ; Sat, 27 Mar 2021 17:01:43 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1616863347.d9a66fab5eecfcdab4730e5164957c939741fcf8.sam@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-3.0.6.ebuild X-VCS-Directories: www-apps/radicale/ www-apps/radicale/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d9a66fab5eecfcdab4730e5164957c939741fcf8 X-VCS-Branch: master Date: Sat, 27 Mar 2021 17:01:43 +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: ce343d89-3362-4c69-a091-cb561bd7c212 X-Archives-Hash: 8b2cd668f220adafedf84daa55eabe8b commit: d9a66fab5eecfcdab4730e5164957c939741fcf8 Author: scardracs scardovi com> AuthorDate: Sat Mar 27 12:52:13 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 27 16:42:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9a66fab www-apps/radicale: bump to 3.0.6 Bumped to new version and added dev-python/defusedxml as RDEPEND. Tested against python3.8/3.9 and gcc10. Not tested with musl. Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Marco Scardovi scardovi.com> Closes: https://github.com/gentoo/gentoo/pull/20143 Signed-off-by: Sam James gentoo.org> www-apps/radicale/Manifest | 1 + www-apps/radicale/files/radicale-r2.init.d | 2 +- www-apps/radicale/metadata.xml | 23 ++++++---- www-apps/radicale/radicale-3.0.6.ebuild | 73 ++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+), 9 deletions(-) diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest index 9147cf28c9a..158b1ea3b9c 100644 --- a/www-apps/radicale/Manifest +++ b/www-apps/radicale/Manifest @@ -1 +1,2 @@ DIST Radicale-2.1.12.tar.gz 109781 BLAKE2B 743eaeffab43f2efcfc798f84d00fee40a09609beeb555e3afe3c9f4c54d8e0ce3a7eba4c1e14d6702775ab7d156b085408ee968b0d53437982cf2ea7cb4653c SHA512 a708fb1269f7ba8c9e351e101f613a8adb18c12b1239b832ed9e0287476f30aa7ded30f9bc259da9c4b5f3aefe90bbf9980d0d08d98dd07b79cd19930b0e204c +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 index 00f85d29e0e..6e7d734ebef 100644 --- a/www-apps/radicale/files/radicale-r2.init.d +++ b/www-apps/radicale/files/radicale-r2.init.d @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 PIDFILE=/run/radicale.pid diff --git a/www-apps/radicale/metadata.xml b/www-apps/radicale/metadata.xml index 6d1efe9490c..a62d044f7fd 100644 --- a/www-apps/radicale/metadata.xml +++ b/www-apps/radicale/metadata.xml @@ -1,12 +1,19 @@ - - - - Radicale - - - Depend on passlib to enable bcrypt and md5 authentication methods - + + marco@scardovi.com + Marco Scardovi + + + proxy-maint@gentoo.org + Proxy Maintainers + + + + Radicale + + + Depend on passlib to enable bcrypt and md5 authentication methods + diff --git a/www-apps/radicale/radicale-3.0.6.ebuild b/www-apps/radicale/radicale-3.0.6.ebuild new file mode 100644 index 00000000000..9f347464292 --- /dev/null +++ b/www-apps/radicale/radicale-3.0.6.ebuild @@ -0,0 +1,73 @@ +# 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 + +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" + +MY_P="Radicale-${PV}" + +RDEPEND=" + acct-user/radicale + acct-group/radicale + dev-python/defusedxml + >=dev-python/vobject-0.9.6[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.1[${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 + + # fcgi and wsgi files + exeinto /usr/share/${PN} + doexe 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 +}