From cddd4308634903378d7d29bb67383695d535c8fb Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Wed, 14 Aug 2024 19:41:49 +1000 Subject: [PATCH] skipfish: use openssl10 Closes: https://trac.macports.org/ticket/59967 --- security/skipfish/Portfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/security/skipfish/Portfile b/security/skipfish/Portfile index 12c86aaa30f..4419a40e1e9 100644 --- a/security/skipfish/Portfile +++ b/security/skipfish/Portfile @@ -13,8 +13,7 @@ long_description A fully automated, active web application security \ reconnaissance tool. homepage https://code.google.com/p/skipfish/ -platforms darwin -depends_lib path:lib/libssl.dylib:openssl port:libidn port:zlib port:pcre +depends_lib port:openssl10 port:libidn port:zlib port:pcre master_sites googlecode extract.suffix .tgz @@ -24,16 +23,19 @@ checksums rmd160 00667071308b41977710842994ba4c34ce26cff5 \ patchfiles patch-src-config.h.diff post-patch { - reinplace s|@@SHARE@@|${prefix}/share/${name}/|g ${worksrcpath}/src/config.h - reinplace s|-L/usr/local/lib/\ ||g ${worksrcpath}/Makefile - reinplace s|-I/usr/local|-I${prefix}|g ${worksrcpath}/Makefile - reinplace s|signatures/signatures.conf|${prefix}/share/${name}/signatures/signatures.conf|g ${worksrcpath}/src/config.h - reinplace s|include\ signatures|include\ ${prefix}/share/${name}/signatures|g ${worksrcpath}/signatures/signatures.conf + reinplace s|@@SHARE@@|${prefix}/share/${name}/| ${worksrcpath}/src/config.h + reinplace "s|-L/usr/local/lib/||" ${worksrcpath}/Makefile + reinplace "s|-L/opt/local/lib|-L${prefix}/libexec/openssl10/lib -L${prefix}/lib|" ${worksrcpath}/Makefile + reinplace "s|-I/usr/local/include/||" ${worksrcpath}/Makefile + reinplace "s|-I/opt/local/include/|-I${prefix}/libexec/openssl10/include -I${prefix}/include|" ${worksrcpath}/Makefile + reinplace s|signatures/signatures.conf|${prefix}/share/${name}/signatures/signatures.conf| ${worksrcpath}/src/config.h + reinplace s|include\ signatures|include\ ${prefix}/share/${name}/signatures| ${worksrcpath}/signatures/signatures.conf } use_configure no -build.args-append CC=${configure.cc} +build.env CC=${configure.cc} \ + CFLAGS=${configure.cc_archflags} destroot { file mkdir ${destroot}${prefix}/share/${name} file copy ${worksrcpath}/skipfish ${destroot}${prefix}/bin/skipfish