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