help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfengine 2.0.4 installation problem


From: Thomas Glanzmann
Subject: Re: cfengine 2.0.4 installation problem
Date: Thu, 19 Dec 2002 18:12:04 +0100
User-agent: Mutt/1.4i

> I tried on Solaris with openssl that i compiled myself.

> 1) Is it possible to compile openssl not to use shared libraries ?
> 2) Can you tell me maybe how to tell the configure script manually that 
> openssl is ok and continue ?

Look carefully at the provided script.

Get sure that you have installed SUNWspro, and a version of gnumake

Get the sources for berkeleydb, openssl and cfengine.

After the following steps you habe a dynamically linked version of cfengine with
a static openssl and berkleydb version in it. Last time I tried to compile the
whole thing under solaris it crashed.

If you need a binary for Solaris 9, Solaris 8 or a further assistance just drop
me an eMail. 

Greetings,
        Thomas

#!/bin/bash
export BUILDDIR=/tmp/sithglan-cfengine
export CFENGINEVERSION='2.0.5pre'
export BERKLEYDBVERSION='4.0.14'
export OPENSSLVERSION='0.9.6g'
export SOURCEPATH='/src/cipsec/cfengine/source'
export 
PATH="/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin:${BUILDIR}/openssl-${OPENSSLVERSION}/apps"

rm -rf ${BUILDDIR}
mkdir -p ${BUILDDIR}
cd ${BUILDDIR}

gzcat ${SOURCEPATH}/cfengine-${CFENGINEVERSION}.tar.gz | tar xf -
gzcat ${SOURCEPATH}/db-${BERKLEYDBVERSION}.tar.gz | tar xf -
gzcat ${SOURCEPATH}/openssl-${OPENSSLVERSION}.tar.gz | tar xf -

cd ${BUILDDIR}/openssl-${OPENSSLVERSION}
./Configure solaris-sparcv8-cc
make
ln -s . lib

cd ${BUILDDIR}/db-${BERKLEYDBVERSION}/dist
./configure
make
cd ..
rm -rf include
ln -s dist include
ln -s dist/.libs lib
cd dist/.libs
ln -s libdb-4.0.a libdb.a

cd ${BUILDDIR}/cfengine-${CFENGINEVERSION}
./configure --prefix=/var/cfengine 
--with-berkeleydb=${BUILDDIR}/db-${BERKLEYDBVERSION} 
--with-openssl=${BUILDDIR}/openssl-${OPENSSLVERSION} --bindir=/var/cfengine/bin 
--sbindir=/var/cfengine/bin 
make
make DESTDIR=${BUILDDIR}/cfengine install-exec-recursive

cd ${BUILDDIR}/cfengine/var/cfengine/bin
tar cf - cfexecd cfenvgraph cfenvd cfkey cfrun cfservd cfagent | gzip -c > 
/src/cipsec/cfengine/sithglan/cfengine-${CFENGINEVERSION}-sos5.tgz 
cd /tmp
rm -rf ${BUILDDIR}

echo 'I am done!'

--
Thomas Glanzmann  ++49 (0) 9131 85-27574   Department of Computer Science III
Martensstrasse 3  D-91058 Erlangen Germany   University of Erlangen-Nuremberg
            http://www3.informatik.uni-erlangen.de/Research/UMLinux/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]