mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
www-apps/radicale: remove old
Closes: https://github.com/gentoo/gentoo/pull/42044 Signed-off-by: Henning Schild <henning@hennsch.de> Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
committed by
Yixun Lan
parent
3d43b0698f
commit
dd855f0363
@@ -1,4 +1,2 @@
|
||||
DIST Radicale-3.4.1.gh.tar.gz 184481 BLAKE2B 87c200466bb7879305ef2b692e9483746fa82c475d85ba552164ab5092c4f08ca9f5b69d2449d1993bd8406ddaf37d9c259556744c37a6c1903a18fdd58c610e SHA512 6907fd696dac25eff85114673f182b6998872d02549147a894cd69654c44a0bec3a51adbf69dacde0c4cd9b7e3005dda8edc6c11f237df514ba3d06508684191
|
||||
DIST Radicale-3.5.0.gh.tar.gz 190792 BLAKE2B e0eeb1a9b0c5ce28481cdf3b840fec407a508cb5e38faab8c253cbcc15951f45b87ab4aff3b363fa88f112c2c44038b8fa1aae729145dbbb8837a4f6c65f2eb4 SHA512 00028bc94e4c41c844d24f51259ce8fb831194fd17e5fe29105d484d32c720295a45bb6ff44f9a1c4155b0143df5c0e74cef6eb8f9f48a0650c4cd89832f3620
|
||||
DIST Radicale-3.5.2.gh.tar.gz 193014 BLAKE2B 05c8d4875de9d16930ad92eba5f53f0e8eda65d82e87723cb4db074bb9a98d46cd64f4265c5fd5d312fea87dec0a675d5672a23755f02a8f59c18ba93569272f SHA512 ebc3ab972107340d1bd2e5526f51bc87ce746a248278652a9b814e321d5c66fdacfd873ea3b7075c16a194c785f5eed64e2424496b5c0b47a7c53e91e61ed23a
|
||||
DIST Radicale-3.5.3.gh.tar.gz 194792 BLAKE2B 7ce83576fcc2e92db8e2c28d62ce1c65ba0239ab58f59e0d15a4da70b267afca424d1745ca023bc11e2f8ca3547011991aa42487f7492db65f0a41651958f051 SHA512 24b7ae46457040a27877b63fc51aa2149d79f66f99a3ef39a0fc81f497212e00ded81ca7762d9b7dd3dad07776f47b21213f393ed5f05b41a134d9c710b3e291
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 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/bcrypt[${PYTHON_USEDEP}]
|
||||
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}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 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/bcrypt[${PYTHON_USEDEP}]
|
||||
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}"
|
||||
|
||||
ewarn ""
|
||||
ewarn "Since 3.5.0 the default [auth] type is \"denyall\". You need to"
|
||||
ewarn "change your config if you used the deafult type so far!"
|
||||
ewarn ""
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user