summaryrefslogtreecommitdiff
path: root/gnustep-apps/sogo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /gnustep-apps/sogo
reinit the tree, so we can have metadata
Diffstat (limited to 'gnustep-apps/sogo')
-rw-r--r--gnustep-apps/sogo/Manifest8
-rw-r--r--gnustep-apps/sogo/files/sogod.confd6
-rw-r--r--gnustep-apps/sogo/files/sogod.initd32
-rw-r--r--gnustep-apps/sogo/metadata.xml15
-rw-r--r--gnustep-apps/sogo/sogo-3.2.10.ebuild100
-rw-r--r--gnustep-apps/sogo/sogo-3.2.9.ebuild100
6 files changed, 261 insertions, 0 deletions
diff --git a/gnustep-apps/sogo/Manifest b/gnustep-apps/sogo/Manifest
new file mode 100644
index 000000000000..d9c249ce67d2
--- /dev/null
+++ b/gnustep-apps/sogo/Manifest
@@ -0,0 +1,8 @@
+AUX sogod.confd 117 SHA256 a556b2501155ebb9e2bd57fe8b32011ebca67530b4908d1cb0f87473ba80803a SHA512 d93bde8c500bf8452d5f32efc35ec12f436afc498d7cc6ac1f55769f8696c9b41cc5edec829a19ea01b24c0d3a2c7901fc797cb04ced371bc8e0c3e6e243f15b WHIRLPOOL 189dc32b8fa8f7ef2dbdec29515423ce4771ea18f1b3d539a85bb5e9b7148e26b2d37fd089ccccd4646793eaded6a01d43f2674fc98bd9537bc7b72053ec1355
+AUX sogod.initd 681 SHA256 502ec9689e8f322d582d17e79cc3891fcda4be634ce9da996931924eef9b01bf SHA512 d6925d49c24ff6ebfd989016a5c0a707c1bc866070cbd9e4e8eca867ec81fe1ad78bd6606b13349ac7d251f62bd85f239b42f65e1d22015c38b4ad6fe9058f4e WHIRLPOOL f379d03d368a7be981934b413bf37aae6966b159400f83981f30b23b4507133a7c8f339f54ba89ad7e6aac92b64d7b1c813af8f40cf17c809a59cdae0e862f0a
+DIST sogo-3.2.10.tar.gz 32528115 SHA256 3bad2d871c750346624bae3b66e25080727391be40f71477f7c3102c7bc559ce SHA512 3dbd465592fd98968b32e251659a70306a781999bcfa9e63e142d75d7c9274edc7cbe5069881e939f0e9472f0ef8580e4e0f20059bfc97f8c69893d86c8cadf3 WHIRLPOOL 99e47eb3f95e04b07e354d0522e186c5c27ed0e74012e1cacf06cfbdbe083002184123b602e7ad1c062ef2ab3fff865e54d921b1a1474331756552db53335aad
+DIST sogo-3.2.9.tar.gz 32443733 SHA256 c28591e738c5c57428c63504a52ef527898e7a4c6af444ccfe988ccfb5c4f8b1 SHA512 070b3812d65598364d9204432678ea48705bf7481371e44442a13ad86d219415e24c579ad59212a7631922a527d30e69aeb17711c3abfc01960f663f4e0112a3 WHIRLPOOL bb8dd3053c96acb507a3d620a191ebe6225d157995af4428b66755bf38061226cd4d9537413117477d40c095531ca46040d28c78b97f2aeea520bb4ae318683c
+EBUILD sogo-3.2.10.ebuild 2083 SHA256 ee931820cc52d2a89a36d10157964fbc736f0ae0e59194c39997692b8ceed73d SHA512 836b37feb3c0764782f4d63b5f9074a554f4765da4e7c0177c2227c4e091e29d93c62af13dbb30dfa9f5bc4fc87c152f6aa60839b6fd5f2d2313b58a57077a32 WHIRLPOOL 6e9e057aa38d899be6715d94d2b02d26cb086b48207cdd34a07fe22081564f02abdd3702fafc13c2672287e2ef1e5f7320d161f1fd2a2fb3bce2c854a5bda494
+EBUILD sogo-3.2.9.ebuild 2083 SHA256 ee931820cc52d2a89a36d10157964fbc736f0ae0e59194c39997692b8ceed73d SHA512 836b37feb3c0764782f4d63b5f9074a554f4765da4e7c0177c2227c4e091e29d93c62af13dbb30dfa9f5bc4fc87c152f6aa60839b6fd5f2d2313b58a57077a32 WHIRLPOOL 6e9e057aa38d899be6715d94d2b02d26cb086b48207cdd34a07fe22081564f02abdd3702fafc13c2672287e2ef1e5f7320d161f1fd2a2fb3bce2c854a5bda494
+MISC ChangeLog 2578 SHA256 3265296fed27901a26254d265be8d37a1bfb69764122f391ec0f6a0b97f2b155 SHA512 dc397f376536fdd334915ef1dbff70df2bd09ccc5a2218236534664c9343e7319c98ef0586bb4f0437948a3d28a64a02bd22f58d86d7601e7b94f3f6b90fcb42 WHIRLPOOL e4bbcf1d5c7045ccd5de5f95f613057ea9f35a51b3eadb6779e765ab2e935338faed84df2653a3f10bbbd3adc08499b2149b59541d3529ca27f4ff49cfcee6f4
+MISC metadata.xml 442 SHA256 c78c9359abde95a4d85c066656899e15b6398cbce1be2cea7782e5b1363fc327 SHA512 135d98d4b53981130f0070d5db4ca71beb9f1a42b36b67ee4d08423955f09ab852991eb7247b5f49851214894ee989f158d479db9bd17e0e455a994d445034b3 WHIRLPOOL 0664ab417a9180c974f4bdaa9274c2d0dd7680e6361d35dec9f522ed01070c5973307ec12fddf8c6d2e0c3ad8b18e5714a5541c9760cf607ee197256c3d21b72
diff --git a/gnustep-apps/sogo/files/sogod.confd b/gnustep-apps/sogo/files/sogod.confd
new file mode 100644
index 000000000000..906a6978d862
--- /dev/null
+++ b/gnustep-apps/sogo/files/sogod.confd
@@ -0,0 +1,6 @@
+# /etc/conf.d/sogod: config file for /etc/init.d/sogod
+
+SOGOD_WORKERS=3
+
+# Additional options for SOGo
+SOGOD_OPTS=""
diff --git a/gnustep-apps/sogo/files/sogod.initd b/gnustep-apps/sogo/files/sogod.initd
new file mode 100644
index 000000000000..ad003be62c9b
--- /dev/null
+++ b/gnustep-apps/sogo/files/sogod.initd
@@ -0,0 +1,32 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ${?}
+}
diff --git a/gnustep-apps/sogo/metadata.xml b/gnustep-apps/sogo/metadata.xml
new file mode 100644
index 000000000000..2c4b6c6ef092
--- /dev/null
+++ b/gnustep-apps/sogo/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>gnustep@gentoo.org</email>
+ <name>Gentoo GNUstep Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">inverse-inc/sogo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/gnustep-apps/sogo/sogo-3.2.10.ebuild b/gnustep-apps/sogo/sogo-3.2.10.ebuild
new file mode 100644
index 000000000000..5c728f4bdae5
--- /dev/null
+++ b/gnustep-apps/sogo/sogo-3.2.10.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="gnutls libressl +ssl"
+
+RDEPEND="
+ dev-libs/libmemcached
+ net-misc/curl
+ net-misc/memcached
+ >=gnustep-libs/sope-${PV}[ldap]
+ 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_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
+}
+
+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}"
+}
diff --git a/gnustep-apps/sogo/sogo-3.2.9.ebuild b/gnustep-apps/sogo/sogo-3.2.9.ebuild
new file mode 100644
index 000000000000..5c728f4bdae5
--- /dev/null
+++ b/gnustep-apps/sogo/sogo-3.2.9.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="gnutls libressl +ssl"
+
+RDEPEND="
+ dev-libs/libmemcached
+ net-misc/curl
+ net-misc/memcached
+ >=gnustep-libs/sope-${PV}[ldap]
+ 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_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
+}
+
+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}"
+}