summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Piasek <dagger@gentoo.org>2012-03-22 10:29:33 +0000
committerRobert Piasek <dagger@gentoo.org>2012-03-22 10:29:33 +0000
commit792357886028ccb72f8bbfcf2e5016d6c8798dc2 (patch)
tree15913f1bb4c2e4f5414339c0fdcfee6aca23fa53 /net-mail/zarafa
parentnet-proxy/mitmproxy: 0.7 (diff)
downloadbetagarden-792357886028ccb72f8bbfcf2e5016d6c8798dc2.tar.gz
betagarden-792357886028ccb72f8bbfcf2e5016d6c8798dc2.tar.bz2
betagarden-792357886028ccb72f8bbfcf2e5016d6c8798dc2.zip
Move zarafa + libvmime to betagarden overlay
Diffstat (limited to 'net-mail/zarafa')
-rw-r--r--net-mail/zarafa/ChangeLog129
-rw-r--r--net-mail/zarafa/Manifest28
-rw-r--r--net-mail/zarafa/files/zarafa-6.40.1-no-php-conf.patch44
-rw-r--r--net-mail/zarafa/files/zarafa-6.40.1-uuid-link.patch31
-rw-r--r--net-mail/zarafa/files/zarafa-6.40.5-add-missing-endif.patch10
-rw-r--r--net-mail/zarafa/files/zarafa-6.40.5-fix-missing-installation-file.patch19
-rw-r--r--net-mail/zarafa/files/zarafa-7.0.6-gcc46_compile.patch15
-rw-r--r--net-mail/zarafa/files/zarafa-fix-8842.patch23
-rw-r--r--net-mail/zarafa/files/zarafa-gateway.rc630
-rw-r--r--net-mail/zarafa/files/zarafa-ical.rc630
-rw-r--r--net-mail/zarafa/files/zarafa-indexer.rc632
-rw-r--r--net-mail/zarafa/files/zarafa-licensed.rc631
-rw-r--r--net-mail/zarafa/files/zarafa-monitor.rc630
-rw-r--r--net-mail/zarafa/files/zarafa-server.rc635
-rw-r--r--net-mail/zarafa/files/zarafa-spooler.rc630
-rw-r--r--net-mail/zarafa/files/zarafa.logrotate65
-rw-r--r--net-mail/zarafa/metadata.xml8
-rw-r--r--net-mail/zarafa/zarafa-6.40.11.ebuild114
-rw-r--r--net-mail/zarafa/zarafa-6.40.12.ebuild114
-rw-r--r--net-mail/zarafa/zarafa-6.40.14.ebuild116
-rw-r--r--net-mail/zarafa/zarafa-6.40.9.ebuild114
-rw-r--r--net-mail/zarafa/zarafa-7.0.5.ebuild123
-rw-r--r--net-mail/zarafa/zarafa-7.0.6.ebuild124
23 files changed, 1295 insertions, 0 deletions
diff --git a/net-mail/zarafa/ChangeLog b/net-mail/zarafa/ChangeLog
new file mode 100644
index 0000000..a77ff98
--- /dev/null
+++ b/net-mail/zarafa/ChangeLog
@@ -0,0 +1,129 @@
+# ChangeLog for net-mail/zarafa
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 22 Mar 2012; Robert Piasek <dagger@gentoo.org>
+ +files/zarafa-7.0.6-gcc46_compile.patch:
+ Move to betagarden overlay. Add patch to compile with gcc-4.6 (thanks sping)
+
+*zarafa-7.0.6 (20 Mar 2012)
+
+ 20 Mar 2012; Robert Piasek <dagger@gentoo.org> -zarafa-7.0.2.ebuild,
+ -zarafa-7.0.3.ebuild, -zarafa-7.0.4.ebuild, +zarafa-7.0.6.ebuild:
+ Add zarafa 7.0.6. Remove older 7.0.x versions
+
+*zarafa-7.0.5 (14 Feb 2012)
+
+ 14 Feb 2012; Robert Piasek <dagger@gentoo.org> +zarafa-7.0.5.ebuild:
+ Add zarafa 7.0.5
+
+*zarafa-6.40.14 (23 Jan 2012)
+
+ 23 Jan 2012; Robert Piasek <dagger@gentoo.org> -zarafa-6.40.13.ebuild,
+ +zarafa-6.40.14.ebuild, +files/zarafa-fix-8842.patch:
+ Add ZCP 6.40.14. Include fix for bug ZCP-8842
+
+*zarafa-7.0.4 (29 Dec 2011)
+
+ 29 Dec 2011; Robert Piasek <dagger@gentoo.org> -zarafa-7.0.1.ebuild,
+ +zarafa-7.0.4.ebuild:
+ Add ZCP 7.0.4
+
+*zarafa-6.40.13 (13 Dec 2011)
+
+ 13 Dec 2011; Robert Piasek <dagger@gentoo.org> -zarafa-6.40.10.ebuild,
+ +zarafa-6.40.13.ebuild:
+ Add ZCP 6.40.13
+
+*zarafa-7.0.3 (17 Nov 2011)
+
+ 17 Nov 2011; Robert Piasek <dagger@gentoo.org> +zarafa-7.0.3.ebuild:
+ Add ZCP 7.0.3
+
+*zarafa-7.0.2 (03 Nov 2011)
+
+ 03 Nov 2011; Robert Piasek <dagger@gentoo.org> -zarafa-7.0.0.ebuild,
+ +zarafa-7.0.2.ebuild:
+ Add ZCP 7.0.2
+
+*zarafa-6.40.12 (02 Nov 2011)
+
+ 02 Nov 2011; Robert Piasek <dagger@gentoo.org> +zarafa-6.40.12.ebuild:
+ Add ZCP 6.40.12
+
+*zarafa-6.40.11 (20 Sep 2011)
+
+ 20 Sep 2011; Robert Piasek <dagger@gentoo.org> -zarafa-6.40.7.ebuild,
+ -zarafa-6.40.8.ebuild, +zarafa-6.40.11.ebuild:
+ Add zarafa 6.4.11
+
+*zarafa-7.0.1 (22 Aug 2011)
+
+ 22 Aug 2011; Robert Piasek <dagger@gentoo.org> +zarafa-7.0.1.ebuild:
+ Add zarafa 7.0.1
+
+*zarafa-6.40.10 (26 Jul 2011)
+
+ 26 Jul 2011; Robert Piasek <dagger@gentoo.org> +zarafa-6.40.10.ebuild:
+ Add version 6.40.10
+
+*zarafa-7.0.0 (08 Jul 2011)
+
+ 08 Jul 2011; Robert Piasek <dagger@gentoo.org> +zarafa-7.0.0.ebuild:
+ Add zcp-7.0.0
+
+*zarafa-6.40.9 (20 Jun 2011)
+
+ 20 Jun 2011; Robert Piasek <dagger@gentoo.org> +zarafa-6.40.9.ebuild:
+ Add version 6.40.9
+
+*zarafa-6.40.8 (26 May 2011)
+
+ 26 May 2011; Robert Piasek <dagger@gentoo.org> -zarafa-6.40.2.ebuild,
+ -zarafa-6.40.3.ebuild, -zarafa-6.40.3-r1.ebuild, -zarafa-6.40.4-r1.ebuild,
+ -zarafa-6.40.5-r1.ebuild, +zarafa-6.40.8.ebuild:
+ Add version 6.40.8.
+ Remove older ebuilds
+
+*zarafa-6.40.7 (19 Apr 2011)
+
+ 19 Apr 2011; Robert Piasek <dagger@gentoo.org> +zarafa-6.40.7.ebuild:
+ Add version 6.40.7
+
+*zarafa-6.40.5-r1 (25 Jan 2011)
+
+ 25 Jan 2011; Robert Piasek <dagger@gentoo.org> -zarafa-6.40.5.ebuild,
+ +zarafa-6.40.5-r1.ebuild, +files/zarafa-6.40.5-add-missing-endif.patch,
+ +files/zarafa-6.40.5-fix-missing-installation-file.patch:
+ Fix compilation and installation issues with 6.40.5 release
+
+*zarafa-6.40.5 (25 Jan 2011)
+
+ 25 Jan 2011; Robert Piasek <dagger@gentoo.org> +zarafa-6.40.5.ebuild:
+ Add version 6.40.5
+
+*zarafa-6.40.4-r1 (09 Dec 2010)
+
+ 09 Dec 2010; Robert Piasek <dagger@gentoo.org> -zarafa-6.40.4.ebuild,
+ +zarafa-6.40.4-r1.ebuild:
+ Updated version to 6.40.4 final (previous was pulled out)
+
+*zarafa-6.40.4 (03 Dec 2010)
+
+ 03 Dec 2010; Robert Piasek <dagger@gentoo.org> +zarafa-6.40.4.ebuild:
+ Added version 6.40.4
+
+*zarafa-6.40.3-r1 (24 Nov 2010)
+
+ 24 Nov 2010; Robert Piasek <dagger@gentoo.org> +zarafa-6.40.3-r1.ebuild:
+ Make it work with current PHP ecalss
+
+*zarafa-6.40.3 (28 Oct 2010)
+
+ 28 Oct 2010; Robert Piasek <dagger@gentoo.org>
+ +files/zarafa-6.40.1-no-php-conf.patch, +zarafa-6.40.3.ebuild:
+ Added version 6.40.3.
+
+ 11 Aug 2010; Robert Piasek <dagger@gentoo.org> zarafa-6.40.1.ebuild:
+ Updated libical dependency. It seems 0.44 is required to make it work ok
+
diff --git a/net-mail/zarafa/Manifest b/net-mail/zarafa/Manifest
new file mode 100644
index 0000000..07fe70c
--- /dev/null
+++ b/net-mail/zarafa/Manifest
@@ -0,0 +1,28 @@
+AUX zarafa-6.40.1-no-php-conf.patch 1634 RMD160 1bb4d4357aeeec0b005cd090beb96cb73905f58d SHA1 3da975c330bf09eca894db87aa1888536ee1e206 SHA256 ec79e127c30aeb93fe455bbebbd426645d4d8aa3e1031005ff9177d7f7b9685f
+AUX zarafa-6.40.1-uuid-link.patch 1416 RMD160 da5e90e883e1331a5ac1bf9891ece199b61b422d SHA1 f5277c620f78693b05500189fdd869569a1c1fd1 SHA256 ead0383bc69c3c2fce4f69e8dce19161d123dc5fb91b2abbefcf3a83299f855c
+AUX zarafa-6.40.5-add-missing-endif.patch 249 RMD160 ed06c81f50d6a4359ccaa001540a29b4c105e468 SHA1 b6a38c5af35fae2f79bd70846f057873109e9b90 SHA256 e4bb216f1eacebbaa628fad164bcc4f045e9d5b28a17566f2f6a076695a48ba4
+AUX zarafa-6.40.5-fix-missing-installation-file.patch 1221 RMD160 cdc3c85558de3fd35453a174b8af0a5631ea1922 SHA1 2b490e2fb5a27243a77cdbf97a82a859d5a51979 SHA256 41a73e36d939aa9e162ca6df175673329246610dc0e52d998c86d2581b0c5457
+AUX zarafa-7.0.6-gcc46_compile.patch 476 RMD160 161e8a68b7c91bd33a237ebbcae9598643a29789 SHA1 f662b29ee7a253719e7d8a9af0de950f7ad75e4a SHA256 c25667fbe307f28d9f3a1b6ab5aa1c141daee17b18b8ddd79e286f608107cda3
+AUX zarafa-fix-8842.patch 1150 RMD160 4467e6cf23bb6d9ce81bc13a359b2bb7de0b8ba5 SHA1 dde9c366ebea897e45b381c33209daf3e93e10b8 SHA256 af7481bd404d11622a057df0b38c06f398e44fa4ca0882bac97e925fa77763b9
+AUX zarafa-gateway.rc6 706 RMD160 e74f4c50d2d946d7cbcff3c4a4588bb49136c734 SHA1 a1d689924be0d3c9a3fc071e90a35452d3922e47 SHA256 854263aa3fc77b3dd2c76273b9e590f27a8c1c0c19bcfbb0367dc72fcc9c158e
+AUX zarafa-ical.rc6 663 RMD160 6527d9648a4503ade7069e2ce29a419c07b58360 SHA1 d56c026385255e0072a91a2ce366f4f270f264b7 SHA256 a324db2ef3fa460af3dc9c666256f284714fbe02bf26e277b5068c71eb96255d
+AUX zarafa-indexer.rc6 720 RMD160 926111c64617d59d745951e40011df126cf09210 SHA1 9ae5df1866bc95314404146ce824e5ce832df3d4 SHA256 c33f6f7cc62222b331f8530c4bb661ab75719efbd0d9ed95555a69a08b95ceee
+AUX zarafa-licensed.rc6 719 RMD160 ee514f18b10f0068fe50bf95453a384600dd5186 SHA1 6c7873eaf5aacb15391379855fdbcb8ee1dcf0e2 SHA256 139ecccfeaaa7726fe77a1ce12c14d01bc4b94ab7429e4a7ba026b09e85d65d9
+AUX zarafa-monitor.rc6 705 RMD160 388133d466eefdca0182e5b2a5a40e58ae7b0682 SHA1 77add6816b2f12a3a64e15ee1c1e2d32a0c8d695 SHA256 16d332ea2dd7033210e68d8f86063f8f811e80310b144f3877b75626733d8f57
+AUX zarafa-server.rc6 732 RMD160 5c5c0e0769747fbab9c52878c5e10b03cbc40eec SHA1 90a08c15860480ba9ce763683c285813f2d6e3a7 SHA256 f879f64822d154c02b995aee01a0533da93a2e511bee0907bc724ebc7069ebf8
+AUX zarafa-spooler.rc6 705 RMD160 0f5a4cbd5a9c2cd6ba1ac4d9e4f3a4dbfd54f98f SHA1 dae558f32049091e96e9658fafc8309b8c4ff9f4 SHA256 00ab7cf2fdf8dbe53c64c6c610cc0aca42df4d030629d4f6442c3408023aa586
+AUX zarafa.logrotate 1227 RMD160 a0b3e0a50886d04cd28ad2ead2cc8589101f47f9 SHA1 d0f2b3a01641f821d60353ed77935b46abf451fc SHA256 f7276f0ccd48b3c9e71545630ad41cdc2748af45148bf0576f2ca14ee8f9d129
+DIST zcp-6.40.11.tar.gz 5493848 RMD160 8a4a91fcc800b79ef2adfe9b10f84dffa56b927c SHA1 a3a1914541906b1f5f025074278097a78ca6d0fe SHA256 d64997301fbe36e1ccadc254d0f892dc45e7250e445f14cf39d638d4274a1e1c
+DIST zcp-6.40.12.tar.gz 5521416 RMD160 e68f608d7da52947f82411c952d60f4d135333ea SHA1 3f036e5837d659086702882b09a8e1f519014d35 SHA256 4fcecd4dfaac335b174b6223f5ca0ad30b45bc1ff3839d9044acc0e887db1297
+DIST zcp-6.40.14.tar.gz 5563665 RMD160 8b145f96b36ed7df275f0df75c42c0315f685516 SHA1 4b78112c7bf960621e2e3adb9ef1b055f6b31315 SHA256 871ac04d4f87e1868ff103edddfcfc6f91a1c9e6e0caeeb0f0c20dbc4424521a
+DIST zcp-6.40.9.tar.gz 5434001 RMD160 6a14d627dfbdf77c17839e1ab8840695af9e3b34 SHA1 7cf5b7d08d521571d00e06c9f97a8498b8fe49eb SHA256 23653649497b0b26322b8152c639eec1087727d2370947050c239dc3d7c1f03d
+DIST zcp-7.0.5.tar.gz 6165679 RMD160 6da612d83413d6194798b72cfab4bd14231375fc SHA1 11018d3f42bfe5310dc94c45c248c29059c4df1d SHA256 235a2bfa452f3c013d9b58127cb557690dfcb65bc6510d9d68e4d53f01c21df0
+DIST zcp-7.0.6.tar.gz 6248757 RMD160 63aeba06f8ceb1ded9a6cee6431fd22e854aca01 SHA1 ffe7ed56edc5515cc3b516e025059507602fa5fa SHA256 4bc417d3ede1da7f5ec677f7727404228d1e0663fe1c52c82d6d3e449f4e5c58
+EBUILD zarafa-6.40.11.ebuild 2999 RMD160 96400c5bf58839739abd2796b9c0cecd5988e85d SHA1 d435eb495b0d141603b0e21293fd8f75bf440bcc SHA256 63a12665ce8fb127e9b672c9c697a0466f4717fe2d64abb9e20a5760185b8eee
+EBUILD zarafa-6.40.12.ebuild 2999 RMD160 8853c3bf1f4990f0103c163940332c139f369848 SHA1 ad8fbeaad3be9192a359ee5424e098592be1b923 SHA256 f4a2a34fc73ebdc734987b769015f2419a054221e853cbdc952669e8c888376a
+EBUILD zarafa-6.40.14.ebuild 3069 RMD160 eabd5f313aba1b1c75ab8b060d799351b5d3106a SHA1 ba3a6bda32f335752dcb5fbbac8ab42fbf2feda1 SHA256 b93f775c2ceefc6c433941e1c4e0438072ef880570522e6a34e20d32482c7ff3
+EBUILD zarafa-6.40.9.ebuild 2999 RMD160 c3bb834b58729779c52da46d30ab9d413c0b7546 SHA1 5697f848813e329962dfbaa953ea5787f43ac1fb SHA256 1ee9a5268756c5384ca257aa034f86f096900a1711af69aea17b1bf27be56dc9
+EBUILD zarafa-7.0.5.ebuild 3423 RMD160 eddd4143b42ed9aceb70a9d4944e690585591ee5 SHA1 ce7d301881b7659d38fc82eaa689944cf64f0009 SHA256 6f19ae78d827fe0ff54d85f67951bf2b2fb70fa0dec00680f4d424bbfef10060
+EBUILD zarafa-7.0.6.ebuild 3472 RMD160 defe2caf8380003bbb716eef88eb6c476265a8e0 SHA1 b630b68e09de9d6c4ca1986d0895104f16efc468 SHA256 175addee9cc6f375c3536ea00548ff461869b72ee146326848334a2a24c72ef3
+MISC ChangeLog 3776 RMD160 076043db8fec741034ef4814e51eb9153ebd2c6c SHA1 46c60640ce1fa6735c2713448211cbdeabf77b93 SHA256 ffd6316fc27776a2645b436373c4128ee1dfa6810bdda3b68f07ddc6604b8f56
+MISC metadata.xml 232 RMD160 1003df9706c53108377113d61c9c95bf485cc494 SHA1 fc994415ecad6f285541b567143cb40f2ef5f155 SHA256 1a507fc874f29bab501db0ca4cf1328971a64d415d35c7e050c59747eb0d2d1a
diff --git a/net-mail/zarafa/files/zarafa-6.40.1-no-php-conf.patch b/net-mail/zarafa/files/zarafa-6.40.1-no-php-conf.patch
new file mode 100644
index 0000000..9e51f09
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-6.40.1-no-php-conf.patch
@@ -0,0 +1,44 @@
+--- php-ext/Makefile.in~ 2010-10-20 12:26:22.000000000 +0100
++++ php-ext/Makefile.in 2010-10-28 13:40:48.830318647 +0100
+@@ -34,7 +34,7 @@
+ build_triplet = @build@
+ host_triplet = @host@
+ subdir = php-ext
+-DIST_COMMON = $(dist_data_DATA) $(dist_sysconf_DATA) \
++DIST_COMMON = $(dist_data_DATA) \
+ $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+@@ -86,7 +86,7 @@
+ DIST_SOURCES = $(mapi_la_SOURCES)
+ dist_dataDATA_INSTALL = $(INSTALL_DATA)
+ dist_sysconfDATA_INSTALL = $(INSTALL_DATA)
+-DATA = $(dist_data_DATA) $(dist_sysconf_DATA)
++DATA = $(dist_data_DATA)
+ ETAGS = etags
+ CTAGS = ctags
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+@@ -406,23 +406,6 @@
+ echo " rm -f '$(DESTDIR)$(datadir)/$$f'"; \
+ rm -f "$(DESTDIR)$(datadir)/$$f"; \
+ done
+-install-dist_sysconfDATA: $(dist_sysconf_DATA)
+- @$(NORMAL_INSTALL)
+- test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
+- @list='$(dist_sysconf_DATA)'; for p in $$list; do \
+- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f=$(am__strip_dir) \
+- echo " $(dist_sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \
+- $(dist_sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
+- done
+-
+-uninstall-dist_sysconfDATA:
+- @$(NORMAL_UNINSTALL)
+- @list='$(dist_sysconf_DATA)'; for p in $$list; do \
+- f=$(am__strip_dir) \
+- echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \
+- rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \
+- done
+
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
diff --git a/net-mail/zarafa/files/zarafa-6.40.1-uuid-link.patch b/net-mail/zarafa/files/zarafa-6.40.1-uuid-link.patch
new file mode 100644
index 0000000..d434dd9
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-6.40.1-uuid-link.patch
@@ -0,0 +1,31 @@
+--- provider/server/Makefile.in~ 2010-08-03 10:42:59.000000000 +0100
++++ provider/server/Makefile.in 2010-08-06 10:17:15.391932752 +0100
+@@ -265,7 +265,7 @@
+ $(MYSQL_INCLUDES) $(GSOAP_CFLAGS) $(SSL_CFLAGS) $(SSL_HAS_EVP_PKEY_CMP) $(EPOLL_CFLAGS)
+
+ zarafa_server_LDFLAGS = ${DL_LIBS} -Wl,-E
+-zarafa_server_LDADD = $(UUID_LIBS) $(INTL_LIBS) $(ICONV_LIBS) \
++zarafa_server_LDADD = $(INTL_LIBS) $(ICONV_LIBS) \
+ ${top_builddir}/provider/libserver/libserver.la \
+ ${top_builddir}/provider/soap/libgsoap.la \
+ ${top_builddir}/provider/soap/libsoapserver.la \
+@@ -273,7 +273,7 @@
+ ${top_builddir}/common/libcommon_util.la \
+ ${top_builddir}/common/libcommon_mapi.la \
+ ${top_builddir}/common/libcommon_ssl.la \
+- $(MYSQL_LIBS) $(SSL_LIBS) $(PAM_LIBS) $(KRB5_LIBS) $(TCMALLOC_LIBS) -lrt
++ $(MYSQL_LIBS) $(SSL_LIBS) $(PAM_LIBS) $(KRB5_LIBS) $(TCMALLOC_LIBS) $(UUID_LIBS) -lrt
+
+ zarafa_server_SOURCES = ECServer.cpp \
+ ECSoapServerConnection.h ECSoapServerConnection.cpp \
+--- ECtools/zarafa-stats/Makefile.in~ 2010-08-03 10:42:54.000000000 +0100
++++ ECtools/zarafa-stats/Makefile.in 2010-08-06 10:23:27.988995191 +0100
+@@ -249,7 +249,7 @@
+ ${top_builddir}/mapi4linux/src/libmapi.la \
+ ${top_builddir}/common/libcommon_mapi.la \
+ ${top_builddir}/common/libcommon_util.la \
+- -lncurses
++ -lncurses $(UUID_LIBS)
+
+ zarafa_stats_SOURCES = zarafa-stats.cpp
+ all: all-am
diff --git a/net-mail/zarafa/files/zarafa-6.40.5-add-missing-endif.patch b/net-mail/zarafa/files/zarafa-6.40.5-add-missing-endif.patch
new file mode 100644
index 0000000..755ad79
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-6.40.5-add-missing-endif.patch
@@ -0,0 +1,10 @@
+--- provider/libserver/ECIndexer.h~ 2011-01-24 15:55:05.000000000 +0000
++++ provider/libserver/ECIndexer.h 2011-01-25 09:56:36.786592403 +0000
+@@ -49,6 +49,7 @@
+
+ #ifndef ECINDEXER_H
+ #define ECINDEXER_H
++#endif
+
+ class ECConfig;
+ class ECLogger;
diff --git a/net-mail/zarafa/files/zarafa-6.40.5-fix-missing-installation-file.patch b/net-mail/zarafa/files/zarafa-6.40.5-fix-missing-installation-file.patch
new file mode 100644
index 0000000..ef79757
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-6.40.5-fix-missing-installation-file.patch
@@ -0,0 +1,19 @@
+--- installer/linux/Makefile.in~ 2011-01-24 12:06:15.000000000 +0000
++++ installer/linux/Makefile.in 2011-01-25 10:36:31.784330713 +0000
+@@ -693,8 +693,6 @@
+ fi
+ install -d -m 755 ${DESTDIR}/${datarootdir}/doc/zarafa-indexer/example-config
+ mv ${DESTDIR}/${data_configdir}/indexer.cfg ${DESTDIR}/${datarootdir}/doc/zarafa-indexer/example-config
+- install -d -m 755 ${DESTDIR}/${datarootdir}/doc/zarafa-archiver/example-config
+- mv ${DESTDIR}/${data_configdir}/archiver.cfg ${DESTDIR}/${datarootdir}/doc/zarafa-archiver/example-config
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
+--- installer/linux/Makefile.am~ 2011-01-24 11:03:45.000000000 +0000
++++ installer/linux/Makefile.am 2011-01-25 10:36:27.234524257 +0000
+@@ -108,5 +108,3 @@
+ fi
+ install -d -m 755 ${DESTDIR}/${datarootdir}/doc/zarafa-indexer/example-config
+ mv ${DESTDIR}/${data_configdir}/indexer.cfg ${DESTDIR}/${datarootdir}/doc/zarafa-indexer/example-config
+- install -d -m 755 ${DESTDIR}/${datarootdir}/doc/zarafa-archiver/example-config
+- mv ${DESTDIR}/${data_configdir}/archiver.cfg ${DESTDIR}/${datarootdir}/doc/zarafa-archiver/example-config
diff --git a/net-mail/zarafa/files/zarafa-7.0.6-gcc46_compile.patch b/net-mail/zarafa/files/zarafa-7.0.6-gcc46_compile.patch
new file mode 100644
index 0000000..989a011
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-7.0.6-gcc46_compile.patch
@@ -0,0 +1,15 @@
+--- common/ECLogger.cpp 2012-03-22 03:39:03.055162270 +0100
++++ common/ECLogger.cpp 2012-03-22 03:39:21.626930091 +0100
+@@ -166,9 +166,9 @@
+ szMode = NULL;
+ } else {
+ if (compress) {
+- fnOpen = &gzopen;
+- fnClose = &gzclose;
+- fnPrintf = &gzprintf;
++ fnOpen = (open_func)&gzopen;
++ fnClose = (close_func)&gzclose;
++ fnPrintf = (printf_func)&gzprintf;
+ fnFileno = NULL;
+ fnFlush = NULL; // gzflush does exist, but degrades performance
+ szMode = "wb";
diff --git a/net-mail/zarafa/files/zarafa-fix-8842.patch b/net-mail/zarafa/files/zarafa-fix-8842.patch
new file mode 100644
index 0000000..5f79f22
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-fix-8842.patch
@@ -0,0 +1,23 @@
+Index: trunk/zcp/provider/libserver/ZarafaCmd.cpp
+===================================================================
+diff -u -N -r31009 -r31058
+--- trunk/zcp/provider/libserver/ZarafaCmd.cpp (.../ZarafaCmd.cpp) (revision 31009)
++++ trunk/zcp/provider/libserver/ZarafaCmd.cpp (.../ZarafaCmd.cpp) (revision 31058)
+@@ -824,13 +824,15 @@
+ ECRESULT er = erSuccess;
+ ECSession *lpecSession = NULL;
+
+- er = g_lpSessionManager->ValidateSession(soap, ulSessionId, &lpecSession, false);
++ er = g_lpSessionManager->ValidateSession(soap, ulSessionId, &lpecSession, true);
+ if(er != erSuccess)
+ goto exit;
+
+ if(lpecSession->GetAuthMethod() == ECSession::METHOD_USERPASSWORD || lpecSession->GetAuthMethod() == ECSession::METHOD_SSO)
+ SaveLogonTime(lpecSession, false);
+
++ lpecSession->Unlock();
++
+ // lpecSession is discarded. It is not locked, so we can do that. We only did the 'validatesession'
+ // call to see if the session id existed in the first place, and the request is coming from the correct
+ // IP address. Another logoff() call called at the same time may remove the session *here*, in which case the following call
+
diff --git a/net-mail/zarafa/files/zarafa-gateway.rc6 b/net-mail/zarafa/files/zarafa-gateway.rc6
new file mode 100644
index 0000000..01a2599
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-gateway.rc6
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+GATEWAYCONFIG=/etc/zarafa/gateway.cfg
+GATEWAYPROGRAM=/usr/bin/zarafa-gateway
+
+[ -x $GATEWAYPROGRAM ] || exit 0
+
+GATEWAYCONFIG_OPT=""
+[ ! -z $GATEWAYCONFIG -a -f $GATEWAYCONFIG ] && GATEWAYCONFIG_OPT="-c $GATEWAYCONFIG"
+
+PIDFILE=/var/run/"${SVCNAME}".pid
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${GATEWAYPROGRAM} -- ${GATEWAYCONFIG_OPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --exec ${GATEWAYPROGRAM} -- ${GATEWAYCONFIG_OPT}
+ eend $?
+}
diff --git a/net-mail/zarafa/files/zarafa-ical.rc6 b/net-mail/zarafa/files/zarafa-ical.rc6
new file mode 100644
index 0000000..81bc7ea
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-ical.rc6
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ICALCONFIG=/etc/zarafa/ical.cfg
+ICALPROGRAM=/usr/bin/zarafa-ical
+
+[ -x $ICALPROGRAM ] || exit 0
+
+ICALCONFIG_OPT=""
+[ ! -z $ICALCONFIG -a -f $ICALCONFIG ] && ICALCONFIG_OPT="-c $ICALCONFIG"
+
+PIDFILE=/var/run/"${SVCNAME}".pid
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${ICALPROGRAM} -- ${ICALCONFIG_OPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --exec ${ICALPROGRAM} -- ${ICALCONFIG_OPT}
+ eend $?
+}
diff --git a/net-mail/zarafa/files/zarafa-indexer.rc6 b/net-mail/zarafa/files/zarafa-indexer.rc6
new file mode 100644
index 0000000..24f3666
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-indexer.rc6
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+INDEXERCONFIG=/etc/zarafa/indexer.cfg
+INDEXERPROGRAM=/usr/bin/zarafa-indexer
+
+[ -x $INDEXERPROGRAM ] || exit 0
+
+INDEXERCONFIG_OPT=""
+[ ! -z $INDEXERCONFIG -a -f $INDEXERCONFIG ] && INDEXERCONFIG_OPT="-c
+$INDEXERCONFIG"
+
+PIDFILE=/var/run/"${SVCNAME}".pid
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${INDEXERPROGRAM} -- ${INDEXERCONFIG_OPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --retry 65 \
+ --exec ${INDEXERPROGRAM} -- ${INDEXERCONFIG_OPT}
+ eend $?
+}
diff --git a/net-mail/zarafa/files/zarafa-licensed.rc6 b/net-mail/zarafa/files/zarafa-licensed.rc6
new file mode 100644
index 0000000..4c10361
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-licensed.rc6
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+LICENSEDCONFIG=/etc/zarafa/licensed.cfg
+LICENSEDPROGRAM=/usr/bin/zarafa-licensed
+
+[ -x $LICENSEDPROGRAM ] || exit 0
+
+LICENSEDCONFIG_OPT=""
+[ ! -z $LICENSEDCONFIG -a -f $LICENSEDCONFIG ] && LICENSEDCONFIG_OPT="-c
+$LICENSEDCONFIG"
+
+PIDFILE=/var/run/"${SVCNAME}".pid
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${LICENSEDPROGRAM} -- ${LICENSEDCONFIG_OPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --exec ${LICENSEDPROGRAM} -- ${LICENSEDCONFIG_OPT}
+ eend $?
+}
diff --git a/net-mail/zarafa/files/zarafa-monitor.rc6 b/net-mail/zarafa/files/zarafa-monitor.rc6
new file mode 100644
index 0000000..5ccd284
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-monitor.rc6
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+MONITORCONFIG=/etc/zarafa/monitor.cfg
+MONITORPROGRAM=/usr/bin/zarafa-monitor
+
+[ -x $MONITORPROGRAM ] || exit 0
+
+MONITORCONFIG_OPT=""
+[ ! -z $MONITORCONFIG -a -f $MONITORCONFIG ] && MONITORCONFIG_OPT="-c $MONITORCONFIG"
+
+PIDFILE=/var/run/"${SVCNAME}".pid
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${MONITORPROGRAM} -- ${MONITORCONFIG_OPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --exec ${MONITORPROGRAM} -- ${MONITORCONFIG_OPT}
+ eend $?
+}
diff --git a/net-mail/zarafa/files/zarafa-server.rc6 b/net-mail/zarafa/files/zarafa-server.rc6
new file mode 100644
index 0000000..38bc500
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-server.rc6
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+SERVERCONFIG=/etc/zarafa/server.cfg
+SERVERPROGRAM=/usr/bin/zarafa-server
+
+[ -x $SERVERPROGRAM ] || exit 0
+
+SERVERCONFIG_OPT=""
+[ ! -z $SERVERCONFIG -a -f $SERVERCONFIG ] && SERVERCONFIG_OPT="-c $SERVERCONFIG"
+
+PIDFILE=/var/run/"${SVCNAME}".pid
+
+depend() {
+ need mysql
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${SERVERPROGRAM} -- ${SERVERCONFIG_OPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --retry 65 \
+ --exec ${SERVERPROGRAM} -- ${SERVERCONFIG_OPT}
+ eend $?
+}
diff --git a/net-mail/zarafa/files/zarafa-spooler.rc6 b/net-mail/zarafa/files/zarafa-spooler.rc6
new file mode 100644
index 0000000..1383b43
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-spooler.rc6
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+SPOOLERCONFIG=/etc/zarafa/spooler.cfg
+SPOOLERPROGRAM=/usr/bin/zarafa-spooler
+
+[ -x $SPOOLERPROGRAM ] || exit 0
+
+SPOOLERCONFIG_OPT=""
+[ ! -z $SPOOLERCONFIG -a -f $SPOOLERCONFIG ] && SPOOLERCONFIG_OPT="-c $SPOOLERCONFIG"
+
+PIDFILE=/var/run/"${SVCNAME}".pid
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${SPOOLERPROGRAM} -- ${SPOOLERCONFIG_OPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --exec ${SPOOLERPROGRAM} -- ${SPOOLERCONFIG_OPT}
+ eend $?
+}
diff --git a/net-mail/zarafa/files/zarafa.logrotate b/net-mail/zarafa/files/zarafa.logrotate
new file mode 100644
index 0000000..e964bc4
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa.logrotate
@@ -0,0 +1,65 @@
+#
+# This is an example for the common logrotate system.
+# Copy this file to /etc/logrotate.d/zarafa to activate it.
+# Also, check the location of the logfiles, and replace if needed.
+#
+
+/var/log/zarafa/server.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ killall -HUP zarafa-server
+ endscript
+}
+
+/var/log/zarafa/spooler.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ killall -HUP zarafa-spooler
+ endscript
+}
+
+/var/log/zarafa/monitor.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ killall -HUP zarafa-monitor
+ endscript
+}
+
+/var/log/zarafa/gateway.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ killall -HUP zarafa-gateway
+ endscript
+}
+
+/var/log/zarafa/ical.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ killall -HUP zarafa-ical
+ endscript
+}
diff --git a/net-mail/zarafa/metadata.xml b/net-mail/zarafa/metadata.xml
new file mode 100644
index 0000000..618053e
--- /dev/null
+++ b/net-mail/zarafa/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<use>
+ <flag name="logrotate">Adds support for <pkg>app-admin/logrotate</pkg></flag>
+</use>
+</pkgmetadata>
+
diff --git a/net-mail/zarafa/zarafa-6.40.11.ebuild b/net-mail/zarafa/zarafa-6.40.11.ebuild
new file mode 100644
index 0000000..1b7099a
--- /dev/null
+++ b/net-mail/zarafa/zarafa-6.40.11.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PHP_EXT_NAME="mapi"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+USE_PHP="php5-3"
+
+inherit versionator php-ext-source-r2 eutils
+
+ZARAFA_MAJOR=$(get_version_component_range 1 ${PV})
+ZARAFA_MINOR=$(get_version_component_range 2 ${PV})
+ZARAFA_MICRO=$(get_version_component_range 3 ${PV})
+ZARAFA_REV=28965
+
+DESCRIPTION="Open Source Groupware Solution"
+HOMEPAGE="http://zarafa.com/"
+SRC_URI="http://download.zarafa.com/community/final/${ZARAFA_MAJOR}.${ZARAFA_MINOR}/${PV}-${ZARAFA_REV}/sourcecode/zcp-${PV}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug ldap +logrotate static"
+
+RDEPEND=">=dev-libs/libical-0.44
+ =dev-cpp/libvmime-0.7.1
+ >=dev-lang/php-5.2.0
+ app-text/catdoc
+ app-text/poppler
+ dev-cpp/clucene
+ dev-db/mysql
+ dev-libs/libxml2
+ dev-libs/openssl
+ net-misc/curl
+ sys-libs/e2fsprogs-libs
+ sys-libs/zlib
+ dev-libs/boost
+ ldap? ( net-nds/openldap )
+ logrotate? ( app-admin/logrotate )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ sys-devel/gettext"
+
+#src_unpack() {
+# unpack ${P}.tar.bz2
+#}
+
+src_prepare() {
+ # Fixes zarafa-server linking
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-uuid-link.patch
+
+ # Don't install php ini file, as installation doesn't
+ # respect Gentoo way of handling SAPIs
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-no-php-conf.patch
+}
+
+src_configure() {
+ econf \
+ --enable-oss \
+ --disable-perl \
+ --disable-testtools \
+ --with-userscript-prefix=/etc/zarafa/userscripts \
+ --with-quotatemplate-prefix=/etc/zarafa/quotamails \
+ --with-indexerscripts-prefix=/etc/zarafa/indexerscripts \
+ $(use_enable static) \
+ $(use_enable debug)
+}
+
+src_compile() {
+ emake || die "Compilation failed"
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Use only some parts of PHP eclass
+ php-ext-source-r2_buildinilist php${slot}
+ php-ext-source-r2_addextension "${PHP_EXT_NAME}.so"
+
+ # Symlink the <ext>.ini files from ext/ to ext-active/
+ for inifile in ${PHPINIFILELIST} ; do
+ inidir="${inifile/${PHP_EXT_NAME}.ini/}"
+ inidir="${inidir/ext/ext-active}"
+ dodir "/${inidir}"
+ dosym "/${inifile}" "/${inifile/ext/ext-active}"
+ done
+
+ # Install PHP module
+ php-ext-source-r2_addtoinifiles ";mapi.cache_max_sessions" "128"
+ php-ext-source-r2_addtoinifiles ";mapi.cache_lifetime" "300"
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/zarafa.logrotate zarafa || die "Failed to install logrotate"
+ fi
+
+ insinto /etc/zarafa
+ doins "${S}"/installer/linux/*.cfg || die "Failed to install config files"
+
+ dodir /var/log/zarafa
+ keepdir /var/log/zarafa
+
+ newinitd "${FILESDIR}"/zarafa-gateway.rc6 zarafa-gateway
+ newinitd "${FILESDIR}"/zarafa-ical.rc6 zarafa-ical
+ newinitd "${FILESDIR}"/zarafa-indexer.rc6 zarafa-indexer
+ newinitd "${FILESDIR}"/zarafa-monitor.rc6 zarafa-monitor
+ newinitd "${FILESDIR}"/zarafa-server.rc6 zarafa-server
+ newinitd "${FILESDIR}"/zarafa-spooler.rc6 zarafa-spooler
+
+}
diff --git a/net-mail/zarafa/zarafa-6.40.12.ebuild b/net-mail/zarafa/zarafa-6.40.12.ebuild
new file mode 100644
index 0000000..f4c4613
--- /dev/null
+++ b/net-mail/zarafa/zarafa-6.40.12.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PHP_EXT_NAME="mapi"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+USE_PHP="php5-3"
+
+inherit versionator php-ext-source-r2 eutils
+
+ZARAFA_MAJOR=$(get_version_component_range 1 ${PV})
+ZARAFA_MINOR=$(get_version_component_range 2 ${PV})
+ZARAFA_MICRO=$(get_version_component_range 3 ${PV})
+ZARAFA_REV=29942
+
+DESCRIPTION="Open Source Groupware Solution"
+HOMEPAGE="http://zarafa.com/"
+SRC_URI="http://download.zarafa.com/community/final/${ZARAFA_MAJOR}.${ZARAFA_MINOR}/${PV}-${ZARAFA_REV}/sourcecode/zcp-${PV}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug ldap +logrotate static"
+
+RDEPEND=">=dev-libs/libical-0.44
+ =dev-cpp/libvmime-0.7.1
+ >=dev-lang/php-5.2.0
+ app-text/catdoc
+ app-text/poppler
+ dev-cpp/clucene
+ dev-db/mysql
+ dev-libs/libxml2
+ dev-libs/openssl
+ net-misc/curl
+ sys-libs/e2fsprogs-libs
+ sys-libs/zlib
+ dev-libs/boost
+ ldap? ( net-nds/openldap )
+ logrotate? ( app-admin/logrotate )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ sys-devel/gettext"
+
+#src_unpack() {
+# unpack ${P}.tar.bz2
+#}
+
+src_prepare() {
+ # Fixes zarafa-server linking
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-uuid-link.patch
+
+ # Don't install php ini file, as installation doesn't
+ # respect Gentoo way of handling SAPIs
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-no-php-conf.patch
+}
+
+src_configure() {
+ econf \
+ --enable-oss \
+ --disable-perl \
+ --disable-testtools \
+ --with-userscript-prefix=/etc/zarafa/userscripts \
+ --with-quotatemplate-prefix=/etc/zarafa/quotamails \
+ --with-indexerscripts-prefix=/etc/zarafa/indexerscripts \
+ $(use_enable static) \
+ $(use_enable debug)
+}
+
+src_compile() {
+ emake || die "Compilation failed"
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Use only some parts of PHP eclass
+ php-ext-source-r2_buildinilist php${slot}
+ php-ext-source-r2_addextension "${PHP_EXT_NAME}.so"
+
+ # Symlink the <ext>.ini files from ext/ to ext-active/
+ for inifile in ${PHPINIFILELIST} ; do
+ inidir="${inifile/${PHP_EXT_NAME}.ini/}"
+ inidir="${inidir/ext/ext-active}"
+ dodir "/${inidir}"
+ dosym "/${inifile}" "/${inifile/ext/ext-active}"
+ done
+
+ # Install PHP module
+ php-ext-source-r2_addtoinifiles ";mapi.cache_max_sessions" "128"
+ php-ext-source-r2_addtoinifiles ";mapi.cache_lifetime" "300"
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/zarafa.logrotate zarafa || die "Failed to install logrotate"
+ fi
+
+ insinto /etc/zarafa
+ doins "${S}"/installer/linux/*.cfg || die "Failed to install config files"
+
+ dodir /var/log/zarafa
+ keepdir /var/log/zarafa
+
+ newinitd "${FILESDIR}"/zarafa-gateway.rc6 zarafa-gateway
+ newinitd "${FILESDIR}"/zarafa-ical.rc6 zarafa-ical
+ newinitd "${FILESDIR}"/zarafa-indexer.rc6 zarafa-indexer
+ newinitd "${FILESDIR}"/zarafa-monitor.rc6 zarafa-monitor
+ newinitd "${FILESDIR}"/zarafa-server.rc6 zarafa-server
+ newinitd "${FILESDIR}"/zarafa-spooler.rc6 zarafa-spooler
+
+}
diff --git a/net-mail/zarafa/zarafa-6.40.14.ebuild b/net-mail/zarafa/zarafa-6.40.14.ebuild
new file mode 100644
index 0000000..8b96c7a
--- /dev/null
+++ b/net-mail/zarafa/zarafa-6.40.14.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PHP_EXT_NAME="mapi"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+USE_PHP="php5-3"
+
+inherit versionator php-ext-source-r2 eutils
+
+ZARAFA_MAJOR=$(get_version_component_range 1 ${PV})
+ZARAFA_MINOR=$(get_version_component_range 2 ${PV})
+ZARAFA_MICRO=$(get_version_component_range 3 ${PV})
+ZARAFA_REV=31537
+
+DESCRIPTION="Open Source Groupware Solution"
+HOMEPAGE="http://zarafa.com/"
+SRC_URI="http://download.zarafa.com/community/final/${ZARAFA_MAJOR}.${ZARAFA_MINOR}/${PV}-${ZARAFA_REV}/sourcecode/zcp-${PV}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug ldap +logrotate static"
+
+RDEPEND=">=dev-libs/libical-0.44
+ =dev-cpp/libvmime-0.7.1
+ >=dev-lang/php-5.2.0
+ app-text/catdoc
+ app-text/poppler
+ dev-cpp/clucene
+ dev-db/mysql
+ dev-libs/libxml2
+ dev-libs/openssl
+ net-misc/curl
+ sys-libs/e2fsprogs-libs
+ sys-libs/zlib
+ dev-libs/boost
+ ldap? ( net-nds/openldap )
+ logrotate? ( app-admin/logrotate )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ sys-devel/gettext"
+
+#src_unpack() {
+# unpack ${P}.tar.bz2
+#}
+
+src_prepare() {
+ # Don't install php ini file, as installation doesn't
+ # respect Gentoo way of handling SAPIs
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-no-php-conf.patch
+
+ # Fix for zarafa-server crash - bug ID 8842
+ # https://jira.zarafa.com/browse/ZCP-8842
+ epatch "${FILESDIR}"/"${PN}"-fix-8842.patch
+}
+
+src_configure() {
+ econf \
+ --enable-oss \
+ --enable-release \
+ --disable-perl \
+ --disable-testtools \
+ --with-userscript-prefix=/etc/zarafa/userscripts \
+ --with-quotatemplate-prefix=/etc/zarafa/quotamails \
+ --with-indexerscripts-prefix=/etc/zarafa/indexerscripts \
+ $(use_enable static) \
+ $(use_enable debug)
+}
+
+src_compile() {
+ emake || die "Compilation failed"
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Use only some parts of PHP eclass
+ php-ext-source-r2_buildinilist php${slot}
+ php-ext-source-r2_addextension "${PHP_EXT_NAME}.so"
+
+ # Symlink the <ext>.ini files from ext/ to ext-active/
+ for inifile in ${PHPINIFILELIST} ; do
+ inidir="${inifile/${PHP_EXT_NAME}.ini/}"
+ inidir="${inidir/ext/ext-active}"
+ dodir "/${inidir}"
+ dosym "/${inifile}" "/${inifile/ext/ext-active}"
+ done
+
+ # Install PHP module
+ php-ext-source-r2_addtoinifiles ";mapi.cache_max_sessions" "128"
+ php-ext-source-r2_addtoinifiles ";mapi.cache_lifetime" "300"
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/zarafa.logrotate zarafa || die "Failed to install logrotate"
+ fi
+
+ insinto /etc/zarafa
+ doins "${S}"/installer/linux/*.cfg || die "Failed to install config files"
+
+ dodir /var/log/zarafa
+ keepdir /var/log/zarafa
+
+ newinitd "${FILESDIR}"/zarafa-gateway.rc6 zarafa-gateway
+ newinitd "${FILESDIR}"/zarafa-ical.rc6 zarafa-ical
+ newinitd "${FILESDIR}"/zarafa-indexer.rc6 zarafa-indexer
+ newinitd "${FILESDIR}"/zarafa-monitor.rc6 zarafa-monitor
+ newinitd "${FILESDIR}"/zarafa-server.rc6 zarafa-server
+ newinitd "${FILESDIR}"/zarafa-spooler.rc6 zarafa-spooler
+
+}
diff --git a/net-mail/zarafa/zarafa-6.40.9.ebuild b/net-mail/zarafa/zarafa-6.40.9.ebuild
new file mode 100644
index 0000000..91d53cd
--- /dev/null
+++ b/net-mail/zarafa/zarafa-6.40.9.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PHP_EXT_NAME="mapi"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+USE_PHP="php5-3"
+
+inherit versionator php-ext-source-r2 eutils
+
+ZARAFA_MAJOR=$(get_version_component_range 1 ${PV})
+ZARAFA_MINOR=$(get_version_component_range 2 ${PV})
+ZARAFA_MICRO=$(get_version_component_range 3 ${PV})
+ZARAFA_REV=27553
+
+DESCRIPTION="Open Source Groupware Solution"
+HOMEPAGE="http://zarafa.com/"
+SRC_URI="http://download.zarafa.com/community/final/${ZARAFA_MAJOR}.${ZARAFA_MINOR}/${PV}-${ZARAFA_REV}/sourcecode/zcp-${PV}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug ldap +logrotate static"
+
+RDEPEND=">=dev-libs/libical-0.44
+ =dev-cpp/libvmime-0.7.1
+ >=dev-lang/php-5.2.0
+ app-text/catdoc
+ app-text/poppler
+ dev-cpp/clucene
+ dev-db/mysql
+ dev-libs/libxml2
+ dev-libs/openssl
+ net-misc/curl
+ sys-libs/e2fsprogs-libs
+ sys-libs/zlib
+ dev-libs/boost
+ ldap? ( net-nds/openldap )
+ logrotate? ( app-admin/logrotate )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ sys-devel/gettext"
+
+#src_unpack() {
+# unpack ${P}.tar.bz2
+#}
+
+src_prepare() {
+ # Fixes zarafa-server linking
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-uuid-link.patch
+
+ # Don't install php ini file, as installation doesn't
+ # respect Gentoo way of handling SAPIs
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-no-php-conf.patch
+}
+
+src_configure() {
+ econf \
+ --enable-oss \
+ --disable-perl \
+ --disable-testtools \
+ --with-userscript-prefix=/etc/zarafa/userscripts \
+ --with-quotatemplate-prefix=/etc/zarafa/quotamails \
+ --with-indexerscripts-prefix=/etc/zarafa/indexerscripts \
+ $(use_enable static) \
+ $(use_enable debug)
+}
+
+src_compile() {
+ emake || die "Compilation failed"
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Use only some parts of PHP eclass
+ php-ext-source-r2_buildinilist php${slot}
+ php-ext-source-r2_addextension "${PHP_EXT_NAME}.so"
+
+ # Symlink the <ext>.ini files from ext/ to ext-active/
+ for inifile in ${PHPINIFILELIST} ; do
+ inidir="${inifile/${PHP_EXT_NAME}.ini/}"
+ inidir="${inidir/ext/ext-active}"
+ dodir "/${inidir}"
+ dosym "/${inifile}" "/${inifile/ext/ext-active}"
+ done
+
+ # Install PHP module
+ php-ext-source-r2_addtoinifiles ";mapi.cache_max_sessions" "128"
+ php-ext-source-r2_addtoinifiles ";mapi.cache_lifetime" "300"
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/zarafa.logrotate zarafa || die "Failed to install logrotate"
+ fi
+
+ insinto /etc/zarafa
+ doins "${S}"/installer/linux/*.cfg || die "Failed to install config files"
+
+ dodir /var/log/zarafa
+ keepdir /var/log/zarafa
+
+ newinitd "${FILESDIR}"/zarafa-gateway.rc6 zarafa-gateway
+ newinitd "${FILESDIR}"/zarafa-ical.rc6 zarafa-ical
+ newinitd "${FILESDIR}"/zarafa-indexer.rc6 zarafa-indexer
+ newinitd "${FILESDIR}"/zarafa-monitor.rc6 zarafa-monitor
+ newinitd "${FILESDIR}"/zarafa-server.rc6 zarafa-server
+ newinitd "${FILESDIR}"/zarafa-spooler.rc6 zarafa-spooler
+
+}
diff --git a/net-mail/zarafa/zarafa-7.0.5.ebuild b/net-mail/zarafa/zarafa-7.0.5.ebuild
new file mode 100644
index 0000000..b7705e7
--- /dev/null
+++ b/net-mail/zarafa/zarafa-7.0.5.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PHP_EXT_NAME="mapi"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+USE_PHP="php5-3"
+
+inherit versionator php-ext-source-r2 eutils
+
+ZARAFA_MAJOR=$(get_version_component_range 1 ${PV})
+ZARAFA_MINOR=$(get_version_component_range 2 ${PV})
+ZARAFA_MICRO=$(get_version_component_range 3 ${PV})
+ZARAFA_REV=31880
+
+DESCRIPTION="Open Source Groupware Solution"
+HOMEPAGE="http://zarafa.com/"
+SRC_URI="http://download.zarafa.com/community/final/${ZARAFA_MAJOR}.${ZARAFA_MINOR}/${PV}-${ZARAFA_REV}/sourcecode/zcp-${PV}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug ldap +logrotate static"
+
+RDEPEND=">=dev-libs/libical-0.44
+ =dev-cpp/libvmime-0.9.2_pre20120110
+ >=dev-lang/php-5.3.0
+ app-text/catdoc
+ app-text/poppler
+ dev-cpp/clucene
+ dev-db/mysql
+ dev-libs/libxml2
+ dev-libs/openssl
+ net-misc/curl
+ sys-libs/e2fsprogs-libs
+ sys-libs/zlib
+ dev-libs/boost
+ ldap? ( net-nds/openldap )
+ logrotate? ( app-admin/logrotate )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ sys-devel/gettext"
+
+#src_unpack() {
+# unpack ${P}.tar.bz2
+#}
+
+src_prepare() {
+
+ # Don't install php ini file, as installation doesn't
+ # respect Gentoo way of handling SAPIs
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-no-php-conf.patch
+}
+
+src_configure() {
+ econf \
+ --enable-oss \
+ --enable-release \
+ --disable-perl \
+ --disable-testtools \
+ --with-userscript-prefix=/etc/zarafa/userscripts \
+ --with-quotatemplate-prefix=/etc/zarafa/quotamails \
+ --with-indexerscripts-prefix=/etc/zarafa/indexerscripts \
+ $(use_enable static) \
+ $(use_enable debug)
+}
+
+src_compile() {
+ emake || die "Compilation failed"
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Use only some parts of PHP eclass
+ php-ext-source-r2_buildinilist php${slot}
+ php-ext-source-r2_addextension "${PHP_EXT_NAME}.so"
+
+ # Symlink the <ext>.ini files from ext/ to ext-active/
+ for inifile in ${PHPINIFILELIST} ; do
+ inidir="${inifile/${PHP_EXT_NAME}.ini/}"
+ inidir="${inidir/ext/ext-active}"
+ dodir "/${inidir}"
+ dosym "/${inifile}" "/${inifile/ext/ext-active}"
+ done
+
+ # Install PHP module
+ php-ext-source-r2_addtoinifiles ";mapi.cache_max_sessions" "128"
+ php-ext-source-r2_addtoinifiles ";mapi.cache_lifetime" "300"
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/zarafa.logrotate zarafa || die "Failed to install logrotate"
+ fi
+
+ insinto /etc/zarafa
+ doins "${S}"/installer/linux/*.cfg || die "Failed to install config files"
+
+ dodir /var/log/zarafa
+ keepdir /var/log/zarafa
+
+ newinitd "${FILESDIR}"/zarafa-gateway.rc6 zarafa-gateway
+ newinitd "${FILESDIR}"/zarafa-ical.rc6 zarafa-ical
+ newinitd "${FILESDIR}"/zarafa-indexer.rc6 zarafa-indexer
+ newinitd "${FILESDIR}"/zarafa-monitor.rc6 zarafa-monitor
+ newinitd "${FILESDIR}"/zarafa-server.rc6 zarafa-server
+ newinitd "${FILESDIR}"/zarafa-spooler.rc6 zarafa-spooler
+
+}
+
+pkg_postinst() {
+ ewarn "Zarafa 7 has full UTF-8 support. Currently en_US.UTF-8"
+ ewarn "is hardcoded inside the sources. Please add en_US.UTF-8 UTF-8"
+ ewarn "to your /etc/locale.gen and run"
+ ewarn "'localedef -i en_US -f UTF-8 en_US.UTF-8' and 'locale-gen'"
+ elog "If you are upgrading from zcp-6.x please use upgrade script"
+ elog "located at /usr/share/doc/zarafa/zarafa7-upgrade. The script"
+ elog "requires dev-python/mysql-python to be installed in order to work"
+}
diff --git a/net-mail/zarafa/zarafa-7.0.6.ebuild b/net-mail/zarafa/zarafa-7.0.6.ebuild
new file mode 100644
index 0000000..473a929
--- /dev/null
+++ b/net-mail/zarafa/zarafa-7.0.6.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PHP_EXT_NAME="mapi"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+USE_PHP="php5-3"
+
+inherit versionator php-ext-source-r2 eutils
+
+ZARAFA_MAJOR=$(get_version_component_range 1 ${PV})
+ZARAFA_MINOR=$(get_version_component_range 2 ${PV})
+ZARAFA_MICRO=$(get_version_component_range 3 ${PV})
+ZARAFA_REV=32752
+
+DESCRIPTION="Open Source Groupware Solution"
+HOMEPAGE="http://zarafa.com/"
+SRC_URI="http://download.zarafa.com/community/final/${ZARAFA_MAJOR}.${ZARAFA_MINOR}/${PV}-${ZARAFA_REV}/sourcecode/zcp-${PV}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug ldap +logrotate static"
+
+RDEPEND=">=dev-libs/libical-0.44
+ =dev-cpp/libvmime-0.9.2_pre20120110
+ >=dev-lang/php-5.3.0
+ app-text/catdoc
+ app-text/poppler
+ dev-cpp/clucene
+ dev-db/mysql
+ dev-libs/libxml2
+ dev-libs/openssl
+ net-misc/curl
+ sys-libs/e2fsprogs-libs
+ sys-libs/zlib
+ dev-libs/boost
+ ldap? ( net-nds/openldap )
+ logrotate? ( app-admin/logrotate )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ sys-devel/gettext"
+
+#src_unpack() {
+# unpack ${P}.tar.bz2
+#}
+
+src_prepare() {
+
+ # Don't install php ini file, as installation doesn't
+ # respect Gentoo way of handling SAPIs
+ epatch "${FILESDIR}"/"${PN}"-6.40.1-no-php-conf.patch
+ epatch "${FILESDIR}"/"${P}"-gcc46_compile.patch
+}
+
+src_configure() {
+ econf \
+ --enable-oss \
+ --enable-release \
+ --disable-perl \
+ --disable-testtools \
+ --with-userscript-prefix=/etc/zarafa/userscripts \
+ --with-quotatemplate-prefix=/etc/zarafa/quotamails \
+ --with-indexerscripts-prefix=/etc/zarafa/indexerscripts \
+ $(use_enable static) \
+ $(use_enable debug)
+}
+
+src_compile() {
+ emake || die "Compilation failed"
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Use only some parts of PHP eclass
+ php-ext-source-r2_buildinilist php${slot}
+ php-ext-source-r2_addextension "${PHP_EXT_NAME}.so"
+
+ # Symlink the <ext>.ini files from ext/ to ext-active/
+ for inifile in ${PHPINIFILELIST} ; do
+ inidir="${inifile/${PHP_EXT_NAME}.ini/}"
+ inidir="${inidir/ext/ext-active}"
+ dodir "/${inidir}"
+ dosym "/${inifile}" "/${inifile/ext/ext-active}"
+ done
+
+ # Install PHP module
+ php-ext-source-r2_addtoinifiles ";mapi.cache_max_sessions" "128"
+ php-ext-source-r2_addtoinifiles ";mapi.cache_lifetime" "300"
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/zarafa.logrotate zarafa || die "Failed to install logrotate"
+ fi
+
+ insinto /etc/zarafa
+ doins "${S}"/installer/linux/*.cfg || die "Failed to install config files"
+
+ dodir /var/log/zarafa
+ keepdir /var/log/zarafa
+
+ newinitd "${FILESDIR}"/zarafa-gateway.rc6 zarafa-gateway
+ newinitd "${FILESDIR}"/zarafa-ical.rc6 zarafa-ical
+ newinitd "${FILESDIR}"/zarafa-indexer.rc6 zarafa-indexer
+ newinitd "${FILESDIR}"/zarafa-monitor.rc6 zarafa-monitor
+ newinitd "${FILESDIR}"/zarafa-server.rc6 zarafa-server
+ newinitd "${FILESDIR}"/zarafa-spooler.rc6 zarafa-spooler
+
+}
+
+pkg_postinst() {
+ ewarn "Zarafa 7 has full UTF-8 support. Currently en_US.UTF-8"
+ ewarn "is hardcoded inside the sources. Please add en_US.UTF-8 UTF-8"
+ ewarn "to your /etc/locale.gen and run"
+ ewarn "'localedef -i en_US -f UTF-8 en_US.UTF-8' and 'locale-gen'"
+ elog "If you are upgrading from zcp-6.x please use upgrade script"
+ elog "located at /usr/share/doc/zarafa/zarafa7-upgrade. The script"
+ elog "requires dev-python/mysql-python to be installed in order to work"
+}