Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnustep-apps/sogo/
Date: Mon, 23 Sep 2019 16:39:41
Message-Id: 1569256734.286745762d04d527711bdc41b4b2392560ecffd4.voyageur@gentoo
1 commit: 286745762d04d527711bdc41b4b2392560ecffd4
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 23 16:29:41 2019 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 23 16:38:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28674576
7
8 gnustep-apps/sogo: 4.0.8 bump, fix activesync support
9
10 Closes: https://bugs.gentoo.org/693680
11 Closes: https://bugs.gentoo.org/685788
12 Package-Manager: Portage-2.3.76, Repoman-2.3.17
13 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
14
15 gnustep-apps/sogo/Manifest | 1 +
16 gnustep-apps/sogo/sogo-4.0.8.ebuild | 110 ++++++++++++++++++++++++++++++++++++
17 2 files changed, 111 insertions(+)
18
19 diff --git a/gnustep-apps/sogo/Manifest b/gnustep-apps/sogo/Manifest
20 index bf31fa483b7..0f0cbee7e0c 100644
21 --- a/gnustep-apps/sogo/Manifest
22 +++ b/gnustep-apps/sogo/Manifest
23 @@ -1,3 +1,4 @@
24 DIST sogo-3.2.10.tar.gz 32528115 BLAKE2B 7543f2165ed20026f00adfac7697fe6bc0e54f06b3c2ccb99fbfe0ddd14bcf8818521e161bb118789175c4245b67a8ad5dd0cd3ef71f61d34d869e1c0c2a4a93 SHA512 3dbd465592fd98968b32e251659a70306a781999bcfa9e63e142d75d7c9274edc7cbe5069881e939f0e9472f0ef8580e4e0f20059bfc97f8c69893d86c8cadf3
25 DIST sogo-3.2.9.tar.gz 32443733 BLAKE2B 6a2ae4b5346bc48b9301263fe017308ee34aabcee1ce5444744b22c3af040533d98738fca29a195fd0f792d1d4470418840d0b1ff0e264c2ebc92877f420fa75 SHA512 070b3812d65598364d9204432678ea48705bf7481371e44442a13ad86d219415e24c579ad59212a7631922a527d30e69aeb17711c3abfc01960f663f4e0112a3
26 DIST sogo-4.0.7.tar.gz 34455581 BLAKE2B 471ae8fc503fb2282cbd585286c0eede4e91e14bd9314a02089ffb0c69a8453538902cc26a4ebfdcacdce3d90f2d640221e1b452ad4b6a8064de89b1694eee7e SHA512 8e7eb946ab6ad8c47e6b612723675704602199b530c760ded5325f1230d89e7a812a61d9e652c7eca3050ed0bd0dd33d95faf2478f58a82dcba745cce4906675
27 +DIST sogo-4.0.8.tar.gz 34439405 BLAKE2B 603ef52d305c13e2d5d200b53143771ceb762c97f4f6e09aff31091f482bb43fa2638f88fcd676770b55da6e85c072dbf884c8cce20d2a71c8d62d0a98e30089 SHA512 7f8d7e3af2c92d7684f2ce3343fd9c079d567e2f09fc5ae1405e46b8eee460ab8e4349c03020bc8e55993472021633f9e37d3d8c3136a485dff1d32f45ba200a
28
29 diff --git a/gnustep-apps/sogo/sogo-4.0.8.ebuild b/gnustep-apps/sogo/sogo-4.0.8.ebuild
30 new file mode 100644
31 index 00000000000..eb6d96d450d
32 --- /dev/null
33 +++ b/gnustep-apps/sogo/sogo-4.0.8.ebuild
34 @@ -0,0 +1,110 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit gnustep-2 user vcs-snapshot
41 +
42 +DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
43 +HOMEPAGE="http://www.sogo.nu"
44 +SRC_URI="https://github.com/inverse-inc/sogo/archive/SOGo-${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="activesync gnutls libressl +ssl"
50 +
51 +RDEPEND="
52 + dev-libs/libmemcached
53 + net-misc/curl
54 + net-misc/memcached
55 + >=gnustep-libs/sope-${PV}[ldap]
56 + activesync? ( dev-libs/libwbxml )
57 + gnutls? ( net-libs/gnutls:= )
58 + !gnutls? (
59 + !libressl? ( dev-libs/openssl:0= )
60 + libressl? ( dev-libs/libressl:= )
61 + )
62 +"
63 +DEPEND="${RDEPEND}
64 + >=gnustep-base/gnustep-make-2.6.3"
65 +
66 +pkg_pretend() {
67 + if use ssl && use gnutls && use libressl ; then
68 + ewarn "You have enabled both gnutls and libressl, but only"
69 + ewarn "one provider can be active. Using gnutls!"
70 + fi
71 +}
72 +
73 +pkg_setup() {
74 + enewgroup sogo
75 + enewuser sogo -1 /bin/bash /var/lib/sogo sogo
76 +}
77 +
78 +src_prepare() {
79 + gnustep-base_src_prepare
80 + sed -e "s/validateArgs$//" -i configure \
81 + || die
82 + if use activesync; then
83 + sed -e 's/Tests\/Unit/ActiveSync &/g' \
84 + -i GNUmakefile || die
85 + fi
86 +
87 + default
88 +}
89 +
90 +src_configure() {
91 + local ssl_provider
92 + if use ssl ; then
93 + if use gnutls ; then
94 + ssl_provider=gnutls
95 + else
96 + ssl_provider=ssl
97 + fi
98 + else
99 + ssl_provider=none
100 + fi
101 +
102 + egnustep_env
103 +
104 + ./configure \
105 + --disable-strip \
106 + --prefix=/usr \
107 + --with-ssl="${ssl_provider}" \
108 + $(use_enable debug) \
109 + || die "configure failed"
110 +}
111 +
112 +src_install() {
113 + gnustep-base_src_install
114 +
115 + newconfd "${FILESDIR}"/sogod.confd sogod
116 + newinitd "${FILESDIR}"/sogod.initd sogod
117 +
118 + insinto /etc/logrotate.d
119 + newins Scripts/logrotate sogo
120 + newdoc Apache/SOGo.conf SOGo-Apache.conf
121 +
122 + insinto /etc/sogo
123 + doins Scripts/sogo.conf
124 +
125 + insinto /etc/cron.d
126 + newins Scripts/sogo.cron sogo
127 + keepdir /var/log/sogo
128 +
129 + fowners sogo:sogo /var/log/sogo
130 + fowners -R root:sogo /etc/sogo
131 +}
132 +
133 +pkg_postinst() {
134 + gnustep-base_pkg_postinst
135 + elog "SOGo documentation is available online at:"
136 + elog "http://www.sogo.nu/downloads/documentation.html"
137 + elog
138 + elog "Apache sample configuration file is available in:"
139 + elog "/usr/share/doc/${PF}"
140 + if use activesync; then
141 + ewarn "In order to use the SOGo ActiveSync support code in production environments,"
142 + ewarn "you need to get a proper usage license. Check the documentation for details."
143 + fi
144 +}