Ticket #11755: apache2.patch

File apache2.patch, 979 bytes (added by ecronin (Eric Cronin), 18 years ago)
  • Portfile

    old new  
    109109        startupitem.create      no
    110110}
    111111
     112# OpenSSL 0.9.8 has issues with large uploads and apache, use 0.9.7
     113variant openssl97 {
     114    pre-configure {
     115        if {![catch {registry_active openssl}]} {
     116            ui_msg "WARNING: You must temporarily disable the openssl port in order to"
     117            ui_msg "         build with openssl97.  Issue the following command as root:"
     118            ui_msg "            bash# port deactivate openssl"
     119            ui_msg "         (don't forget to re-activate it once apache2 is installed)"
     120        }
     121    }
     122
     123    depends_lib-delete port:openssl
     124    depends_lib-append port:openssl97
     125    configure.args-delete --with-ssl=${prefix}
     126    configure.args-append --with-ssl=${prefix}/lib/openssl97
     127}
     128
    112129startupitem.create      yes
    113130startupitem.start       \
    114131"\[ -x ${prefix}/apache2/bin/apachectl \] && ${prefix}/apache2/bin/apachectl start > /dev/null"