View previous topic :: View next topic |
Author |
Message |
papango n00b
Joined: 30 Mar 2008 Posts: 2
|
Posted: Sun Mar 30, 2008 10:50 am Post subject: |
|
|
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 |
|
|
mobian n00b
Joined: 17 Dec 2004 Posts: 72
|
Posted: Mon Mar 31, 2008 2:16 pm Post subject: |
|
|
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 |
|
|
ar_it Apprentice
Joined: 25 Feb 2006 Posts: 212 Location: Poland/Warsaw
|
|
Back to top |
|
|
mobian n00b
Joined: 17 Dec 2004 Posts: 72
|
Posted: Mon Apr 14, 2008 7:40 pm Post subject: |
|
|
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 |
|
|
flocchini Veteran
Joined: 17 May 2003 Posts: 1124 Location: Milano, Italy
|
Posted: Sat Apr 26, 2008 1:14 am Post subject: |
|
|
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 |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Sat Apr 26, 2008 4:41 am Post subject: |
|
|
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 |
|
|
mobian n00b
Joined: 17 Dec 2004 Posts: 72
|
Posted: Tue Apr 29, 2008 3:26 pm Post subject: |
|
|
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 |
|
|
mobian n00b
Joined: 17 Dec 2004 Posts: 72
|
|
Back to top |
|
|
mathew n00b
Joined: 02 Aug 2002 Posts: 35
|
Posted: Sun Sep 14, 2008 11:37 pm Post subject: |
|
|
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 |
|
|
mobian n00b
Joined: 17 Dec 2004 Posts: 72
|
Posted: Mon Sep 15, 2008 2:35 pm Post subject: |
|
|
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 |
|
|
mobian n00b
Joined: 17 Dec 2004 Posts: 72
|
Posted: Wed Oct 01, 2008 5:33 am Post subject: |
|
|
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 |
|
|
|