You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user