mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
committed by
Joonas Niilola
parent
d1e10fb820
commit
a3327bfde9
@@ -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
|
||||
|
||||
27
www-apps/radicale/files/radicale-r2.init.d
Normal file
27
www-apps/radicale/files/radicale-r2.init.d
Normal file
@@ -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 $?
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
72
www-apps/radicale/radicale-2.1.12.ebuild
Normal file
72
www-apps/radicale/radicale-2.1.12.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user