diff --git a/gnustep-apps/sogo/Manifest b/gnustep-apps/sogo/Manifest index c29f155710081..01cdeca851024 100644 --- a/gnustep-apps/sogo/Manifest +++ b/gnustep-apps/sogo/Manifest @@ -1 +1,2 @@ DIST sogo-5.12.7.tar.gz 37727929 BLAKE2B f4b58f67ba53811381fcf69230524dfcd07ef95a16a228dd73c886b130edca7a6abb233c18762c4c2122b4c12428de5fdd6327f7da05aa11bf5ff1c48ad4d1ed SHA512 d43abb2985d2af49cc50eedd1dc016757132c903623e7741bd579af79d056b4b8d8c5d2bc329c3cb58fdbf581cb8294e3e242d9e87efd82a0f9ee4d4d026501c +DIST sogo-5.12.8.tar.gz 37723160 BLAKE2B a67557f34c059afcc449fd4901ea7c566b53bdda910387a2afd71c470ea295239188001b5ee6d890d0e574579bca9904868bfc3eb60c76ac30d23d2e6ac2a20b SHA512 106ffaec80966eaf3e543a1bb0fe068f610a788aab1c64147bbc52dc7ef5596a3ccbdbdbb77f7735e781898a2726e3544b59f4d19bee0634cbe89a2e92130baa diff --git a/gnustep-apps/sogo/sogo-5.12.8.ebuild b/gnustep-apps/sogo/sogo-5.12.8.ebuild new file mode 100644 index 0000000000000..be2ff92e6672a --- /dev/null +++ b/gnustep-apps/sogo/sogo-5.12.8.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnustep-2 + +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" +S="${WORKDIR}/sogo-SOGo-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="activesync gnutls +ssl sodium" + +RESTRICT="test" +PROPERTIES="test_network" + +RDEPEND=" + acct-user/sogo + || ( + dev-libs/libmemcached-awesome + dev-libs/libmemcached + ) + dev-libs/libzip:= + >=gnustep-libs/sope-${PV}[ldap] + net-mail/ytnef + net-misc/curl + net-misc/memcached + virtual/libcrypt:= + activesync? ( dev-libs/libwbxml ) + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( dev-libs/openssl:0= ) + sodium? ( dev-libs/libsodium:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=">=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() { + egnustep_env + + local myconf=( + --prefix="${EPREFIX}" + --disable-strip + --with-ssl="${ssl_provider}" + $(use_enable debug) + $(use_enable sodium) + ) + + if use ssl ; then + if use gnutls ; then + myconf+=( --with-ssl=gnutls ) + else + myconf+=( --with-ssl=ssl ) + fi + else + myconf+=( --with-ssl=none ) + fi + + # saml2 requires liblasso, mfa requires liboath + ./configure "${myconf[@]}" || die "configure failed" +} + +src_test() { + # workaround test assumption that libraries are already installed + local -x LD_LIBRARY_PATH="$(find "${S}" -name obj -printf '%p:')${S}/SoObjects/SOGo/SOGo.framework/Versions/$(ver_cut 1)/sogo:${LD_LIBRARY_PATH}" + default +} + +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 +}