Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Zimbra 4.5.0_RC1] Pre release of svn ebuild
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
papango
n00b
n00b


Joined: 30 Mar 2008
Posts: 2

PostPosted: Sun Mar 30, 2008 10:50 am    Post subject: Reply with quote

hi,

i tried the first post but i already get this error on "layman -a zimbra":
Overlay "zimbra" does not exist!

what does it mean ?!
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Mon Mar 31, 2008 2:16 pm    Post subject: Reply with quote

I don't think the zimbra overlay is being maintained at all anymore. Your only option of trying to get this to work is to copy the ebuild into your local overlay and try using that one. But, I have not yet been able to get zimbra installed using this mechanism. The only way I got it working was by installing inside a chroot, as described here:

http://wiki.zimbra.com/index.php?title=Building_Zimbra_on_Gentoo

Good luck!
Back to top
View user's profile Send private message
ar_it
Apprentice
Apprentice


Joined: 25 Feb 2006
Posts: 212
Location: Poland/Warsaw

PostPosted: Mon Mar 31, 2008 6:59 pm    Post subject: Reply with quote

papango wrote:
hi,

i tried the first post but i already get this error on "layman -a zimbra":
Overlay "zimbra" does not exist!

what does it mean ?!

Hi
I find this in zimbra site
http://wiki.zimbra.com/index.php?title=Building_the_software_yourself
[/url]
_________________
ar_it
https://www.teamquest.pl/
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Mon Apr 14, 2008 7:40 pm    Post subject: Reply with quote

Has anyone made any further headway on this ? I was looking into it the other day and saw that the latest zimbra release allows building from source using perforce. I don't have any experience with that, but was hoping someone who did might want to take a look:

http://wiki.zimbra.com/index.php?title=Building_Zimbra_using_Perforce
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sat Apr 26, 2008 1:14 am    Post subject: Reply with quote

zimbra whould be veri nice on gentoo... I tried to run it trough debootstrap chroot but no luck
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Sat Apr 26, 2008 4:41 am    Post subject: Reply with quote

now that they support building from source I might try this again in a few weeks, im gonna be busy though the next month tough
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Tue Apr 29, 2008 3:26 pm    Post subject: Reply with quote

That would be awesome. I'm planning to look more into this as well as time permits. I'm in the middle of moving from Texas to Colorado, so I'm pretty swamped at the moment, but hopefully in a few weeks things will quiet down and I can look more closely at this as well.
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Tue Aug 26, 2008 3:18 pm    Post subject: Reply with quote

Looks like an adventurous ubuntu user has written up a very nice howto on how to build zimbra from source using the new perforce repositories.

The first URL shows how to setup the build environment:
http://zimbra.ijichi.org/documentation/ubuntu-port/ubuntu-build-instructions/setup-environment

This next URL shows how to build all the third party components from source:
http://varlogmessages.vroomvroom.org/documentation/ubuntu-port/ubuntu-build-instructions/ubuntu-build-thirdparty

This URL is how to build zimbra itself from source:
http://varlogmessages.vroomvroom.org/documentation/ubuntu-port/ubuntu-build-instructions/build-zcs

I haven't had any time to look into this yet, but in case this is of interest to someone else, I thought I'd post the links here.[/topic]
Back to top
View user's profile Send private message
mathew
n00b
n00b


Joined: 02 Aug 2002
Posts: 35

PostPosted: Sun Sep 14, 2008 11:37 pm    Post subject: Reply with quote

mobian wrote:
Looks like an adventurous ubuntu user has written up a very nice howto on how to build zimbra from source using the new perforce repositories.


I started to work through the guide and at the end is a rough outline of what I did. However it all came unstuck when I became aware that Zimbra requires it's own copies of apache, mysql & php. This sucks when you already have those packages installed and are using them for other purposes (i.e. webserver). This thread suggests that it might be possible to hack the configuration, but I haven't looked into it.

Unfortunately it appears that Zimbra doesn't fit very well with the Gentoo philosophy and probably prefers to run on it's own server. A fine idea for a big corporate, but for a small business / charity not so good. The alternative is to hack Zimbra to integrate better with third-party software.

These are my notes incase someone finds them useful.
Code:
#!/bin/bash

# This build script is based on the following url:
# http://zimbra.ijichi.org/documentation/ubuntu-port/ubuntu-build-instructions/setup-environment
#
# The intention is to make this the basis for an ebuild script by someone
# more knowledgeable about ebuilds
#
#

#############################################################################
#
# Setup environment
#
BUILD_DIR="/tmp/build.zimbra"
BUILD_HOME="${BUILD_HOME}/source"

# These should be standard variables
# need to consider using java-config to select the correct jdk version (1.5)
#JAVA_HOME=${BUILD_HOME}/java
#ANT_HOME=${BUILD_HOME}/ant
#PATH=${BUILD_HOME}/java/bin:${BUILD_HOME}/ant/bin:${BUILD_HOME}/bin:$PATH

P4EDITOR=emacs
P4PORT=codes.zimbra.com:2666
P4USER=public
P4CLIENT=public-view
P4PASSWD=public1234
P4=${BUILD_HOME}/bin/p4
RELEASE=FRANKLIN
PERLLIB=${BUILD_HOME}/source/FRANKLIN/ThirdParty/Perl/zimbramon/lib
PERLLIB=$PERLLIB:${BUILD_HOME}/source/FRANKLIN/ThirdParty/Perl/zimbramon/lib/x86_64-linux-gnu-thread-multi:/opt/build.zimbra/source/FRANKLIN/ThirdParty/Perl/zimbramon/lib/i486-linux-gnu-thread-multi

