SOGo: ActiveSync support

This commit is contained in:
Joerg Deckert 2017-03-02 11:54:44 +01:00
parent 50332caedc
commit 57898bd794
4 changed files with 161 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX sogod.confd 117 SHA256 a556b2501155ebb9e2bd57fe8b32011ebca67530b4908d1cb0f87473ba80803a SHA512 d93bde8c500bf8452d5f32efc35ec12f436afc498d7cc6ac1f55769f8696c9b41cc5edec829a19ea01b24c0d3a2c7901fc797cb04ced371bc8e0c3e6e243f15b WHIRLPOOL 189dc32b8fa8f7ef2dbdec29515423ce4771ea18f1b3d539a85bb5e9b7148e26b2d37fd089ccccd4646793eaded6a01d43f2674fc98bd9537bc7b72053ec1355
AUX sogod.initd 688 SHA256 ad809f65086290b6c2320b7a3ac3a340451155b00cd3c815bb44509354124ead SHA512 a1ad645a658ab4148fc6af7dbac7243148a887c38691229ccea3e3eb6a57401fca896e5d57f516e66c838baac20c207c762c18d7b0919fb75e06d2489e5feba1 WHIRLPOOL d22078273cf485e3355d00c10bbe334ff71cea965802dcf6b93c5a650201deed8469e67f2a6dc06782949e8341c20ba929f3341f2d9031e60a6bd1f796ce59f2
DIST sogo-3.2.1.tar.gz 32210103 SHA256 9faef922937f1413c1567e91cf865f577be43cc455c7124e3711bcdb49c7ded3 SHA512 0f8207d1f555982965870971f7130ad7868f4b904e3d6c8a2af9b0226820008174867a8515cd6e7775e9e0e4a3f1de98f73482425bec0c81b6d382ff9fe4a5ee WHIRLPOOL 529b03fd216289701d0af3a77236cc103693a366d597d6992c22d863bb9f7562462c906c1b2e78a72d922770dad953035b3e0c21d9ec3752ff7e8ac0d0bc7686
EBUILD sogo-3.2.1.ebuild 2325 SHA256 79f42b4c4d079e81ba1fe98d2b48bc6c308526ff3cb160316491c1770d2f7f9e SHA512 7aac40a8ca52e0a3ff67f4df0ecd991e1cfc3c33486eace451f77eee2e60d802f10c99ce5c6205084f5ce5f8be217639ed2490a69e6e80688836f7094aedc635 WHIRLPOOL 95fbab8909bf4b443dc7cb61e4694575cd94112df9d2c8fd8c938a50eb31338427bfb1e046c5764ceee0c7d0fdf94e98c34139ca6d43b9498208824ed6e8d124

View File

@ -0,0 +1,6 @@
# /etc/conf.d/sogod: config file for /etc/init.d/sogod
SOGOD_WORKERS=3
# Additional options for SOGo
SOGOD_OPTS=""

View File

@ -0,0 +1,33 @@
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
SOGOD_PID=/run/sogo/sogod.pid
depend() {
need net
need memcached
after postgresql mysql
after slapd
after mta
}
start() {
checkpath -q -d -m 0755 -o sogo:sogo $(dirname "${SOGOD_PID}")
ebegin "Starting SOGo service"
start-stop-daemon --start --quiet \
--user sogo --exec /usr/sbin/sogod \
-- -WOWorkersCount ${SOGOD_WORKERS} \
-WOLogFile /var/log/sogo/sogod.log \
-WOPidFile "${SOGOD_PID}" \
"${SOGOD_OPTS}"
eend ${?}
}
stop() {
ebegin "Stopping SOGo service"
start-stop-daemon --stop \
--pidfile "${SOGOD_PID}"
eend ${?}
}

View File

@ -0,0 +1,118 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit gnustep-2 user vcs-snapshot
DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
HOMEPAGE="http://www.sogo.nu"
SRC_URI="https://github.com/inverse-inc/sogo/archive/SOGo-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="activesync gnutls libressl +ssl"
RDEPEND="
dev-libs/libmemcached
net-misc/curl
net-misc/memcached
>=gnustep-libs/sope-${PV}[ldap]
activesync? ( dev-libs/libwbxml )
gnutls? ( net-libs/gnutls:= )
!gnutls? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:= )
)
"
DEPEND="${RDEPEND}
>=gnustep-base/gnustep-make-2.6.3"
pkg_pretend() {
if use ssl && use gnutls && use libressl ; then
ewarn "You have enabled both gnutls and libressl, but only"
ewarn "one provider can be active. Using gnutls!"
fi
}
pkg_setup() {
enewuser sogo -1 /bin/bash /var/lib/sogo
}
src_prepare() {
gnustep-base_src_prepare
sed -e "s/validateArgs$//" -i configure \
|| die "GNUstep.conf sed failed"
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
./configure \
--disable-strip \
--prefix=/usr \
--with-ssl="${ssl_provider}" \
$(use_enable debug) \
|| die "configure failed"
}
src_compile() {
gnustep-base_src_compile
if use activesync ; then
cd ActiveSync
emake
fi
}
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
if use activesync ; then
cd ActiveSync
egnustep_env
egnustep_install
cd ..
fi
}
pkg_postinst() {
gnustep-base_pkg_postinst
elog "SOGo documentation is available online at:"
elog "http://www.sogo.nu/downloads/documentation.html"
elog
elog "Apache sample configuration file is available in:"
elog "/usr/share/doc/${PF}"
}