Index: head/security/afl/Makefile =================================================================== --- head/security/afl/Makefile (revision 438488) +++ head/security/afl/Makefile (revision 438489) @@ -1,80 +1,80 @@ # Created by: Fabian Keil # $FreeBSD$ PORTNAME= afl -PORTVERSION= 2.40 +PORTVERSION= 2.41 DISTVERSIONSUFFIX= b CATEGORIES= security MASTER_SITES= http://lcamtuf.coredump.cx/afl/releases/ MAINTAINER= tobik@FreeBSD.org COMMENT= Fast instrumented fuzzer LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/docs/COPYING # In theory afl supports other architectures with the LLVM plugin. # It has to be compiled with AFL_NO_X86=1 in that case. ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= Uses binary instrumentation USES= gmake tar:tgz TEST_TARGET= test_build OPTIONS_DEFINE= DEBUG DOCS LLVM OPTIONS_DEFAULT= LLVM OPTIONS_SUB= yes LLVM_DESC= LLVM-based instrumentation LLVM_VERSION= 40 LLVM_BUILD_DEPENDS= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION} LLVM_RUN_DEPENDS= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION} LLVM_VARS= CC=clang${LLVM_VERSION} CXX=clang++${LLVM_VERSION} \ MAKE_ARGS=LLVM_CONFIG=llvm-config${LLVM_VERSION} .include .if ${ARCH} == "i386" # Clang i386 emits .cfi_sections which base as(1) doesn't understand BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils RUN_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils .endif post-patch: # Disable the instrumentation tests to make sure building packages in # jails works by default. afl needs shmget() which usually isn't # available in jails. @${REINPLACE_CMD} 's@^\(all.*\) test_build@\1@' \ ${WRKSRC}/Makefile ${WRKSRC}/llvm_mode/Makefile .if ${ARCH} == "i386" @${REINPLACE_CMD} 's@\( as_params\[0\] = afl_as ? afl_as : \)\(.*\)@\1(u8*)"${LOCALBASE}/bin/as";@' \ ${WRKSRC}/afl-as.c .endif post-patch-LLVM-on: @${REINPLACE_CMD} \ -e 's|"clang"|"clang${LLVM_VERSION}"|g' \ -e 's|"clang\+\+"|"clang\+\+${LLVM_VERSION}"|g' \ ${WRKSRC}/llvm_mode/afl-clang-fast.c post-build-LLVM-on: @(cd ${WRKSRC}/llvm_mode; ${DO_MAKE_BUILD} ${ALL_TARGET}) post-test-LLVM-on: @(cd ${WRKSRC}/llvm_mode; ${DO_MAKE_BUILD} ${TEST_TARGET}) post-install: .for script in afl-cmin afl-plot afl-whatsup ${INSTALL_SCRIPT} ${WRKSRC}/${script} ${STAGEDIR}${PREFIX}/bin .endfor @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/afl/afl-as .for prog in afl-analyze afl-fuzz afl-gcc afl-gotcpu afl-showmap afl-tmin @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${prog} .endfor post-install-LLVM-on: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/afl/afl-llvm-pass.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/afl-clang-fast .include Index: head/security/afl/distinfo =================================================================== --- head/security/afl/distinfo (revision 438488) +++ head/security/afl/distinfo (revision 438489) @@ -1,3 +1,3 @@ -TIMESTAMP = 1491283318 -SHA256 (afl-2.40b.tgz) = 4d35934a77ceee1f219d70ec6bac927c334540b4d9050f359728e2490dcba46e -SIZE (afl-2.40b.tgz) = 831379 +TIMESTAMP = 1491986484 +SHA256 (afl-2.41b.tgz) = 0670b13235264e688a7ccfbeeee257e9c57dcc86ead676247d92d199c194968f +SIZE (afl-2.41b.tgz) = 832153