Results 1 to 3 of 3

Thread: CentOS 4.2 Build

Threaded View

  1. #1
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    10

    Default CentOS 4.2 Build

    I have the CVS build nearly working on CentOS 4.2. It's pretty straight forward, and can be done one of two ways. You'd use one of the two procedures that follows, then just follow the typical CVS build instructions as found in ZimbraServer/docs. I should have a build script available soon though :-)

    The long way is:

    1) Add Build Platform

    Edit: ZimbraBuild/rpmconf/Build/get_plat_tag.sh, and add:

    Code:
           grep "CentOS release 4" /etc/redhat-release > /dev/null 2>&1
            if [ $? = 0 ]; then
                    echo "CentOS4"
                    exit 0
            fi
    To the 'if' statement section at the top labeled "if [ -f /etc/redhat-release ];".

    2) Add dir in WebClient

    cd ZimbraWebClient/bin
    cp -ra RHEL4 CentOS4

    3) Add PCRE Target

    Edit: ZimbraBuild/defs/coretargets.def

    Add a line which reads:

    Code:
    pcre_CentOS4: ;
    4) Create the CentOS4.def file

    In same dir as step 3:

    cp RHEL4.def CentOS4.def

    5) Use 'CentOS4' when building

    When following the CVS build instructions, whenever it calls for you to create a dir for the platform you're on, such as RHEL4, FC3, or whatever, you'd just use CentOS4.

    -- OR --

    The easier way to do all the above is simply to edit:

    ZimbraBuild/rpmconf/Build/get_plat_tag.sh

    And add this to the top (just like above):

    Code:
           grep "CentOS release 4" /etc/redhat-release > /dev/null 2>&1
            if [ $? = 0 ]; then
                    echo "RHEL4"
                    exit 0
            fi
    Except that with this, you're identifying as RHEL4, not CentOS4. So when building, you'd just use RHEL4 for the dir names.

    Theoretically, RHEL4 and CentOS4 are quite similar, if not identical. The difference should be in support, and availability of non-free packages. Being that the build uses only freely available packages, there may not be a difference between RHEL4 and CentOS4 for build purposes.

    Which of the above is used would depend on whether one can see any current or potential future differences in the distros. The first is safer, but creates more maintenance. The second is *probably* safe, and requires no additional maintenance. But, there's always that chance :-)

    Have a good one,
    -Eric
    Last edited by andreychek; 12-01-2005 at 09:14 AM.

Similar Threads

  1. Zimbra an Centos 4.2 fail to start
    By eaperezh in forum Installation
    Replies: 9
    Last Post: 03-22-2006, 09:33 AM
  2. Centos 4.2
    By mintra in forum Installation
    Replies: 5
    Last Post: 03-07-2006, 12:31 PM
  3. centos 4.2 and ldap failure
    By eaperezh in forum Installation
    Replies: 2
    Last Post: 02-15-2006, 04:51 PM
  4. Zimbra startup hangs after install CentOS 4.2
    By eger in forum Installation
    Replies: 4
    Last Post: 02-10-2006, 10:08 PM
  5. Installation on CentOS 4.2
    By decawebhosting in forum Installation
    Replies: 3
    Last Post: 11-12-2005, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •