diff options
author | joneum <joneum@FreeBSD.org> | 2018-10-14 23:38:40 +0800 |
---|---|---|
committer | joneum <joneum@FreeBSD.org> | 2018-10-14 23:38:40 +0800 |
commit | bbd294ac14afa1538de02d8486ebe32a3996c97c (patch) | |
tree | 49c6894318a0eb8aeba815de45cb5acb27b2c9aa | |
parent | ec2573e23be4c1294e383f5e6d73ffaebd935223 (diff) | |
download | freebsd-ports-gnome-bbd294ac14afa1538de02d8486ebe32a3996c97c.tar.gz freebsd-ports-gnome-bbd294ac14afa1538de02d8486ebe32a3996c97c.tar.zst freebsd-ports-gnome-bbd294ac14afa1538de02d8486ebe32a3996c97c.zip |
Fix build with OpenSSL 1.1.x
While here:
- Pet Portlint
PR: 232221
Submitted by: Nathan <ndowens@yahoo.com>
Sponsored by: Netzkommune GmbH
-rw-r--r-- | www/mod_auth_cas/Makefile | 4 | ||||
-rw-r--r-- | www/mod_auth_cas/files/patch-configure | 50 |
2 files changed, 53 insertions, 1 deletions
diff --git a/www/mod_auth_cas/Makefile b/www/mod_auth_cas/Makefile index d8edcb2123e4..928daa653cbf 100644 --- a/www/mod_auth_cas/Makefile +++ b/www/mod_auth_cas/Makefile @@ -4,6 +4,7 @@ PORTNAME= mod_auth_cas PORTVERSION= 1.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= www PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} @@ -15,9 +16,10 @@ LICENSE= APACHE20 LIB_DEPENDS= libcurl.so:ftp/curl \ libpcre.so:devel/pcre +USES= apache:2.4 ssl + USE_GITHUB= yes GH_ACCOUNT= Jasig -USES= apache:2.2+ ssl HAS_CONFIGURE= yes # configure requires LDFLAGS to find libpcre diff --git a/www/mod_auth_cas/files/patch-configure b/www/mod_auth_cas/files/patch-configure new file mode 100644 index 000000000000..f179b20b8ec4 --- /dev/null +++ b/www/mod_auth_cas/files/patch-configure @@ -0,0 +1,50 @@ +--- configure.orig 2018-10-13 05:53:29 UTC ++++ configure +@@ -13727,9 +13727,9 @@ else + as_fn_error $? "OpenSSL libraries required" "$LINENO" 5 + fi + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 +-$as_echo_n "checking for SSL_library_init in -lssl... " >&6; } +-if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 ++$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; } ++if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +@@ -13743,27 +13743,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext + #ifdef __cplusplus + extern "C" + #endif +-char SSL_library_init (); ++char SSL_CTX_new (); + int + main () + { +-return SSL_library_init (); ++return SSL_CTX_new (); + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_ssl_SSL_library_init=yes ++ ac_cv_lib_ssl_SSL_CTX_new=yes + else +- ac_cv_lib_ssl_SSL_library_init=no ++ ac_cv_lib_ssl_SSL_CTX_new=no + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 +-$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } +-if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 ++$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } ++if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_LIBSSL 1 + _ACEOF |