summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Piasek <dagger@gentoo.org>2011-07-08 12:21:26 +0100
committerRobert Piasek <dagger@gentoo.org>2011-07-08 12:21:26 +0100
commit053372d39de5c020967028707ae1a1abfbb39bc2 (patch)
tree026b715a4e791ad9ae63f4858f46d4373a38f7d9
parentAdd version 0.9_rc3 (diff)
downloaddagger-053372d39de5c020967028707ae1a1abfbb39bc2.tar.gz
dagger-053372d39de5c020967028707ae1a1abfbb39bc2.tar.bz2
dagger-053372d39de5c020967028707ae1a1abfbb39bc2.zip
Add ZCP and Zarafa-webaccess 7.0.0
-rw-r--r--dev-cpp/libvmime/ChangeLog8
-rw-r--r--dev-cpp/libvmime/Manifest5
-rw-r--r--dev-cpp/libvmime/libvmime-0.9.2_pre20101213.ebuild72
-rw-r--r--net-mail/zarafa/ChangeLog5
-rw-r--r--net-mail/zarafa/Manifest4
-rw-r--r--net-mail/zarafa/zarafa-7.0.0.ebuild122
-rw-r--r--www-apps/zarafa-webaccess/ChangeLog6
-rw-r--r--www-apps/zarafa-webaccess/Manifest4
-rw-r--r--www-apps/zarafa-webaccess/zarafa-webaccess-7.0.0.ebuild58
9 files changed, 280 insertions, 4 deletions
diff --git a/dev-cpp/libvmime/ChangeLog b/dev-cpp/libvmime/ChangeLog
index f0105e5..c8a6968 100644
--- a/dev-cpp/libvmime/ChangeLog
+++ b/dev-cpp/libvmime/ChangeLog
@@ -1,7 +1,13 @@
# ChangeLog for dev-cpp/libvmime
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*libvmime-0.9.2_pre20101213 (08 Jul 2011)
+
+ 08 Jul 2011; Robert Piasek <dagger@gentoo.org>
+ +libvmime-0.9.2_pre20101213.ebuild:
+ Add libvmime-0.9.2_pre
+
28 Oct 2010; Robert Piasek <dagger@gentoo.org> libvmime-0.7.1.ebuild,
+files/libvmime-0.7.1-invlude_signal.patch:
Small patch to fix compilation issues
diff --git a/dev-cpp/libvmime/Manifest b/dev-cpp/libvmime/Manifest
index 499fa87..515ff46 100644
--- a/dev-cpp/libvmime/Manifest
+++ b/dev-cpp/libvmime/Manifest
@@ -1,6 +1,9 @@
AUX libvmime-0.7.1-invlude_signal.patch 301 RMD160 6b7ec6fe35e604cea27f61148c7b3319e043d1bc SHA1 a47203994afc6db027541801242dab1bd016748f SHA256 c9731762c6d3af6b885f54379e33f063c42a5a7bd86fe81680b1a0a7e446c526
DIST libvmime-0.7.1.tar.bz2 418302 RMD160 259983c8844108c8040bcbae2ea53e453a811124 SHA1 30fefbdd31c2fa46976984f18d4d21bf3c2ec20a SHA256 fc3476aec565341594c7c4dca982539695b61ecb92a438f19860e9130ca019e3
+DIST libvmime-0.9.2+svn581.tar.bz2 520479 RMD160 64a5da0aab87cc8d8c3af1684424419144906f63 SHA1 fb5f73f471b3904bb5f8c0b9a31403b27dfaec68 SHA256 f1aaa124d40f10b71910cacb059aa77f146094a5ecddc70e46409196b26b26c7
+DIST zarafa-vmime-patches-0.9.2.tar.bz2 3821 RMD160 eb523359fb3a545e0bede0e9195a406294bc7fa6 SHA1 9c2747b2d6dfd8fd8db16c34fbfc1239b327bd06 SHA256 07f042321bce911aff02be50c737e19faec6ae038867a40aa7d9615e0ecea2f0
DIST zarafa-vmime-patches.tar.gz 12326 RMD160 db7d53e7876208f8f6bd773c28350b834a56c0b4 SHA1 b85c3b6a25eb5d20429a5532c52b01e54549f7d2 SHA256 f6eacba0c8e7f33ee7b9a9acf9ea1b230d205c8da4710633e3c512d902e60d7d
EBUILD libvmime-0.7.1.ebuild 1588 RMD160 170a1a8c08973e76841307f3dcdd4ce0c9ef2740 SHA1 313efdd041d8f33b3e6920497c59144ad3f933fa SHA256 e9d078e579cffd08886eae1eada16a64d4314c0241ce5382d24586c705a40aca
-MISC ChangeLog 276 RMD160 e4dc07230432467f5664850137c0f392f82e9ec9 SHA1 bfd658f2fd20a619812f1e4e4bc3939ebb8da395 SHA256 15ccc4c75a1e6e115be067817cff49b363d2de8a699baa97d96c022fec5c9b60
+EBUILD libvmime-0.9.2_pre20101213.ebuild 1689 RMD160 670baafb780502119358fa8b153c043a107ae6d2 SHA1 3009da3059582d0215f1f77d5a9770d999ea184e SHA256 acd2ac4fd1a57723575993c7f5ec88c901f812c61520ed579c066fc3b0aefd13
+MISC ChangeLog 432 RMD160 c45855b787b7010350495e603f0faafdd9bf3224 SHA1 17cd9926d76d39c782f141299877674763e12b7f SHA256 03637c1c9dee83bd457814269c82c8af723ce9df9b4697a1a257f824a8bc245e
MISC metadata.xml 304 RMD160 23e397929b6605943317b4fbd69db305c5ef8a02 SHA1 f3b916535984f33f3043d8604df1e0ef339c3a1c SHA256 0c98ac7f0a2531510882542d931289f98051eee6b58aa0c5f598d9ba0c4454c3
diff --git a/dev-cpp/libvmime/libvmime-0.9.2_pre20101213.ebuild b/dev-cpp/libvmime/libvmime-0.9.2_pre20101213.ebuild
new file mode 100644
index 0000000..1e42758
--- /dev/null
+++ b/dev-cpp/libvmime/libvmime-0.9.2_pre20101213.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit eutils
+
+ZARAFA_PATCHES="zarafa-vmime-patches-0.9.2.tar.bz2"
+
+DESCRIPTION="A powerful C++ class library for working with MIME messages and services like IMAP, POP or SMTP."
+HOMEPAGE="http://www.vmime.org/"
+SRC_URI="http://download.zarafa.com/community/final/7.0/7.0.0-27791/sourcecode/libvmime-0.9.2+svn581.tar.bz2
+ http://dev.gentoo.org/~dagger/files/${ZARAFA_PATCHES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug doc examples sasl ssl"
+
+RDEPEND="sasl? ( net-libs/libgsasl )
+ ssl? ( net-libs/gnutls )
+ virtual/libiconv"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S=${WORKDIR}/${PN}-0.9.2
+
+src_prepare() {
+ EPATCH_FORCE=yes
+ EPATCH_SUFFIX="diff"
+ EPATCH_SOURCE="${WORKDIR}" epatch
+# epatch "${FILESDIR}"/"${PN}"-0.7.1-invlude_signal.patch
+
+ sed -i \
+ -e "s|doc/\${PACKAGE_TARNAME}|doc/${PF}|" \
+ -e "s|doc/\$(GENERIC_LIBRARY_NAME)|doc/${PF}|" \
+ configure Makefile.in || die "sed failed"
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug) \
+ $(use_enable sasl) \
+ $(use_enable ssl tls) \
+ --enable-platform-posix \
+ --enable-messaging \
+ --enable-messaging-proto-pop3 \
+ --enable-messaging-proto-smtp \
+ --enable-messaging-proto-imap \
+ --enable-messaging-proto-maildir \
+ --enable-messaging-proto-sendmail
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ if use doc ; then
+ doxygen vmime.doxygen || die "doxygen failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use doc ; then
+ dohtml doc/html/*
+ fi
+
+ insinto /usr/share/doc/${PF}
+ use examples && doins -r examples
+}
diff --git a/net-mail/zarafa/ChangeLog b/net-mail/zarafa/ChangeLog
index a556a78..3edd83f 100644
--- a/net-mail/zarafa/ChangeLog
+++ b/net-mail/zarafa/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*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:
diff --git a/net-mail/zarafa/Manifest b/net-mail/zarafa/Manifest
index 67edcab..ed6c58f 100644
--- a/net-mail/zarafa/Manifest
+++ b/net-mail/zarafa/Manifest
@@ -13,8 +13,10 @@ AUX zarafa.logrotate 1227 RMD160 a0b3e0a50886d04cd28ad2ead2cc8589101f47f9 SHA1 d
DIST zcp-6.40.7.tar.gz 5362979 RMD160 d54deed52d6899802321cbd0b6f1ca999b6eaf8d SHA1 4766f0522e32a6149dbbdb015c9d4d5c6ca06b87 SHA256 869d25970485e32a7e5323b7ba305ef3146d74745b7466e13a61d915332ab2ae
DIST zcp-6.40.8.tar.gz 5428506 RMD160 36ce2095a1d0126a43405ac50b289107910feeaf SHA1 6c342a725610fb38dc6a5cef6e0d9bc160252fd4 SHA256 206bb736731f5b3c3fdc0d34c495b8c2af9e3245770d8636bc97d06ff7363023
DIST zcp-6.40.9.tar.gz 5434001 RMD160 6a14d627dfbdf77c17839e1ab8840695af9e3b34 SHA1 7cf5b7d08d521571d00e06c9f97a8498b8fe49eb SHA256 23653649497b0b26322b8152c639eec1087727d2370947050c239dc3d7c1f03d
+DIST zcp-7.0.0.tar.gz 6006829 RMD160 584b5593696f850ae8299806e447e61af389ec46 SHA1 e7463593cee89343b2129b8bd6977f95cc778279 SHA256 b7c3c85c0578eb5ca0c5f5d22bbef315f2f52e22208d6e1193ffa505b05e952e
EBUILD zarafa-6.40.7.ebuild 2999 RMD160 c816fb06097d65977a56cafda33a5f519a7b2ff0 SHA1 9d28bece7b4b0508ed289409454b2e5e1a82aadb SHA256 accc3728474c3546f23dca7f4f3098e358090daad53730fc2ef85adcba61ea02
EBUILD zarafa-6.40.8.ebuild 2999 RMD160 03713511dcdb230412679411c3ac3fa89ea2f3b5 SHA1 a1b9250191ec4e7c5441fd057b225ed6c4040ee5 SHA256 ec976c4b6e9c480bf67699cd193d6b09ade6dfdb8538c8a255cc4607a2833e38
EBUILD zarafa-6.40.9.ebuild 2999 RMD160 726e91dbca6c1776464ec635f14cead1215cb576 SHA1 e29a005ef553d3bb1ee56f562586638518dcf8c0 SHA256 1d718e2a2e1a7104a51412a516e7d3728a48fee483a162739c57b254ee17b26f
-MISC ChangeLog 1850 RMD160 d680893e4a9256215cb4e67634e48d66b3db6f53 SHA1 a6ccb5cc0ad6bdf96379eaf8d7ed1c3241b61c7c SHA256 0c4735df5bfcf3433008d1ce413fd6cf81f926965a318c33269c70fc6a2d3517
+EBUILD zarafa-7.0.0.ebuild 3402 RMD160 9318ffc2c6cc3e26100192fdb81ba34348dc7ad8 SHA1 db4e78a4b6c94d150ff6769a6da839788c951483 SHA256 1a57ff2a317f1d2a154d179b9b74fb81bd18b3e904b714bbb462f050ec3d5563
+MISC ChangeLog 1967 RMD160 521ad093a400e2c55908ce4e3a1e1da65e0ec52b SHA1 c967d19f0b6df5777b54789e703b0f7f86f5b1e5 SHA256 1dcf4470554c3345018c1690c4f29c09d9adcb7c3447e46171aca494817913ca
MISC metadata.xml 232 RMD160 1003df9706c53108377113d61c9c95bf485cc494 SHA1 fc994415ecad6f285541b567143cb40f2ef5f155 SHA256 1a507fc874f29bab501db0ca4cf1328971a64d415d35c7e050c59747eb0d2d1a
diff --git a/net-mail/zarafa/zarafa-7.0.0.ebuild b/net-mail/zarafa/zarafa-7.0.0.ebuild
new file mode 100644
index 0000000..464f5a8
--- /dev/null
+++ b/net-mail/zarafa/zarafa-7.0.0.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2011 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=27791
+
+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_pre20101213
+ >=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 \
+ --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/www-apps/zarafa-webaccess/ChangeLog b/www-apps/zarafa-webaccess/ChangeLog
index f7659dc..8941a83 100644
--- a/www-apps/zarafa-webaccess/ChangeLog
+++ b/www-apps/zarafa-webaccess/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*zarafa-webaccess-7.0.0 (08 Jul 2011)
+
+ 08 Jul 2011; Robert Piasek <dagger@gentoo.org>
+ +zarafa-webaccess-7.0.0.ebuild:
+ Add zarafa-webaccess 7.0.0
+
*zarafa-webaccess-6.40.9 (20 Jun 2011)
20 Jun 2011; Robert Piasek <dagger@gentoo.org>
diff --git a/www-apps/zarafa-webaccess/Manifest b/www-apps/zarafa-webaccess/Manifest
index 49ccfc3..322b01a 100644
--- a/www-apps/zarafa-webaccess/Manifest
+++ b/www-apps/zarafa-webaccess/Manifest
@@ -1,8 +1,10 @@
DIST zcp-6.40.7.tar.gz 5362979 RMD160 d54deed52d6899802321cbd0b6f1ca999b6eaf8d SHA1 4766f0522e32a6149dbbdb015c9d4d5c6ca06b87 SHA256 869d25970485e32a7e5323b7ba305ef3146d74745b7466e13a61d915332ab2ae
DIST zcp-6.40.8.tar.gz 5428506 RMD160 36ce2095a1d0126a43405ac50b289107910feeaf SHA1 6c342a725610fb38dc6a5cef6e0d9bc160252fd4 SHA256 206bb736731f5b3c3fdc0d34c495b8c2af9e3245770d8636bc97d06ff7363023
DIST zcp-6.40.9.tar.gz 5434001 RMD160 6a14d627dfbdf77c17839e1ab8840695af9e3b34 SHA1 7cf5b7d08d521571d00e06c9f97a8498b8fe49eb SHA256 23653649497b0b26322b8152c639eec1087727d2370947050c239dc3d7c1f03d
+DIST zcp-7.0.0.tar.gz 6006829 RMD160 584b5593696f850ae8299806e447e61af389ec46 SHA1 e7463593cee89343b2129b8bd6977f95cc778279 SHA256 b7c3c85c0578eb5ca0c5f5d22bbef315f2f52e22208d6e1193ffa505b05e952e
EBUILD zarafa-webaccess-6.40.7.ebuild 1402 RMD160 a556b04e156dff39b1ffd7c3aaa245c83241903b SHA1 ac09b9a1cabf6a13cc86634b47172288618529f9 SHA256 8385aeac2c0568796463385bf2c6964f73b7b8916d218a24159f03ed20122c1c
EBUILD zarafa-webaccess-6.40.8.ebuild 1402 RMD160 7f2c4631bcf2b74980773a4d7e78ee56bad96fbd SHA1 2115999c3bb9d1fefc748058d5fe9496c79df037 SHA256 11aec76694f18359609522afe90fbb1421cbbd62a0b4ceaedfdb46dec446914d
EBUILD zarafa-webaccess-6.40.9.ebuild 1402 RMD160 96a30d8090a8309abeea1ec89ac5c5dbe2f1bd6f SHA1 e75ef7c28cded4cae921b5233fee86f1f8eae9e1 SHA256 1e56d4d175769d0184c57597e47bfa7debec519d4e50cdce8d500fbf1aeaf49e
-MISC ChangeLog 1477 RMD160 26ff9c661342686b033cbb8c3f08c1cf774b4cae SHA1 8b25924836fec768c86b4fbedd29ea73869dbf6d SHA256 e2a4ffad6a9062b391de687935272943ffd8b9aa71522d593373715d396a25ee
+EBUILD zarafa-webaccess-7.0.0.ebuild 1402 RMD160 323830d11b4e2eb557650c5b8fa1d4d9471b9471 SHA1 ca92fc06755de8e2656d7d3c840066b8f061fdd1 SHA256 c5e1d80a2bfcf375a317f7f4dd60619d9cd421e4b2609a00f83e841e977d80f8
+MISC ChangeLog 1629 RMD160 512c066c10148abf358deee26ecbce97c9b9ad05 SHA1 ff451419e204e46f4006b3da4912231559222540 SHA256 24d8ae743dd981b6d9f7d3cf39b679e9fc88644a86666f17cbe3ac5b72960827
MISC metadata.xml 296 RMD160 d8f057fffd0d6d3c84b2d5481481f8848cc7f5aa SHA1 d3e950b1ca7636e89f44d3182753cb2384dcd11c SHA256 996385c7eb65b2fe398df26ebb0da85233a4f6c135a1256da9c53bd96ad450f4
diff --git a/www-apps/zarafa-webaccess/zarafa-webaccess-7.0.0.ebuild b/www-apps/zarafa-webaccess/zarafa-webaccess-7.0.0.ebuild
new file mode 100644
index 0000000..de5f7f9
--- /dev/null
+++ b/www-apps/zarafa-webaccess/zarafa-webaccess-7.0.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit versionator webapp eutils depend.php
+
+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=27791
+
+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"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+need_php_httpd
+
+S="${WORKDIR}"/${P/-webaccess/}/php-webclient-ajax
+
+RDEPEND=">=dev-libs/libical-0.40"
+DEPEND="${RDEPEND}"
+
+pkg_setup () {
+ webapp_pkg_setup
+ require_php_with_use iconv session xml
+}
+
+src_install() {
+ webapp_src_preinst
+
+ # make .po files
+ for pofile in "${S}"/server/language/*/LC_MESSAGES/zarafa.po; do
+ msgfmt -f -o ${pofile%%.po}.mo ${pofile}
+ rm ${pofile}
+ done
+
+ dodir /var/lib/zarafa-webaccess/plugins
+ dodir /var/lib/zarafa-webaccess/tmp
+ dosym /var/lib/zarafa-webaccess/plugins "${MY_HTDOCSDIR}"/plugins
+
+ # remove unneeded files
+ rm zarafa-webaccess.conf
+
+ cp "${S}"/config.php.dist "${S}"/config.php
+ insinto "${MY_HTDOCSDIR}"
+ doins -r "${S}"/*
+
+ webapp_configfile "${MY_HTDOCSDIR}"/config.php
+ webapp_serverowned "${MY_HTDOCSDIR}"/config.php
+
+ webapp_src_install
+}