seafile-pro-server-10.0.12.ebuild

This commit is contained in:
Anton Bolshakov 2024-01-17 11:43:07 +08:00
parent c90d15377c
commit c57d1fb4b0
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 64 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST seafile-pro-server_10.0.11_x86-64_CentOS.tar.gz 205476606 BLAKE2B 4c6fdeba09e1c86c4fe0d3d7d8cd89e4ab537d40a9a4aac4e689b81361ce709d2e071abc516de20ae2824a238d24f12a34595f9039ccf1a7ad68edac566bfb3f SHA512 a37190b89291592c2547776d1340c53da45cddbc410c474f9a29c046c117672408ffb650dfcc067db2d0ed463bd0a24a38aaf8562263c9859d34613d69ccb7ff
DIST seafile-pro-server_10.0.12_x86-64_CentOS.tar.gz 205531557 BLAKE2B f254642b08f9d408251c6f015ca530206e77de6066fd1e3dd6e636c12e28bf331d086ebc35177529012a223a23c96317678b75ba771e071955e83cbfcce8870b SHA512 d8c8c56414dc0e067e9f9144588841cd1278f8546027d48462de3e1834fba7b59dba3267d1b8a2ad99f7ed3edd6e583979830d6e6326c0e4cd2117b0b3356798

View file

@ -0,0 +1,63 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..12} )
inherit python-single-r1
MY_P="seafile-pro-server_${PV}_x86-64_CentOS.tar.gz"
DESCRIPTION="Meta package for Seafile Pro Edition, file sync share solution"
HOMEPAGE="https://www.seafile.com/en/product/private_server/"
SRC_URI="https://download.seafile.com/d/6e5297246c/files/?p=%2Fpro%2F${MY_P}&dl=1 -> ${MY_P}"
LICENSE="seafile"
SLOT="0"
KEYWORDS="amd64"
IUSE="fuse mysql psd saml sqlite"
# https://manual.seafile.com/upgrade/upgrade_notes_for_10.0.x/
# https://manual.seafile.com/changelog/changelog-for-seafile-professional-server/
RDEPEND="${PYTHON_DEPS}
=app-misc/elasticsearch-8*
$(python_gen_cond_dep '
>=dev-python/pillow-10.0.0[${PYTHON_USEDEP}]
dev-python/pylibmc[${PYTHON_USEDEP}]
dev-python/django-simple-captcha[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
<dev-python/sqlalchemy-2.0.3[sqlite?,${PYTHON_USEDEP}]
psd? ( dev-python/psd-tools )
dev-python/django-pylibmc[${PYTHON_USEDEP}]
dev-python/ldap3[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/pycryptodome[${PYTHON_USEDEP}]
dev-python/cffi
dev-python/requests
')
fuse? ( sys-fs/fuse:0 )
mysql? ( $(python_gen_cond_dep ' dev-python/mysqlclient[${PYTHON_USEDEP}]') )
saml? ( $(python_gen_cond_dep ' dev-python/djangosaml2[${PYTHON_USEDEP}]') )
sys-libs/libselinux
dev-libs/nss
virtual/jre:*"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_prepare() {
eapply "${FILESDIR}"/pillow-10.patch
#match with cffi in RDEPEND section
# sed -e "s|1.14.0|${CFFI_PV}|" -i seahub/thirdpart/cffi/__init__.py || die "sed failed"
rm -r seahub/thirdpart/{cffi*,requests*}
eapply_user
}
pkg_postinst() {
einfo "follow the official documentation:"
einfo "https://manual.seafile.com/deploy_pro/download_and_setup_seafile_professional_server/"
}