Skip to content

Instantly share code, notes, and snippets.

@jmroot
Created March 15, 2022 20:25
Show Gist options
  • Select an option

  • Save jmroot/41aa831ca4f47b2c0e073821e3393eb3 to your computer and use it in GitHub Desktop.

Select an option

Save jmroot/41aa831ca4f47b2c0e073821e3393eb3 to your computer and use it in GitHub Desktop.
Stunnel openssl fix
diff --git a/security/stunnel/Portfile b/security/stunnel/Portfile
index 20dd9ad0412..d077ec396cf 100644
--- a/security/stunnel/Portfile
+++ b/security/stunnel/Portfile
@@ -31,13 +31,13 @@ checksums rmd160 a6b2ab9bbb4da98eb21ffbe83486019bd1b4ae26 \
sha256 c74c4e15144a3ae34b8b890bb31c909207301490bd1e51bfaaa5ffeb0a994617 \
size 866754
-openssl.branch 1.1
-
patchfiles patch-configure
configure.args --disable-libwrap \
- --disable-silent-rules \
- --with-ssl=[openssl::install_area]
+ --disable-silent-rules
+if {![variant_isset openssl1]} {
+ configure.args-append --with-ssl=[openssl::install_area]
+}
# libwrap has been reported to introduce some problems with stunnel 4.18.
# See: https://trac.macports.org/ticket/11028
@@ -46,12 +46,10 @@ variant libwrap description {Include libwrap support} {
configure.args-delete --disable-libwrap
}
-#variant openssl1 description (Use openssl 1.1.1) {
-# openssl.branch 1.1
-#}
-
-# currently (5.62) configure fails for openssl 3.0.x
-#default_variants +openssl1
+variant openssl1 description (Use openssl 1.1.1) {
+ openssl.branch 1.1
+ configure.args-append --with-ssl=[openssl::install_area]
+}
if {${os.arch} ne "powerpc"} {
default_variants-append \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment