--- Portfile.bak	Mon Apr  9 17:12:21 2007
+++ Portfile	Mon Apr  9 17:51:14 2007
@@ -109,6 +109,23 @@
 	startupitem.create	no
 }
 
+# OpenSSL 0.9.8 has issues with large uploads and apache, use 0.9.7
+variant openssl97 {
+    pre-configure {
+        if {![catch {registry_active openssl}]} {
+            ui_msg "WARNING: You must temporarily disable the openssl port in order to"
+            ui_msg "         build with openssl97.  Issue the following command as root:"
+            ui_msg "            bash# port deactivate openssl"
+            ui_msg "         (don't forget to re-activate it once apache2 is installed)"
+        }
+    }
+
+    depends_lib-delete port:openssl
+    depends_lib-append port:openssl97
+    configure.args-delete --with-ssl=${prefix}
+    configure.args-append --with-ssl=${prefix}/lib/openssl97
+}
+
 startupitem.create	yes
 startupitem.start	\
 "\[ -x ${prefix}/apache2/bin/apachectl \] && ${prefix}/apache2/bin/apachectl start > /dev/null"

