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 A74F71382C5 for ; Thu, 11 Feb 2021 07:23:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF017E0CA1; Thu, 11 Feb 2021 07:23:50 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 AACE8E0CA1 for ; Thu, 11 Feb 2021 07:23:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 69A14340F8A for ; Thu, 11 Feb 2021 07:23:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A4CD153 for ; Thu, 11 Feb 2021 07:23:47 +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: <1613028220.281d76cf0404bf8eddfd7bb706d642657f20f11a.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: acct-group/radicale/, www-apps/radicale/, acct-user/radicale/ X-VCS-Repository: repo/gentoo X-VCS-Files: acct-group/radicale/metadata.xml acct-group/radicale/radicale-0-r1.ebuild acct-user/radicale/metadata.xml acct-user/radicale/radicale-0-r1.ebuild www-apps/radicale/Manifest www-apps/radicale/radicale-2.1.12-r3.ebuild X-VCS-Directories: acct-user/radicale/ www-apps/radicale/ acct-group/radicale/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 281d76cf0404bf8eddfd7bb706d642657f20f11a X-VCS-Branch: master Date: Thu, 11 Feb 2021 07:23:47 +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: b0529fc2-dd82-4685-8c4e-f872cde46011 X-Archives-Hash: c27075154c1412ab6f3caea2a5171fd2 commit: 281d76cf0404bf8eddfd7bb706d642657f20f11a Author: Marc Cramer posteo net> AuthorDate: Wed Feb 3 20:16:20 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Feb 11 07:23:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281d76cf www-apps/radicale: bump to 2.1.12-r3 Signed-off-by: Marc Cramer posteo.net> Closes: https://github.com/gentoo/gentoo/pull/19259 Signed-off-by: Joonas Niilola gentoo.org> acct-group/radicale/metadata.xml | 5 ++ acct-group/radicale/radicale-0-r1.ebuild | 9 +++ acct-user/radicale/metadata.xml | 5 ++ acct-user/radicale/radicale-0-r1.ebuild | 12 ++++ www-apps/radicale/Manifest | 1 + www-apps/radicale/radicale-2.1.12-r3.ebuild | 98 +++++++++++++++++++++++++++++ 6 files changed, 130 insertions(+) diff --git a/acct-group/radicale/metadata.xml b/acct-group/radicale/metadata.xml new file mode 100644 index 00000000000..7a38bb90096 --- /dev/null +++ b/acct-group/radicale/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/acct-group/radicale/radicale-0-r1.ebuild b/acct-group/radicale/radicale-0-r1.ebuild new file mode 100644 index 00000000000..a2150f5982d --- /dev/null +++ b/acct-group/radicale/radicale-0-r1.ebuild @@ -0,0 +1,9 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +DESCRIPTION="Group for the www-apps/radicale" +ACCT_GROUP_ID=327 diff --git a/acct-user/radicale/metadata.xml b/acct-user/radicale/metadata.xml new file mode 100644 index 00000000000..7a38bb90096 --- /dev/null +++ b/acct-user/radicale/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/acct-user/radicale/radicale-0-r1.ebuild b/acct-user/radicale/radicale-0-r1.ebuild new file mode 100644 index 00000000000..b31bbb77219 --- /dev/null +++ b/acct-user/radicale/radicale-0-r1.ebuild @@ -0,0 +1,12 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +DESCRIPTION="User for www-apps/radicale" +ACCT_USER_ID=327 +ACCT_USER_GROUPS=( radicale ) + +acct-user_add_deps diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest index 912cc59fe18..4238d899fb3 100644 --- a/www-apps/radicale/Manifest +++ b/www-apps/radicale/Manifest @@ -1 +1,2 @@ DIST Radicale-2.1.11.tar.gz 76490 BLAKE2B 35578b693a32d4a77f8ff1c93cbb8fb63fd8dabf9fde79cd928d4afa6e059fe836840ca6a33621c13e9421a69bfb25cbb59688ba83bed62003ef3b56b54804b1 SHA512 e85f12664d3db6b911dd534eaddd15c498ca4f641cc15523644300aca8b1ef3f6fd4d9645857235502f03a7903111905537b04f9a6fdbde1a60fbb720d377733 +DIST Radicale-2.1.12.tar.gz 109781 BLAKE2B 743eaeffab43f2efcfc798f84d00fee40a09609beeb555e3afe3c9f4c54d8e0ce3a7eba4c1e14d6702775ab7d156b085408ee968b0d53437982cf2ea7cb4653c SHA512 a708fb1269f7ba8c9e351e101f613a8adb18c12b1239b832ed9e0287476f30aa7ded30f9bc259da9c4b5f3aefe90bbf9980d0d08d98dd07b79cd19930b0e204c diff --git a/www-apps/radicale/radicale-2.1.12-r3.ebuild b/www-apps/radicale/radicale-2.1.12-r3.ebuild new file mode 100644 index 00000000000..85a6b5f135b --- /dev/null +++ b/www-apps/radicale/radicale-2.1.12-r3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{7,8} ) + +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="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+bcrypt" + +RDEPEND=" + acct-user/radicale + acct-group/radicale + sys-apps/util-linux + >=dev-python/vobject-0.9.6[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.7.3[${PYTHON_USEDEP}] + bcrypt? ( dev-python/passlib[bcrypt,${PYTHON_USEDEP}] )" + +S=${WORKDIR}/${MY_P} + +RDIR=/var/lib/${PN} + +#pkg_pretend() { +# if [[ -f ${RDIR}/.props && ${MERGE_TYPE} != buildonly ]]; then +# eerror "It looks like you have a version 1 database in ${RDIR}." +# eerror "You must convert this database to version 2 format before upgrading." +# eerror "You may want to back up the old database before migrating." +# eerror +# eerror "If you have kept the Gentoo-default database configuration, this will work:" +# eerror "1. Stop any running instance of Radicale." +# eerror "2. Run \`radicale --export-storage ~/radicale-exported\`." +# eerror "3. Run \`chown -R radicale: ~/radicale-exported\`" +# eerror "4. Run \`mv \"${RDIR}\" \"${RDIR}.old\"\`." +# eerror "5. Install Radicale version 2." +# eerror "6. Run \`mv ~/radicale-exported \"${RDIR}/collections\"\`." +# eerror +# eerror "For more details, or if you are have a more complex configuration," +# eerror "please see the migration guide: https://radicale.org/1to2/" +# eerror "If you do a custom migration, please ensure the database is cleaned out of" +# eerror "${RDIR}, including the hidden .props file." +# die +# fi +#} + +#pkg_setup() { +# enewgroup ${PN} +# enewuser ${PN} -1 -1 ${RDIR} ${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 +}