Hi,
My original request was for something slightly different, I think.
Let me explain what I want to do exactly.... I want to run "make" and have
all the programs compiled _as-if_ they would be installed into the
/usr/local/{bin,lib,include} directories. Then I want to be able to run
"make INSTALL_PREFIX=/tmp/openssl-root/" and have all the files actually
placed into the /tmp/openssl-root/usr/local/{bin,lib,include} directories.
Then RPM will slurp up those files and create a binary package. When this
binary package is installed, the files will be placed in the
/usr/local/{bin,lib,include} directories.
This way the files are actually placed somewhere inside of /tmp/openssl-root
for rpm to grab them. But they are actually installed by RPM into their real
locations. The purpose of this is so that one can build an RPM package
without messing up the build system.
I don't want to run "./config -prefix=/tmp/openssl-root/usr/local" because
this path will get built into the binaries... and that's not where they will
end up when RPM is done with them. Notice that the base path is passed as a
pre-compiler flag everywhere.
If you are still confused, apply my original patch and look at the
difference in the makefile. The pre-compiler is passed the path without
$INSTALL_PERFIX pre-pended and the install program uses the path with
$INSTALL_PREFIX pre-pended.
Here is the shell stuff which modifies the makefiles again:
####
for F in `find $OPEN_SSL_DIR -name 'Makefile*' -type f -print`
do
cat $F \
| sed 's|$(INSTALLTOP)|$(INSTALL_PREFIX)$(INSTALLTOP)|g' \
| sed "s|INSTALLTOP='\\\${INSTALLTOP}'|&
INSTALL_PREFIX='\\\${INSTALL_PREFIX}'|g" \
> $F.$$.tmp
mv $F.$$.tmp $F
done
####
- David Harris
Principal Engineer, DRH Internet Services
-----Original Message-----
From: Bodo Moeller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 28, 1999 7:16 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: STATUS: Install prefix
>From the current STATUS file:
o Install prefix for packagers ([EMAIL PROTECTED])
o The installation under "make install" produces a very
installation layout: $prefix/certs and $prefix/private dirs. That's
not nice. [...]
Paul: why is it not nice?
Ralf: because it messes up the install dir when
$prefix is not a dedicated area like /usr/local/ssl.
[...]
I think we can now remove these two entries, right?
In the current development version, ./config --prefix=/usr/[local/]
installs two executable files to /usr/[local/]bin, two library files to
/usr/[local/]lib, various header files to /usr/[local/]include/openssl,
and everything else to /usr/[local/]ssl; that's probably as well-behaved
as it can get.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]