Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnustep-apps/sogo/
Date: Wed, 31 May 2017 12:30:37
Message-Id: 1496233828.0201c9a3fd7c3df8268ec2ffc1bb39d4c14d95f3.xmw@gentoo
1 commit: 0201c9a3fd7c3df8268ec2ffc1bb39d4c14d95f3
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 31 12:11:14 2017 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Wed May 31 12:30:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0201c9a3
7
8 gnustep-apps/sogo: Version bump (bug 620084).
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 gnustep-apps/sogo/Manifest | 1 +
13 gnustep-apps/sogo/sogo-3.2.9.ebuild | 100 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/gnustep-apps/sogo/Manifest b/gnustep-apps/sogo/Manifest
17 index 6da3efff493..2321d7f0797 100644
18 --- a/gnustep-apps/sogo/Manifest
19 +++ b/gnustep-apps/sogo/Manifest
20 @@ -1,2 +1,3 @@
21 DIST sogo-3.2.6a.tar.gz 32285592 SHA256 07ba2527dab193c5424bc0dd4a9fb53e266c68936011a7245bf5e81e97366a62 SHA512 9b24ab0111408f18e655a5b5ebfe251fc7b9c21914af1c2f2d23c27a7d2d635a8ec0c0119752c7757d2ed878db018c483a8516911e89f5892c1d8fa878418471 WHIRLPOOL d02f25a4360ceea3ccab8f40b3ec726a4ef7792afb412cf415874727abdce1c828e231058be80b3ec5c970c929a33dc3145b82fac8ec13ffdf8b7a9c7d5bc58a
22 DIST sogo-3.2.8.tar.gz 32338801 SHA256 cc974f3e486c1b3897ed27c17cedb46b06580bab18a9a6a022fdebd38316ba3d SHA512 34a964e707879c0b6438fca7e7205f454a6bff080ccfc2bdd0b5bd1ffd2c4fcb6fd381e4f168bb2e716d5083f3bfd9d7887fa31b1cfb216a5810b1ffe7d72ca2 WHIRLPOOL 6c3645f3d25358508538baef2c3aebd7d4744f988745bc9117565ba0d373c010c0894083935ba7469c4199d37bf66623c21566fc0856a100f1397bdc2792d934
23 +DIST sogo-3.2.9.tar.gz 32443733 SHA256 c28591e738c5c57428c63504a52ef527898e7a4c6af444ccfe988ccfb5c4f8b1 SHA512 070b3812d65598364d9204432678ea48705bf7481371e44442a13ad86d219415e24c579ad59212a7631922a527d30e69aeb17711c3abfc01960f663f4e0112a3 WHIRLPOOL bb8dd3053c96acb507a3d620a191ebe6225d157995af4428b66755bf38061226cd4d9537413117477d40c095531ca46040d28c78b97f2aeea520bb4ae318683c
24
25 diff --git a/gnustep-apps/sogo/sogo-3.2.9.ebuild b/gnustep-apps/sogo/sogo-3.2.9.ebuild
26 new file mode 100644
27 index 00000000000..5c728f4bdae
28 --- /dev/null
29 +++ b/gnustep-apps/sogo/sogo-3.2.9.ebuild
30 @@ -0,0 +1,100 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit gnustep-2 user vcs-snapshot
37 +
38 +DESCRIPTION="Groupware server built around OpenGroupware.org and the SOPE application server"
39 +HOMEPAGE="http://www.sogo.nu"
40 +SRC_URI="https://github.com/inverse-inc/sogo/archive/SOGo-${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="gnutls libressl +ssl"
46 +
47 +RDEPEND="
48 + dev-libs/libmemcached
49 + net-misc/curl
50 + net-misc/memcached
51 + >=gnustep-libs/sope-${PV}[ldap]
52 + gnutls? ( net-libs/gnutls:= )
53 + !gnutls? (
54 + !libressl? ( dev-libs/openssl:0= )
55 + libressl? ( dev-libs/libressl:= )
56 + )
57 +"
58 +DEPEND="${RDEPEND}
59 + >=gnustep-base/gnustep-make-2.6.3"
60 +
61 +pkg_pretend() {
62 + if use ssl && use gnutls && use libressl ; then
63 + ewarn "You have enabled both gnutls and libressl, but only"
64 + ewarn "one provider can be active. Using gnutls!"
65 + fi
66 +}
67 +
68 +pkg_setup() {
69 + enewuser sogo -1 /bin/bash /var/lib/sogo
70 +}
71 +
72 +src_prepare() {
73 + gnustep-base_src_prepare
74 + sed -e "s/validateArgs$//" -i configure \
75 + || die "GNUstep.conf sed failed"
76 +
77 + default
78 +}
79 +
80 +src_configure() {
81 + local ssl_provider
82 + if use ssl ; then
83 + if use gnutls ; then
84 + ssl_provider=gnutls
85 + else
86 + ssl_provider=ssl
87 + fi
88 + else
89 + ssl_provider=none
90 + fi
91 +
92 + egnustep_env
93 +
94 + ./configure \
95 + --disable-strip \
96 + --prefix=/usr \
97 + --with-ssl="${ssl_provider}" \
98 + $(use_enable debug) \
99 + || die "configure failed"
100 +}
101 +
102 +src_install() {
103 + gnustep-base_src_install
104 +
105 + newconfd "${FILESDIR}"/sogod.confd sogod
106 + newinitd "${FILESDIR}"/sogod.initd sogod
107 +
108 + insinto /etc/logrotate.d
109 + newins Scripts/logrotate sogo
110 + newdoc Apache/SOGo.conf SOGo-Apache.conf
111 +
112 + insinto /etc/sogo
113 + doins Scripts/sogo.conf
114 +
115 + insinto /etc/cron.d
116 + newins Scripts/sogo.cron sogo
117 + keepdir /var/log/sogo
118 +
119 + fowners sogo:sogo /var/log/sogo
120 + fowners -R root:sogo /etc/sogo
121 +}
122 +
123 +pkg_postinst() {
124 + gnustep-base_pkg_postinst
125 + elog "SOGo documentation is available online at:"
126 + elog "http://www.sogo.nu/downloads/documentation.html"
127 + elog
128 + elog "Apache sample configuration file is available in:"
129 + elog "/usr/share/doc/${PF}"
130 +}