Index: head/security/afl/Makefile =================================================================== --- head/security/afl/Makefile (revision 405131) +++ head/security/afl/Makefile (revision 405132) @@ -1,80 +1,69 @@ # Created by: Fabian Keil # $FreeBSD$ PORTNAME= afl -PORTVERSION= 1.86b +PORTVERSION= 1.95b CATEGORIES= security MASTER_SITES= http://lcamtuf.coredump.cx/afl/releases/ MAINTAINER= ports@FreeBSD.org COMMENT= Fast instrumented fuzzer LICENSE= APACHE20 USES= compiler gmake tar:tgz OPTIONS_DEFINE= DEBUG DOCS MINIMIZE_CORPUS \ PLOT_SUPPORT TEST_INSTRUMENTATION MINIMIZE_CORPUS_DESC= Install afl-cmin. Adds bash dependency PLOT_SUPPORT_DESC= Support progress plotting. Adds Gnuplot dependency TEST_INSTRUMENTATION_DESC= Execute tests expected to fail in jails OPTIONS_DEFAULT= MINIMIZE_CORPUS PLOT_SUPPORT OPTIONS_SUB= yes PORTSCOUT= ignore:1 ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= Uses binary instrumentation # XXX replace with bsd.port.options.mk once 8.4-RELEASE is EOL # COMPILER_TYPE is defined in .pre without /usr/share/mk/bsd.compiler.mk .include .if (${COMPILER_TYPE} == "clang" && ${ARCH} == "i386") # Clang i386 emits .cfi_sections which base as(1) doesn't understand BUILD_DEPENDS += ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils RUN_DEPENDS += ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils .endif -.if ${PORT_OPTIONS:MMINIMIZE_CORPUS} -RUN_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash -.endif +MINIMIZE_CORPUS_RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash +PLOT_SUPORT_RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot -.if ${PORT_OPTIONS:MPLOT_SUPPORT} -RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot -.endif - post-patch: .if ! ${PORT_OPTIONS:MTEST_INSTRUMENTATION} # afl needs shmget() which usually isn't available in jails. Disabling # the instrumentation tests makes sure building packages in jails works # by default anyway. ${REINPLACE_CMD} -e 's@^\(all.*\) test_build@\1@' ${WRKSRC}/Makefile .endif ${REINPLACE_CMD} -E -e 's@ -O3@@; s@ -g@@' \ -e 's@install -m 755@${INSTALL_PROGRAM}@' \ -e 's@ afl-(cmin|plot|whatsup) @ @g' \ ${WRKSRC}/Makefile .if (${COMPILER_TYPE} == "clang" && ${ARCH} == "i386") ${REINPLACE_CMD} -e 's@\( as_params\[0\] = "\)@\1${LOCALBASE}/bin/@' \ ${WRKSRC}/afl-as.c .endif -# XXX remove once 8.4-RELEASE is EOL -# GNU as 2.15 doesn't understand lahf/sahf on amd64 - ${REINPLACE_CMD} -e 's@ifdef.*\(__OpenBSD__\)@if defined(\1) || \ - (defined(__FreeBSD__) \&\& __FreeBSD__ < 9)@' \ - ${WRKSRC}/afl-as.h post-install: ${INSTALL_DATA} ${WRKSRC}/docs/COPYING ${STAGEDIR}${DOCSDIR}/ .for afl_script in afl-cmin afl-plot afl-whatsup ${INSTALL_SCRIPT} ${WRKSRC}/${afl_script} ${STAGEDIR}${PREFIX}/bin/ .endfor -.if ${PORT_OPTIONS:MMINIMIZE_CORPUS} +post-install-MINIMIZE_CORPUS-on: ${INSTALL_SCRIPT} ${WRKSRC}/afl-cmin ${STAGEDIR}${PREFIX}/bin/ -.endif .include Index: head/security/afl/distinfo =================================================================== --- head/security/afl/distinfo (revision 405131) +++ head/security/afl/distinfo (revision 405132) @@ -1,2 +1,2 @@ -SHA256 (afl-1.86b.tgz) = 19588e43d14d3f76c5970f7e64ab314d13b325198a7a8eff8a9e3d6a1cb3c9af -SIZE (afl-1.86b.tgz) = 801376 +SHA256 (afl-1.95b.tgz) = 21ec6bb8c182fd821d25c8b67283f81a632c4f74419c9db5fec0135dd0c9ae2a +SIZE (afl-1.95b.tgz) = 804542 Index: head/security/afl/pkg-plist =================================================================== --- head/security/afl/pkg-plist (revision 405131) +++ head/security/afl/pkg-plist (revision 405132) @@ -1,74 +1,75 @@ bin/afl-clang bin/afl-clang++ %%MINIMIZE_CORPUS%%bin/afl-cmin bin/afl-fuzz bin/afl-g++ bin/afl-gcc bin/afl-gotcpu %%PLOT_SUPPORT%%bin/afl-plot bin/afl-showmap bin/afl-tmin bin/afl-whatsup lib/afl/afl-as lib/afl/as %%DATADIR%%/README.testcases %%DATADIR%%/_extras/gif.dict %%DATADIR%%/_extras/html_tags.dict %%DATADIR%%/_extras/jpeg.dict %%DATADIR%%/_extras/js.dict %%DATADIR%%/_extras/pdf.dict %%DATADIR%%/_extras/png.dict %%DATADIR%%/_extras/sql.dict %%DATADIR%%/_extras/tiff.dict %%DATADIR%%/_extras/webp.dict %%DATADIR%%/_extras/xml.dict %%DATADIR%%/archives/common/ar/small_archive.a %%DATADIR%%/archives/common/bzip2/small_archive.bz2 %%DATADIR%%/archives/common/cab/small_archive.cab %%DATADIR%%/archives/common/compress/small_archive.Z %%DATADIR%%/archives/common/cpio/small_archive.cpio %%DATADIR%%/archives/common/gzip/small_archive.gz %%DATADIR%%/archives/common/lzo/small_archive.lzo %%DATADIR%%/archives/common/rar/small_archive.rar %%DATADIR%%/archives/common/tar/small_archive.tar %%DATADIR%%/archives/common/xz/small_archive.xz %%DATADIR%%/archives/common/zip/small_archive.zip %%DATADIR%%/archives/exotic/arj/small_archive.arj %%DATADIR%%/archives/exotic/lha/small_archive.lha %%DATADIR%%/archives/exotic/lrzip/small_archive.lrz %%DATADIR%%/archives/exotic/lzip/small_archive.lz %%DATADIR%%/archives/exotic/lzma/small_archive.lzma %%DATADIR%%/archives/exotic/rzip/small_archive.rz %%DATADIR%%/archives/exotic/zoo/small_archive.zoo %%DATADIR%%/images/bmp/not_kitty.bmp %%DATADIR%%/images/gif/not_kitty.gif %%DATADIR%%/images/ico/not_kitty.ico %%DATADIR%%/images/jp2/not_kitty.jp2 %%DATADIR%%/images/jpeg/not_kitty.jpg %%DATADIR%%/images/jxr/not_kitty.jxr %%DATADIR%%/images/png/not_kitty.png %%DATADIR%%/images/png/not_kitty_alpha.png %%DATADIR%%/images/png/not_kitty_gamma.png %%DATADIR%%/images/png/not_kitty_icc.png %%DATADIR%%/images/tiff/not_kitty.tiff %%DATADIR%%/images/webp/not_kitty.webp %%DATADIR%%/multimedia/h264/small_movie.mp4 %%DATADIR%%/others/elf/small_exec.elf %%DATADIR%%/others/js/small_script.js %%DATADIR%%/others/pcap/small_capture.pcap %%DATADIR%%/others/pdf/small.pdf %%DATADIR%%/others/rtf/small_document.rtf %%DATADIR%%/others/sql/simple_queries.sql %%DATADIR%%/others/text/hello_world.txt %%DATADIR%%/others/xml/small_document.xml %%PORTDOCS%%%%DOCSDIR%%/COPYING %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/env_variables.txt %%PORTDOCS%%%%DOCSDIR%%/historical_notes.txt %%PORTDOCS%%%%DOCSDIR%%/notes_for_asan.txt %%PORTDOCS%%%%DOCSDIR%%/parallel_fuzzing.txt %%PORTDOCS%%%%DOCSDIR%%/perf_tips.txt %%PORTDOCS%%%%DOCSDIR%%/sister_projects.txt %%PORTDOCS%%%%DOCSDIR%%/status_screen.txt %%PORTDOCS%%%%DOCSDIR%%/technical_details.txt +%%PORTDOCS%%%%DOCSDIR%%/QuickStartGuide.txt