1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit gnustep-2 user vcs-snapshot
8 DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
9 HOMEPAGE="http://www.sogo.nu"
10 SRC_URI="https://github.com/inverse-inc/sogo/archive/SOGo-${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="gnutls libressl +ssl"
21 >=gnustep-libs/sope-${PV}[ldap]
22 gnutls? ( net-libs/gnutls:= )
24 !libressl? ( dev-libs/openssl:0= )
25 libressl? ( dev-libs/libressl:= )
29 >=gnustep-base/gnustep-make-2.6.3"
32 if use ssl && use gnutls && use libressl ; then
33 ewarn "You have enabled both gnutls and libressl, but only"
34 ewarn "one provider can be active. Using gnutls!"
39 enewuser sogo -1 /bin/bash /var/lib/sogo
43 gnustep-base_src_prepare
44 sed -e "s/validateArgs$//" -i configure \
45 || die "GNUstep.conf sed failed"
67 --with-ssl="${ssl_provider}" \
69 || die "configure failed"
73 gnustep-base_src_install
75 newconfd "${FILESDIR}"/sogod.confd sogod
76 newinitd "${FILESDIR}"/sogod.initd sogod
78 insinto /etc/logrotate.d
79 newins Scripts/logrotate sogo
80 newdoc Apache/SOGo.conf SOGo-Apache.conf
83 doins Scripts/sogo.conf
86 newins Scripts/sogo.cron sogo
89 fowners sogo:sogo /var/log/sogo
90 fowners -R root:sogo /etc/sogo
94 gnustep-base_pkg_postinst
95 elog "SOGo documentation is available online at:"
96 elog "http://www.sogo.nu/downloads/documentation.html"
98 elog "Apache sample configuration file is available in:"
99 elog "/usr/share/doc/${PF}"