diff options
author | Marco Scardovi <marco@scardovi.com> | 2021-04-16 14:03:12 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-04-28 09:42:02 +0300 |
commit | a3327bfde9e17d219080e9aeb7ec744c1b61a38b (patch) | |
tree | 25ea6e869f09e2b3b8fd37c1256a3352a4582d52 /www-apps | |
parent | net-misc/unison: remove :2.48 (diff) | |
download | gentoo-a3327bfde9e17d219080e9aeb7ec744c1b61a38b.tar.gz gentoo-a3327bfde9e17d219080e9aeb7ec744c1b61a38b.tar.bz2 gentoo-a3327bfde9e17d219080e9aeb7ec744c1b61a38b.zip |
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 <marco@scardovi.com>
Closes: https://github.com/gentoo/gentoo/pull/20407
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/radicale/Manifest | 1 | ||||
-rw-r--r-- | www-apps/radicale/files/radicale-r2.init.d | 27 | ||||
-rw-r--r-- | www-apps/radicale/metadata.xml | 5 | ||||
-rw-r--r-- | www-apps/radicale/radicale-2.1.12.ebuild | 72 |
4 files changed, 104 insertions, 1 deletions
diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest index 65bd4d52291c..1f7f02d5411b 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 000000000000..23da22d7fc9e --- /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 4c4f4b3022ae..4912a745a440 100644 --- a/www-apps/radicale/metadata.xml +++ b/www-apps/radicale/metadata.xml @@ -11,6 +11,9 @@ </maintainer> <stabilize-allarches/> <upstream> - <remote-id type="pypi">Radicale</remote-id> + <remote-id type="github">Kozea/Radicale</remote-id> </upstream> + <use> + <flag name="bcrypt">Enable bcrypt</flag> + </use> </pkgmetadata> 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 000000000000..1db7cd93f327 --- /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 +} |