You are not logged in.

#1 2009-10-10 23:19:46

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

[REQUEST] Zarafa Server

EDIT: i managed to get zarafa 6.30.3 compiled and and uploaded to AUR:

zarafa-libvmime: http://aur.archlinux.org/packages.php?ID=31170
zarafa-server: http://aur.archlinux.org/packages.php?ID=31174
zarafa-webaccess-ajax: http://aur.archlinux.org/packages.php?ID=31227

if you can, please test as there may be some hidden issues with php 5.3.  also, i have a weird issue on my box that may not exist on others (i have quad-core), i can only get webaccess working if i compile php with "--enable-debug", otherwise the MAPI php extension seems to be causing a segfault in apache child process.  still looking into this.  none of the rc.d/* scripts are done yet; zarafa has several services, but you can run the server with just "zarafa-server"

so far everything seems to work pretty good!

--------------------------------------------------------------------

hello,

i am a new user to Arch, only for about a week now, but i am already finding the community and documentation/wiki very resourceful and extensive.  my personal machines have all been converted seamlessly from Ubuntu, and i am in process of moving my servers to Arch from Gentoo.  i simply wish to thank everyone for their vibrant contributions in this first post.

as a new user i am not very familiar with creating AUR/PKGBUILD's, although i will be attempting to create this on my own, but would welcome any assistance.  i wish to package the Zarafa Server Community Edition.  for those who are unaware, Zarafa is an outstanding replacement for MS Exchange, supporting backend MTAs such as postfix, sports an absolutely phenomenal ajax-based webinterface, supports push email through Zpush, and also supports native caledaring and contacts.  i have an iphone, and i can use the zarafa server as a drop in replacement for MS Exchange, giving me all the benefits of syncing calendars and contacts, in addition to email.  the only difference between the free version and paid version, is that the paid version natively supports MS Outlook client over MAPI.  there is an eval version that supports 3 outlook clients, but requires registration and a eval serial.

the demo (web interface) is here:
http://demo.zarafa.com/

the download page is here:
http://www.zarafa.com/download-community

the free version's source is here (from the download page above):
http://download.zarafa.com/zarafa/drupa … ed54cd7eaf

there is some information on gentoo that may be of use:
http://en.gentoo-wiki.com/wiki/Zarafa

the system requires:
an MTA (postfix)
mysql
php
possible specific/patched versions of a few libraries (libvmime and others, from gentoo docs)
webaccess may require extraction from an RPM (per gentoo)

i was unable to find and references to this in the wiki/forums, so if this has already been done/attempted please kindly direct, else i will update as/if i make progress.

thanks

Last edited by extofme (2009-10-15 20:16:02)


what am i but an extension of you?

Offline

#2 2009-10-12 07:21:32

flo
Member
Registered: 2009-10-12
Posts: 6

Re: [REQUEST] Zarafa Server

Hallo,

unfortunately I'm also not very familiar with creating PKGBUILDs and won't be a great help there, but I'm also trying to get Zarafa working on Archlinux and would love to see it in the AUR wink.

As far as I know, libvmime isn't a big problem - there is a PKG in the AUR ( http://aur.archlinux.org/packages.php?ID=29283 ), which already contains the Zarafa patches. You'll only need to update the zarafa-vmime-patches' md5sum. Libical is also in the AUR.

But there might be a problem with PHP versions >= 5.3.0. At least there are also other people reporting there issues: http://forums.zarafa.com/viewtopic.php?f=9&t=3046

For me compiling Zarafa Server ends with the error message:

/.../zarafa-6.30.2/common/platform.linux.cpp:101: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status

Hope this helps a little bit wink

Offline

#3 2009-10-12 08:07:54

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [REQUEST] Zarafa Server

heh i was just about to post and you beat me too it.

after reading all the necesary stuff i have created libvmime PKGBUILD and zarafa-server PKGBUILD, mostly based off the gentoo ebuilds here:

http://bugs.gentoo.org/239514

i didnt even think to check the AUR for libvmime.  the package ive made seems to work pretty good, and it pulls everything directly from Zarafa.  there is a bug with one of there patches however, so i have to pipe it thru -- tr -d "\r" -- to remove all the carraige returns, else it wont apply.  i have informed zarafa via IRC.

zarafa 6.30.x depends on current versions of libical, so that is no longer an issue; we can use whats currently in the repo.

i am getting the uuid_generate build issue as well, and am still working on it.  its seems like its suppose to be provided by efsprogs but apparantly it isnt there.

im sure there are many issues with my PKGBUILD's, but here is what i have so far (im pretty sure i did some of the deps wrong...).  i still need to work on one for zarafa-webaccess.  i will push these to the AUR probably tomorrow.  im still trying to settle into all this Arch-ness :-)

here is my zarafa-libvmime:

# Contributor: C Anthony Risinger <extofme-at-gmail-dot-com>

pkgname=zarafa-libvmime
pkgver=0.7.1
pkgrel=1
pkgdesc="A powerful C++ class library for working with MIME messages and services like IMAP, POP or SMTP."
arch=('i686' 'x86_64')
url="http://www.vmime.org/"
license=('GPL3')
depends=()
makedepends=()
optdepends=()
source=("http://download.zarafa.com/mirror/libvmime-${pkgver}.tar.bz2"
        "http://developer.zarafa.com/download/zarafa-vmime-patches.tar.gz")
noextract=("zarafa-vmime-patches.tar.gz")
md5sums=('81f06a771d2de01d5982635838eb5f6a'
         'bd481786f4ecf0ebb6a9d576ced1185b')

build() {
  cd ${srcdir}/libvmime-0.7.1/
  for i in `tar -tf ../zarafa-vmime-patches.tar.gz | grep -e ^vmime.*diff$`; do
    tar -Oxzf ../zarafa-vmime-patches.tar.gz "${i}" | tr -d "\r" | patch -p1 -g0 -E --no-backup-if-mismatch || return 1
  done
  ./configure \
    --enable-debug \
    --enable-sasl \
    --enable-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
  make || return 1
  make DESTDIR=${pkgdir} install || return 1
}

and here is zarafa-server:

# Contributor: C Anthony Risinger <extofme-at-gmail-dot-com>

pkgname=zarafa-server
pkgver=6.30.2
pkgrel=1
pkgdesc="Open Source Groupware Solution"
arch=('i686' 'x86_64')
url="http://www.zarafa.com/"
license=('AGPL3')
depends=('libical>=0.40'
         'zarafa-libvmime=0.7.1'
         'php>=5.2.0'
         'mysql'
         'curl'
         'libxml2'
         'openssl'
         'zlib'
         'openldap'
         'logrotate'
         'gettext')
makedepends=('e2fsprogs')
optdepends=('zarafa-webaccess: for AJAX web-interface')
source=("zarafa-6.30.2.tar.gz::http://download.zarafa.com/zarafa/drupal/ondemand.php?version=${pkgver}&src=zarafa-${pkgver}")
noextract=()
md5sums=('80a9ce36bee45626ad033a2aca41f9b4')

build() {
  cd ${srcdir}/zarafa-${pkgver}/
  ./configure \
    --enable-debug \
    --enable-oss \
    --disable-perl \
    --disable-testtools \
    --with-userscript-prefix=/etc/zarafa/userscripts \
    --with-quotatemplate-prefix=/etc/zarafa/quotamails \
    --disable-static
  make || return 1
  make DESTDIR=${pkgdir} install || return 1
}

as i said, libvmime seems to work, but im getting the uuid_generate problem for zarafa-server.  will update when it hits the AUR and when i make further progress.  (will look into the other libvmime package.  they seem to be using some random patch... probly due to the carraige return bug detailed above, it stumped me for a good hour or so)


what am i but an extension of you?

Offline

#4 2009-10-12 08:51:47

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [REQUEST] Zarafa Server

and im pretty sure uuid_generate is available:

checking for uuid_create... no                                                                                                                                               
checking for uuid_create in -luuid... no                                                                                                                                     
checking for uuid_generate in -luuid... yes

the file is at:

/usr/include/uuid/uuid.h

the offending source file is:

src/zarafa-6.30.2/common/platform.linux.cpp

i tried adding:

#include <uuid.h>
--or--
#include <uuid/uuid.h>

former gave file not found, kind of expected, latter gave me the same error.  im not too familiar in C/C++ though so i will have to keep playing around.


what am i but an extension of you?

Offline

#5 2009-10-12 22:15:02

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [REQUEST] Zarafa Server

this guy from conversation on IRC seems to suggest there may be a bug in an archlinux package:

[16:45] <canthony> i am encountering a build problem on archlinux:  src/zarafa-6.30.2/common/platform.linux.cpp:101: undefined reference to `uuid_generate'
[16:46] <canthony> i have e2fsprogs installed, /usr/include/uuid/uuid.h exists
[16:46] <canthony> if someone has encountered anything like this, i will remain in the channel indefinately and check for answers/possibilities
[16:47] <canthony> im not real familiar with c/c++, but i tried adding an: #include <uuid/uuid.h>  : to no avail
[16:49] --> fbe_ has joined this channel (n=fbe@183.71-64-87.adsl-dyn.isp.belgacom.be).
[16:58] <rsc> canthony: -luuid seems missing
[16:59] <rsc> canthony: looks like a broken distro, only saw that at embedded/crosscompiled systems until now
[17:03] <canthony> hmm, do you have any ideas as to what i can try from here?
[17:04] <canthony> i mean i will file a bug agaist arch if i need to, but how can i manually tell it where its at
[17:08] <canthony> also the configure script doesnt catch it either:  checking for uuid_generate in -luuid... yes

its weird that the configure script has no problems....


what am i but an extension of you?

Offline

#6 2009-10-13 08:11:53

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [REQUEST] Zarafa Server

i managed to get past the uuid problem.  apparently there are alot of issues with zarafa makefiles according to other sources... i will post patches and hopefully get something to the AUR soon.

after you get past the -luuid issue, there are php problems.  php 5.3.0 had some internal functions renamed and other dropped vs. the 5.2.x series.  i managed to get past that also, and have patches against zarafa 6.30.2 for php 5.3 by using these sources as the final guide:

http://osdir.com/ml/fedora-extras-commi … 03488.html (first_arg_force_ref/fourth_arg_force_ref)
http://pecl.php.net/bugs/bug.php?id=13363 (ZVAL_ADDREF -> Z_ADDREF_P)

now however, im at the same point as the gentoo bug:

make[3]: *** No rule to make target `zarafa-ssm', needed by `all-am'.  Stop.

the last guy in the bug said that zarafa 6.30.3 fixes this.

EDIT: and "confirmed" in IRC:
[03:06] <imar> the ssm stuff is fixed in 6.30.3

6.30.3 is actually scheduled to be released today, so i will try again later on in the day.  i dont want to post any patches yet as they may no lager apply to this new version.  there are beta build, but you must be a registered forum member (i am) to get them, but they are inaccessible from a script.

hopefully zarafa will get it together and just publish some public repos with their current trunk.

Last edited by extofme (2009-10-13 08:23:09)


what am i but an extension of you?

Offline

#7 2009-10-13 18:44:56

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [REQUEST] Zarafa Server

i managed to get zarafa 6.30.3 compiled and and uploaded to AUR:

zarafa-libvmime: http://aur.archlinux.org/packages.php?ID=31170
zarafa-server: http://aur.archlinux.org/packages.php?ID=31174

there are probly so other issues with php 5.3, so any help is welcomed in testing these packages.  there are probly other problems with the PKGBUILD, i think some of the deps are unnecessary and some may be missing.  also, there are no RC script int he build yet, and other little tweaks (zarafa-server wouldnt start becasue it didnt have a server.cfg file anywhere, not sure if i need to copy a dummy one or what)

help is appreciated, zarafa is an excellent groupware solution!  i will be trying to package up the webinterface now.

Last edited by extofme (2009-10-13 18:45:38)


what am i but an extension of you?

Offline

#8 2009-10-15 20:16:49

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [REQUEST] Zarafa Server

uploaded webaccess package, see first post


what am i but an extension of you?

Offline

#9 2009-10-21 20:48:39

flo
Member
Registered: 2009-10-12
Posts: 6

Re: [REQUEST] Zarafa Server

Wow, really impressive.

I have been very busy during the last days and just managed to take a quick look at the state of your AUR packages.... Right now zarafa-server is compiling and I'll try to report asap.
But just out of curiosity - why didn't you use the libvmime package from the AUR, instead of building you own? Are there any problems?

Nevertheless - thanks a lot for your work wink

Offline

#10 2009-10-22 04:17:15

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [REQUEST] Zarafa Server

yeah i was going to use that package, but it was out of date and using an irrelevant patch from a gentoo bug report.  there was some erroneous whitespace in one of the patches that was making it not apply correctly (although this probably would have worked with the correct patch flags [-N ignore whitespace]); i brought it up with zarafa and they fixed it, so the md5 would not have matched either... plus its an outdated version of libvmime that zarafa needs, so to me at least, it doesnt seem appropriate to take the libvmime namespace unless the version is current.  my PKGBUILD can apply all the patches natively now.

everything seems to be working smoothly with the exception of the php debug issue.  unfortunately, right now at least and i think this will change but i dont know when, zarafa packages the MAPI php extension into the zarafa server, so i have to make php a makedepend for zarafa-server.  i would like to move this to the webaccess package, but cant for now.  the php issue doesnt seem to affect the actual server at all; only the MAPI based webaccess.  still trying to track that down, for now you have to build php with --enable-debug, then compile zarafa-server, but YMMV.

there are some things left to do, and i will definately be doing all of it soon, as i will be using this package to host a few email domains.  ATM im busy getting my server set up with LXC containers and libvirt, then back to zarafa:

1) add a couple tweaks to the patch command to ignore whitespace and others
2) i thought there was only one log file but there is one for each service, so i need to change permissions on the /var/log/zarafa folder
3) add default config and patch for every zarafa service
4) change the autogenerated UID/GID to a system one so it wont show up in graphical login managers
5) logrotate?  zarafa might do this itself but im not sure
6) change the webaccess package name to just zarafa-webaccess
7) make webaccess install to /srv/http/webaccess instead of /srv/http/zarafa-webaccess-ajax : more "defaulty" might not be good though im not sure
8) adapt all the gentoo rc.d/* scripts to Arch
9) add Zpush to webaccess package
10) mobile webaccess? im not sure what this is about but it might need a new package, havent even looked at it yet

let me know if you find/think of anything else


what am i but an extension of you?

Offline

Board footer

Powered by FluxBB