Daniel S. Reichenbach wrote:
> Sorry me. Should have read to the end. You said that SSL_INC and
> SSL_LIB could be defined as env vars under Win32. I would vote +1 for
> it. The same is used in PHP4 for Cygwin32 integration in the makefiles.
and [EMAIL PROTECTED] wrote:
> I like the idea that the UNIX and NT mod_ssl patch/install scripts should
> do the same thing, err, I mean produce the same results. I, on UNIX, add
> mod_ssl to Apache, import into CVS, and then everyone, UNIX and NT
> developers, checkout Apache + mod_ssl, and proceed from there. It's a minor
> irritation that I have to do some bits by hand to properly add the NT
> parts.
I'm glad to hear that you like it. Actually, the following patch does
90% of the work. I still have to deal with src/modules/ssl/Makefile
(the Windows' one is copied from Makefile.win32 with 4 patches, 2 of
them depend on location - SSL_INC and SSL_LIB, and the other 2 are
not needed - MOD_SSL_VERS_NUM and MOD_SSL_VERS_STR - because their
values are already known when publishing the release, and the UNIX'
one is generated during the build of Apache). In addition, I want to
add commands to insert SSL stuff into httpd.conf-dist-win (currently,
even configure.bat doesn't do it).
I put it here not as a usual diff command, because I leave it to Ralf
to decide where to put it in "configure" (if he wants it, at all):
---------------------------------------------------------------------
# Eli Marmor's Addition:
for i in `find $apache -name "*.mak"`
do
mv $i $i.orig
sed -e "s+^CPP_PROJ=+CPP_PROJ=/DEAPI /DMOD_SSL=204109 +" < $i.orig > $i
done
mv $apache/src/Makefile.nt $apache/src/Makefile.nt.orig
sed -e "/copy modules\\\\proxy/i\\
copy modules\\\\ssl\\\\ApacheModuleSSL.dll \$(INSTDIR)\\\\modules" \
-e "/nmake \/nologo CFG=\"ApacheModuleRewrite - Win32 %LONG%\" -f
ApacheModuleRewrite.mak$/a\\
cd ..\\\\..\\
cd modules\\\\ssl\\
nmake \/nologo all" \
-e "/nmake \/nologo CFG=\"ApacheModuleRewrite - Win32 %LONG%\" -f
ApacheModuleRewrite.mak clean/a\\
cd ..\\\\..\\
cd modules\\\\ssl\\
nmake \/nologo clean"< $apache/src/Makefile.nt.orig > $apache/src/Makefile.nt
# Till here.
---------------------------------------------------------------------
Notes:
=====
1. Read what I wrote above about src/modules/ssl/Makefile.
2. "204109" should be modified from version to version. A dynamic
calculation of it, has too many drawbacks, which I'll be glad to
detail in a separate message.
3. The patch is against 2.4.9-1.3.9.
4. Because of some "bugs" of configure.bat, this patch is not 100%
compatible with configure.bat. For example, configure.bat doesn't
remove remaining "*.orig" files, contrary to configure. In
addition, after adding my patch for httpd.conf-dist-win, configure
will be much better than configure.bat.
One last word to the OpenSA people: I believe that it will not be an
impossible job to make OpenSA portable to UNIX. Windows was always
harder for such stuff (Apache, mod_ssl, PHP, OpenSSL, etc.) to build
and install, but UNIX is not for newbies too. Maybe I can help.
--
Eli Marmor
[EMAIL PROTECTED]
El-Mar Software Ltd.
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]