Index: head/security/afl++/Makefile =================================================================== --- head/security/afl++/Makefile (revision 508372) +++ head/security/afl++/Makefile (revision 508373) @@ -1,102 +1,100 @@ # Created by: Fabian Keil # $FreeBSD$ PORTNAME= afl -PORTVERSION= 2.53c +PORTVERSION= 2.53d.a1 CATEGORIES= security PKGNAMESUFFIX= ++ -PATCH_SITES= https://github.com/vanhauser-thc/AFLplusplus/commit/ -PATCHFILES= 30586e634ddb58bad08e9cb662f0ccc44f45b91a.patch:-p1 - MAINTAINER= tobik@FreeBSD.org COMMENT= Fast instrumented fuzzer LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/docs/COPYING # In theory afl supports non-x86 architectures with the LLVM plugin. # This has only been run tested on aarch64 so far. ONLY_FOR_ARCHS= aarch64 amd64 i386 ONLY_FOR_ARCHS_REASON= uses x86-only instrumentation or requires complete LLVM support USES= gmake tar:tgz USE_GITHUB= yes GH_ACCOUNT= vanhauser-thc GH_PROJECT= AFLplusplus +GH_TAGNAME= 8b6a4e575978fac83155efd90d39030c84b2a755 ALL_TARGET= all libdislocator TEST_TARGET= test_build CONFLICTS_INSTALL= afl OPTIONS_DEFINE= DEBUG DOCS LLVM OPTIONS_DEFAULT= LLVM # On non-x86 architectures LLVM is mandatory OPTIONS_SLAVE= ${ARCH:Namd64:Ni386:S/${ARCH}/LLVM/} OPTIONS_SUB= yes LLVM_DESC= LLVM-based instrumentation LLVM_BUILD_DEPENDS= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} LLVM_RUN_DEPENDS= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} LLVM_MAKE_ARGS= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} LLVM_ALL_TARGET= llvm_mode LLVM_TEST_TARGET= test_llvm_mode LLVM_VARS= CC=clang${LLVM_DEFAULT} \ CXX=clang++${LLVM_DEFAULT} .include .if ${ARCH} == "i386" || ${ARCH} == "amd64" PLIST_SUB+= X86="" .else MAKE_ARGS+= AFL_NO_X86=1 PLIST_SUB+= X86="@comment " .endif .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 @${CAT} ${FILESDIR}/Makefile.extra >> ${WRKSRC}/Makefile post-patch-LLVM-on: @${REINPLACE_CMD} \ -e 's|"clang"|"clang${LLVM_DEFAULT}"|g' \ -e 's|"clang\+\+"|"clang\+\+${LLVM_DEFAULT}"|g' \ ${WRKSRC}/llvm_mode/afl-clang-fast.c 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 ${INSTALL_LIB} ${WRKSRC}/libdislocator/libdislocator.so \ ${STAGEDIR}${PREFIX}/lib/afl ${INSTALL_DATA} ${WRKSRC}/libdislocator/README.dislocator \ ${STAGEDIR}${DOCSDIR} post-install-LLVM-on: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/afl/*.so \ ${STAGEDIR}${PREFIX}/bin/afl-clang-fast ${INSTALL_MAN} ${WRKSRC}/llvm_mode/README.laf-intel \ ${WRKSRC}/llvm_mode/README.llvm \ ${STAGEDIR}${DOCSDIR} .include Index: head/security/afl++/distinfo =================================================================== --- head/security/afl++/distinfo (revision 508372) +++ head/security/afl++/distinfo (revision 508373) @@ -1,5 +1,3 @@ -TIMESTAMP = 1564147654 -SHA256 (vanhauser-thc-AFLplusplus-2.53c_GH0.tar.gz) = 3147d44f01378b46c4234090781e5cb13c9721a72701c28ed4f18b7256d452e7 -SIZE (vanhauser-thc-AFLplusplus-2.53c_GH0.tar.gz) = 934915 -SHA256 (30586e634ddb58bad08e9cb662f0ccc44f45b91a.patch) = f3c22bbac12426d30e06a1d9521e7669e884c41e898df2ee4b66759bdb61aef6 -SIZE (30586e634ddb58bad08e9cb662f0ccc44f45b91a.patch) = 2252 +TIMESTAMP = 1565263563 +SHA256 (vanhauser-thc-AFLplusplus-2.53d.a1-8b6a4e575978fac83155efd90d39030c84b2a755_GH0.tar.gz) = 07fffb04760637c4537e396c12d7cccf4ba061330fc36a4133123712b22300c9 +SIZE (vanhauser-thc-AFLplusplus-2.53d.a1-8b6a4e575978fac83155efd90d39030c84b2a755_GH0.tar.gz) = 936061