Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/xmw:master commit in: gnustep-apps/sogo/files/, gnustep-apps/sogo/
Date: Sun, 01 Nov 2015 16:58:52
Message-Id: 1446397087.175879e410e5c7ef67b531ddae2a76eecb6fafdc.xmw@gentoo
1 commit: 175879e410e5c7ef67b531ddae2a76eecb6fafdc
2 Author: Michael Weber <michael <AT> xmw <DOT> de>
3 AuthorDate: Sun Nov 1 16:58:07 2015 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 1 16:58:07 2015 +0000
6 URL: https://gitweb.gentoo.org/dev/xmw.git/commit/?id=175879e4
7
8 gnustep-apps/sogo: Version bump (bugs 564562 and 564642).
9
10 Package-Manager: portage-2.2.21
11 Manifest-Sign-Key: 62EEF090
12
13 gnustep-apps/sogo/Manifest | 12 ++++++
14 gnustep-apps/sogo/files/sogod.confd | 6 +++
15 gnustep-apps/sogo/files/sogod.initd | 33 +++++++++++++++
16 gnustep-apps/sogo/metadata.xml | 8 ++++
17 gnustep-apps/sogo/sogo-2.2.17.ebuild | 80 ++++++++++++++++++++++++++++++++++++
18 gnustep-apps/sogo/sogo-2.3.2.ebuild | 80 ++++++++++++++++++++++++++++++++++++
19 6 files changed, 219 insertions(+)
20
21 diff --git a/gnustep-apps/sogo/Manifest b/gnustep-apps/sogo/Manifest
22 new file mode 100644
23 index 0000000..cb561b9
24 --- /dev/null
25 +++ b/gnustep-apps/sogo/Manifest
26 @@ -0,0 +1,12 @@
27 +-----BEGIN PGP SIGNED MESSAGE-----
28 +Hash: SHA256
29 +
30 +DIST SOGo-2.2.17.tar.gz 11605257 SHA256 8362d64021dfc332d0c87265c49060f11ffb4e52ec3cbcbf7fde23378e2b01c2 SHA512 f1efe3331a9ebc2503ff37ac25d33b8d8452455d7a3d97e27644626da33ad4ef1d4e790bec88911af1962e8952d3f92df4bdff15726a42eb23152e70cba71f4d WHIRLPOOL bd9ad9cbee26f98a29a7f15aa25c6e94fde0ef68c38dc97b3f30f2c6dcdc974ce94f832c53239af6a1ca8b9678bc0255add0e29b097ede3a442c91d5b9cf3632
31 +DIST SOGo-2.3.2.tar.gz 11781695 SHA256 7830e2ad684b54c89a4720edf7e73250a076885a3e25052c093e7894227939ac SHA512 e90fa9433413586b944f508a87a2959ba3b93ebd6513adf04ee4af24821b48b5cd5a807afaf1982d7e3e9829765dd3c44ce7a0a769fa373cc0034ae93ab481d4 WHIRLPOOL dd2d35692a38100de287b4631009851fd272bce3c7a3880ccfe2a3d7137294a8fdd418c322056dc4ec6a5e0ded4725047c937a916e6c9248e0718b42ff623010
32 +-----BEGIN PGP SIGNATURE-----
33 +Version: GnuPG v2
34 +
35 +iF4EAREIAAYFAlY2RJ8ACgkQknrdDGLu8JDFXQD9GP5qOODEHNn5+QcIKk0GehqU
36 +4XLE51sqyY9OeDZ+010A/2JPLJCPVpjjOVykxGe+2MGadVhvOb9WaLn8djCKCSEC
37 +=9RPP
38 +-----END PGP SIGNATURE-----
39
40 diff --git a/gnustep-apps/sogo/files/sogod.confd b/gnustep-apps/sogo/files/sogod.confd
41 new file mode 100644
42 index 0000000..906a697
43 --- /dev/null
44 +++ b/gnustep-apps/sogo/files/sogod.confd
45 @@ -0,0 +1,6 @@
46 +# /etc/conf.d/sogod: config file for /etc/init.d/sogod
47 +
48 +SOGOD_WORKERS=3
49 +
50 +# Additional options for SOGo
51 +SOGOD_OPTS=""
52
53 diff --git a/gnustep-apps/sogo/files/sogod.initd b/gnustep-apps/sogo/files/sogod.initd
54 new file mode 100644
55 index 0000000..c0dfcdc
56 --- /dev/null
57 +++ b/gnustep-apps/sogo/files/sogod.initd
58 @@ -0,0 +1,33 @@
59 +#!/sbin/runscript
60 +# Copyright 1999-2014 Gentoo Foundation
61 +# Distributed under the terms of the GNU General Public License v2
62 +# $Header: $
63 +
64 +SOGOD_PID=/run/sogo/sogod.pid
65 +
66 +depend() {
67 + need net
68 + need memcached
69 + after postgresql mysql
70 + after slapd
71 + after mta
72 +}
73 +
74 +start() {
75 + checkpath -q -d -m 0755 -o sogo:sogo $(dirname "${SOGOD_PID}")
76 + ebegin "Starting SOGo service"
77 + start-stop-daemon --start --quiet \
78 + --user sogo --exec /usr/sbin/sogod \
79 + -- -WOWorkersCount ${SOGOD_WORKERS} \
80 + -WOLogFile /var/log/sogo/sogod.log \
81 + -WOPidFile "${SOGOD_PID}" \
82 + "${SOGOD_OPTS}"
83 + eend ${?}
84 +}
85 +
86 +stop() {
87 + ebegin "Stopping SOGo service"
88 + start-stop-daemon --stop \
89 + --pidfile "${SOGOD_PID}"
90 + eend ${?}
91 +}
92
93 diff --git a/gnustep-apps/sogo/metadata.xml b/gnustep-apps/sogo/metadata.xml
94 new file mode 100644
95 index 0000000..5b80fb9
96 --- /dev/null
97 +++ b/gnustep-apps/sogo/metadata.xml
98 @@ -0,0 +1,8 @@
99 +<?xml version="1.0" encoding="UTF-8"?>
100 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
101 +<pkgmetadata>
102 +<maintainer>
103 +<email>xmw@g.o</email>
104 +<name>Michael Weber</name>
105 +</maintainer>
106 +</pkgmetadata>
107
108 diff --git a/gnustep-apps/sogo/sogo-2.2.17.ebuild b/gnustep-apps/sogo/sogo-2.2.17.ebuild
109 new file mode 100644
110 index 0000000..2ab32b7
111 --- /dev/null
112 +++ b/gnustep-apps/sogo/sogo-2.2.17.ebuild
113 @@ -0,0 +1,80 @@
114 +# Copyright 1999-2015 Gentoo Foundation
115 +# Distributed under the terms of the GNU General Public License v2
116 +# $Header: $
117 +
118 +EAPI=5
119 +
120 +inherit gnustep-2 user
121 +
122 +MY_PN="SOGo"
123 +
124 +DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
125 +HOMEPAGE="http://www.sogo.nu"
126 +SRC_URI="http://www.sogo.nu/files/downloads/${MY_PN}/Sources/${MY_PN}-${PV}.tar.gz"
127 +
128 +LICENSE="GPL-2"
129 +SLOT="0"
130 +KEYWORDS="~amd64 ~x86"
131 +IUSE="postgres mysql"
132 +
133 +DEPEND="dev-libs/libmemcached
134 + dev-libs/openssl:0=
135 + >=gnustep-libs/sope-${PV}[mysql?,postgres?]
136 + net-misc/memcached
137 + net-nds/openldap"
138 +RDEPEND="${DEPEND}"
139 +
140 +REQUIRED_USE="|| ( mysql postgres )"
141 +
142 +S=${WORKDIR}/${MY_PN}-${PV}
143 +
144 +pkg_setup() {
145 + enewuser sogo -1 /bin/bash /var/lib/sogo
146 +}
147 +
148 +src_prepare() {
149 + gnustep-base_src_prepare
150 + sed -e "s/validateArgs$//" -i configure \
151 + || die "GNUstep.conf sed failed"
152 +}
153 +
154 +src_configure() {
155 + egnustep_env
156 +
157 + ./configure \
158 + $(use_enable debug) \
159 + $(use_enable debug strip) \
160 + --with-ssl=ssl \
161 + --prefix=/usr \
162 + || die "configure failed"
163 +}
164 +
165 +src_install() {
166 + gnustep-base_src_install
167 +
168 + newconfd "${FILESDIR}"/sogod.confd sogod
169 + newinitd "${FILESDIR}"/sogod.initd sogod
170 +
171 + insinto /etc/logrotate.d
172 + newins Scripts/logrotate sogo
173 + newdoc Apache/SOGo.conf SOGo-Apache.conf
174 +
175 + insinto /etc/sogo
176 + doins Scripts/sogo.conf
177 +
178 + insinto /etc/cron.d
179 + newins Scripts/sogo.cron sogo
180 + keepdir /var/log/sogo
181 +
182 + fowners sogo:sogo /var/log/sogo
183 + fowners -R root:sogo /etc/sogo
184 +}
185 +
186 +pkg_postinst() {
187 + gnustep-base_pkg_postinst
188 + elog "SOGo documentation is available online at:"
189 + elog "http://www.sogo.nu/downloads/documentation.html"
190 + elog
191 + elog "Apache sample configuration file is available in:"
192 + elog "/usr/share/doc/${PF}"
193 +}
194
195 diff --git a/gnustep-apps/sogo/sogo-2.3.2.ebuild b/gnustep-apps/sogo/sogo-2.3.2.ebuild
196 new file mode 100644
197 index 0000000..2ab32b7
198 --- /dev/null
199 +++ b/gnustep-apps/sogo/sogo-2.3.2.ebuild
200 @@ -0,0 +1,80 @@
201 +# Copyright 1999-2015 Gentoo Foundation
202 +# Distributed under the terms of the GNU General Public License v2
203 +# $Header: $
204 +
205 +EAPI=5
206 +
207 +inherit gnustep-2 user
208 +
209 +MY_PN="SOGo"
210 +
211 +DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
212 +HOMEPAGE="http://www.sogo.nu"
213 +SRC_URI="http://www.sogo.nu/files/downloads/${MY_PN}/Sources/${MY_PN}-${PV}.tar.gz"
214 +
215 +LICENSE="GPL-2"
216 +SLOT="0"
217 +KEYWORDS="~amd64 ~x86"
218 +IUSE="postgres mysql"
219 +
220 +DEPEND="dev-libs/libmemcached
221 + dev-libs/openssl:0=
222 + >=gnustep-libs/sope-${PV}[mysql?,postgres?]
223 + net-misc/memcached
224 + net-nds/openldap"
225 +RDEPEND="${DEPEND}"
226 +
227 +REQUIRED_USE="|| ( mysql postgres )"
228 +
229 +S=${WORKDIR}/${MY_PN}-${PV}
230 +
231 +pkg_setup() {
232 + enewuser sogo -1 /bin/bash /var/lib/sogo
233 +}
234 +
235 +src_prepare() {
236 + gnustep-base_src_prepare
237 + sed -e "s/validateArgs$//" -i configure \
238 + || die "GNUstep.conf sed failed"
239 +}
240 +
241 +src_configure() {
242 + egnustep_env
243 +
244 + ./configure \
245 + $(use_enable debug) \
246 + $(use_enable debug strip) \
247 + --with-ssl=ssl \
248 + --prefix=/usr \
249 + || die "configure failed"
250 +}
251 +
252 +src_install() {
253 + gnustep-base_src_install
254 +
255 + newconfd "${FILESDIR}"/sogod.confd sogod
256 + newinitd "${FILESDIR}"/sogod.initd sogod
257 +
258 + insinto /etc/logrotate.d
259 + newins Scripts/logrotate sogo
260 + newdoc Apache/SOGo.conf SOGo-Apache.conf
261 +
262 + insinto /etc/sogo
263 + doins Scripts/sogo.conf
264 +
265 + insinto /etc/cron.d
266 + newins Scripts/sogo.cron sogo
267 + keepdir /var/log/sogo
268 +
269 + fowners sogo:sogo /var/log/sogo
270 + fowners -R root:sogo /etc/sogo
271 +}
272 +
273 +pkg_postinst() {
274 + gnustep-base_pkg_postinst
275 + elog "SOGo documentation is available online at:"
276 + elog "http://www.sogo.nu/downloads/documentation.html"
277 + elog
278 + elog "Apache sample configuration file is available in:"
279 + elog "/usr/share/doc/${PF}"
280 +}