Hi,

I just tossed together an Apache/mod_ssl/OpenSSL package for internal use
using RPM. I didn't see any "alternate install directory" / "install prefix"
method designed for packagers. This should install the files under one
directory ( say "/tmp/openssl-build" ) but still plan to have the files end
up in their default locations. This way a program can be built and installed
without intruding on the live system, packaged, and then later placed in
their correct locations.

Apache has this, with the "root" option on the Makefile.

Well, I went through the OpenSSL Makefiles and added in my own
INSTALL_PREFIX option. I'm sure that his would be useful to other package
maintainers, and it would be nice if it was rolled into the OpenSSL
distribution.

Instead of a diff, here is the shell script used to make the modifications:

####
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


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to