mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
gnustep-apps/sogo: allow use of dev-libs/libmemcached-awesome
dev-libs/libmemcached-awesome is an API & ABI compatible fork of dev-libs/libmemcached. The latter hasn't had updates or fixes in quite some time. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
104
gnustep-apps/sogo/sogo-5.2.0-r1.ebuild
Normal file
104
gnustep-apps/sogo/sogo-5.2.0-r1.ebuild
Normal file
@@ -0,0 +1,104 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit gnustep-2 vcs-snapshot
|
||||
|
||||
DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
|
||||
HOMEPAGE="https://www.sogo.nu"
|
||||
SRC_URI="https://github.com/Alinto/sogo/archive/SOGo-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="activesync gnutls +ssl sodium"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/sogo
|
||||
|| (
|
||||
dev-libs/libmemcached-awesome
|
||||
dev-libs/libmemcached
|
||||
)
|
||||
net-misc/curl
|
||||
net-misc/memcached
|
||||
>=gnustep-libs/sope-${PV}[ldap]
|
||||
activesync? ( dev-libs/libwbxml )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
!gnutls? (
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
sodium? ( dev-libs/libsodium:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=gnustep-base/gnustep-make-2.6.3"
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
sed -e "s/validateArgs$//" -i configure \
|
||||
|| die
|
||||
if use activesync; then
|
||||
sed -e 's/Tests\/Unit/ActiveSync &/g' \
|
||||
-i GNUmakefile || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local ssl_provider
|
||||
if use ssl ; then
|
||||
if use gnutls ; then
|
||||
ssl_provider=gnutls
|
||||
else
|
||||
ssl_provider=ssl
|
||||
fi
|
||||
else
|
||||
ssl_provider=none
|
||||
fi
|
||||
|
||||
egnustep_env
|
||||
|
||||
# saml2 requires liblasso, mfa requires liboath
|
||||
./configure \
|
||||
--disable-strip \
|
||||
--prefix=/usr \
|
||||
--with-ssl="${ssl_provider}" \
|
||||
$(use_enable debug) \
|
||||
$(use_enable sodium) \
|
||||
|| die "configure failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnustep-base_src_install
|
||||
|
||||
newconfd "${FILESDIR}"/sogod.confd sogod
|
||||
newinitd "${FILESDIR}"/sogod.initd sogod
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins Scripts/logrotate sogo
|
||||
newdoc Apache/SOGo.conf SOGo-Apache.conf
|
||||
|
||||
insinto /etc/sogo
|
||||
doins Scripts/sogo.conf
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins Scripts/sogo.cron sogo
|
||||
keepdir /var/log/sogo
|
||||
|
||||
fowners sogo:sogo /var/log/sogo
|
||||
fowners -R root:sogo /etc/sogo
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnustep-base_pkg_postinst
|
||||
elog "SOGo documentation is available online at:"
|
||||
elog "https://www.sogo.nu/support.html#/documentation"
|
||||
elog
|
||||
elog "Apache sample configuration file is available in:"
|
||||
elog "/usr/share/doc/${PF}"
|
||||
if use activesync; then
|
||||
ewarn "In order to use the SOGo ActiveSync support code in production environments,"
|
||||
ewarn "you need to get a proper usage license. Check the documentation for details."
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user