# export PATH PS1 JAVA_HOME ANT_HOME BUILD_HOME PERLLIB P4EDITOR P4PORT P4USER P4CLIENT P4PASSWD P4 RELEASE

#############################################################################
#
# Install OS Packages for building
#
# all the following were installed on my gentoo
# my guess is they are pretty common dependencies
# missing from the apt-get line are:
#  * libltdl3-dev (part of libtool?)
#  * libpcre3-dev (part of libpcre?)
emerge --pretend sys-libs/ncurses sys-devel/libtool sys-devel/automake sys-devel/libperl sys-devel/bison sys-devel/flex sys-libs/zlib dev-libs/libpcre

#############################################################################
#
# Setup Java and ANT for building
#
# This section is dodgy, and kind of assumes that java has been installed
# (see http://www.gentoo.org/doc/en/java.xml)
# requires ant 1.7.0 (or later?)
emerge --pretend virtual/jdk dev-java/ant

# Set the user vm to 1.5 as Zimbra doesn't work with jdk1.6
java-config --set-user-vm=sun-jdk-1.5



#############################################################################
#
# Create Users/Groups
#
groupadd zimbra && useradd -g zimbra zimbra
mkdir -p /opt/zimbra
usermod -d /opt/zimbra zimbra
usermod -s /bin/bash zimbra

# I already had postfix installed
#groupadd postdrop
#groupadd postfix
#useradd -g postfix postfix

#############################################################################
#
# Obtain Zimbra Source
#
# obtain a binary copy of p4 as there is no ebuild
# (dev-util/perforce-cli existed in the past, but it has been removed)
mkdir -p ${BUILD_DIR}/bin; cd ${BUILD_DIR}/bin
# changed url
wget http://filehost.perforce.com/perforce/r08.1/bin.linux26x86/p4
chmod a+rx p4

# now sync the source
mkdir -p ${BUILD_DIR}/source; cd ${BUILD_DIR}/source
# unfortunately this line changes with different tagged releases :-(
# the source document had FRANKLIN-506. To find the current version, I had
# to checkout //depot/zcs/...
${BUILD_DIR}/bin/p4 sync -f //depot/zcs/FRANKLIN-509/...
# annoyingly, the above line puts the source into /home/programmes, so
mv /home/programmes/zimbra ${BUILD_DIR}

#############################################################################
#
# Build 3rd Party Products
# http://varlogmessages.vroomvroom.org/documentation/ubuntu-port/ubuntu-build-instructions/ubuntu-build-thirdparty
# This section contains a bad assumption - Zimbra wants it's own copy of these packages :-(.
#
# assumptioin: sleepycat = berkley db = sys-libs/db
# masked: app-text/xml2 ~x86
# it is possible that net-mail/mailgraph is required
# www-servers/nginx triggered a file collision on
#   /usr/lib/perl5/5.8.8/i686-linux/perllocal.pod
# packages in portage
emerge --pretend dev-libs/openssl sys-libs/db dev-db/mysql app-text/xml2 app-crypt/heimdal net-misc/curl dev-libs/cyrus-sasl net-nds/openldap app-text/aspell app-antivirus/clamav www-servers/apache dev-lang/php mail-mta/postfix mail-filter/dspam net-analyzer/rrdtool net-analyzer/net-snmp net-misc/memcached www-servers/nginx

# packages in swegener overlay
emerge --pretend --verbose app-portage/layman
layman -a swegener
emerge --pretend --verbose dev-util/google-perftools

#############################################################################
#
# Build Zimbra
# http://varlogmessages.vroomvroom.org/documentation/ubuntu-port/ubuntu-build-instructions/build-zcs
#
# first step is to create UNKOWN.def in ${BUILD_DIR}/source/Zimbra/Perforce-repository/FRANKLIN-509/ZimbraBuild/defs/
# with the following contents:
# # Definitions for Gentoo
PACKAGING_COMMAND := /dev/null
PACKAGING_OPTIONS =
PACKAGE_EXT := ebuild
include $(DEFS_DIR)/plat_common.def

# now try to compile
cd ${BUILD_DIR}/source/Zimbra/Perforce-repository/FRANKLIN-509/ZimbraBuild
make core
# the above command fails at the *** Creating openldap line
# the actual error is
tar: /tmp/build.zimbra/source/Zimbra/Perforce-repository/FRANKLIN-509/ZimbraBuild/../ThirdPartyBuilds/UNKNOWN/openldap/openldap-2.3.42.8z.tgz: Cannot open: No such file or directory

and my definition of UNKOWN.def, which contains some blatent errors.
Code:
# Definitions for Gentoo

PACKAGING_COMMAND := /dev/null

PACKAGING_OPTIONS =

PACKAGE_EXT := ebuild

include $(DEFS_DIR)/plat_common.def

_________________
my blog on gentoo
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Mon Sep 15, 2008 2:35 pm    Post subject: Reply with quote

WOW! This is really great, so glad that someone has started to work on a gentoo version of this. I tried playing with it as well, but couldn't get anything to work and finally gave up. Looks like you made it further than I did though. I'll play around with your version when I get a chance! Thanks for all your work!
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Wed Oct 01, 2008 5:33 am    Post subject: Reply with quote

Anyone made any further progress on this ? I tried playing with what matthew provided, but unfortunately wasn't able to get any further than he was. Perhaps we're just going to have to settle for the debootstrap method of installing zimbra :(.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum