mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
www-apps/radicale: drop old
Signed-off-by: Henning Schild <henning@hennsch.de> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1158 Merges: https://codeberg.org/gentoo/gentoo/pulls/1158 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
599c61752c
commit
2b64e4a447
@@ -1,3 +1,2 @@
|
||||
DIST Radicale-3.7.3.gh.tar.gz 338782 BLAKE2B 860b6f99b82c8e5d3506652b9ebd1c0338e6429797a2d9cb0eb90c4405000f3f7297621dbe866cb1e86cca65109f7e480f9c8df27d359bc3464698cc991cc531 SHA512 2e32bd6205d1712e724ed576d39296059f86bdbefed3853c27fe9f176cf8237f7010b9716c50e516d413261b0908af8c0a16559c80826ea07a0bd16463610e3b
|
||||
DIST Radicale-3.7.4.gh.tar.gz 340903 BLAKE2B 4f84c51b2b5bbbe713b4a4f8ba7a8452b13bf606f48b4d8dd9118cfa0b0a084e1f76c06f6a49455140ca94c70458d27972eb13ca362d48a88da8d56f14192149 SHA512 f592e0a854ef884de208b2a8d4220889b8d8fa907b2e53ac090935a3ad0add3e5c4b98230a0166c320404136d07bc115c97af5234a02ccecafa12484e38f0850
|
||||
DIST Radicale-3.7.5.gh.tar.gz 355491 BLAKE2B 9cd48c9800bad253842f6961f07ae0e02a74a9209df711a99fc72c71a7c6b18521b7b832fe7c3ba32461d44a498e35d527e72a71e1b61eaf35f4b64173891555 SHA512 7af2f6d304839be33f3736a25ff4b25c1401019e86812e1d2f76691cd9774a7ece9cd41b340ddafda7705586eddc5e9b6874e1f7f169a9144e286e9aeac50e21
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit distutils-r1 eapi9-ver optfeature systemd
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="A simple CalDAV calendar server"
|
||||
HOMEPAGE="https://radicale.org/"
|
||||
SRC_URI="
|
||||
https://github.com/Kozea/Radicale/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=acct-user/radicale-0-r2
|
||||
acct-group/radicale
|
||||
dev-python/defusedxml[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
dev-python/vobject[${PYTHON_USEDEP}]
|
||||
sys-apps/util-linux
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/waitress[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
RDIR=/var/lib/"${PN}"
|
||||
|
||||
DOCS=( DOCUMENTATION.md CHANGELOG.md )
|
||||
|
||||
python_test() {
|
||||
epytest -o addopts= radicale/tests/
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
rm README* || die
|
||||
# init file
|
||||
newinitd "${FILESDIR}"/radicale-r4.init.d radicale
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
# directories
|
||||
keepdir "${RDIR}"
|
||||
fperms 0750 "${RDIR}"
|
||||
fowners "${PN}:${PN}" "${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}"
|
||||
|
||||
if ver_replacing -lt "3.5.0"; then
|
||||
ewarn ""
|
||||
ewarn "Since 3.5.0 the default [auth] type is \"denyall\". You need to"
|
||||
ewarn "change your config if you used the default type so far!"
|
||||
ewarn ""
|
||||
fi
|
||||
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 ""
|
||||
ewarn "Unsafe file permissions detected on ${_erdir}."
|
||||
ewarn "This probably comes 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
|
||||
|
||||
optfeature "Publish changes to rabbitmq" dev-python/pika
|
||||
optfeature "LDAP/LDAPS authentication" dev-python/ldap3 dev-python/python-ldap
|
||||
optfeature "bcrypt password hashing" dev-python/bcrypt
|
||||
optfeature "argon2 password hashing" dev-python/argon2-cffi
|
||||
}
|
||||
Reference in New Issue
Block a user