mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
security/afl++: Update to 2.59c
Changes: https://github.com/vanhauser-thc/AFLplusplus/releases/tag/2.59c
This commit is contained in:
parent
4fc808df0c
commit
5e56444a44
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520380
security/afl++
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= afl
|
||||
PORTVERSION= 2.58c
|
||||
PORTVERSION= 2.59c
|
||||
CATEGORIES= security
|
||||
PKGNAMESUFFIX= ++
|
||||
|
||||
@ -23,20 +23,21 @@ GH_ACCOUNT= vanhauser-thc
|
||||
GH_PROJECT= AFLplusplus
|
||||
|
||||
MAKE_ARGS= STRIP_CMD="${STRIP_CMD}"
|
||||
ALL_TARGET= all libdislocator
|
||||
ALL_TARGET= all libdislocator libtokencap
|
||||
INSTALL_TARGET= install-strip
|
||||
TEST_TARGET= test_build
|
||||
|
||||
CONFLICTS_INSTALL= afl
|
||||
|
||||
OPTIONS_DEFINE= DEBUG DOCS GCC LLVM
|
||||
OPTIONS_DEFAULT= LLVM
|
||||
OPTIONS_DEFINE= DEBUG DOCS EXAMPLES GCC LLVM PYTHON
|
||||
OPTIONS_DEFAULT= LLVM PYTHON
|
||||
# On non-x86 architectures LLVM is mandatory
|
||||
OPTIONS_SLAVE= ${ARCH:Namd64:Ni386:S/${ARCH}/LLVM/}
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
GCC_DESC= Build GCC plugin and afl-gcc-fast
|
||||
LLVM_DESC= LLVM-based instrumentation
|
||||
PYTHON_DESC= Python mutators support
|
||||
|
||||
GCC_BUILD_DEPENDS= gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}
|
||||
GCC_RUN_DEPENDS= gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}
|
||||
@ -54,6 +55,9 @@ LLVM_BINARY_ALIAS= llvm-config=llvm-config${LLVM_DEFAULT}
|
||||
LLVM_VARS= CC=clang${LLVM_DEFAULT} \
|
||||
CXX=clang++${LLVM_DEFAULT}
|
||||
|
||||
PYTHON_USES= gettext-runtime python:3.7
|
||||
PYTHON_MAKE_ARGS_OFF= PYTHON_INCLUDE=/nonexistent
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
|
||||
@ -97,9 +101,12 @@ post-patch-LLVM-on:
|
||||
${WRKSRC}/llvm_mode/afl-clang-fast.c
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/libdislocator
|
||||
${INSTALL_MAN} ${WRKSRC}/libdislocator/README.md \
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/libdislocator \
|
||||
${STAGEDIR}${DOCSDIR}/libtokencap
|
||||
${INSTALL_MAN} ${WRKSRC}/libdislocator/README.dislocator.md \
|
||||
${STAGEDIR}${DOCSDIR}/libdislocator
|
||||
${INSTALL_MAN} ${WRKSRC}/libtokencap/README.tokencap.md \
|
||||
${STAGEDIR}${DOCSDIR}/libtokencap
|
||||
|
||||
post-install-GCC-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/gcc_plugin
|
||||
@ -111,7 +118,13 @@ post-install-LLVM-on:
|
||||
${INSTALL_MAN} ${WRKSRC}/llvm_mode/README.* \
|
||||
${STAGEDIR}${DOCSDIR}/llvm_mode
|
||||
|
||||
post-install-PYTHON-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/python_mutators
|
||||
@cd ${WRKSRC} && \
|
||||
${COPYTREE_SHARE} python_mutators ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
post-test:
|
||||
# libtokencap test might require security.bsd.unprivileged_proc_debug=1
|
||||
@cd ${WRKSRC}/test && ./test.sh
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1571651123
|
||||
SHA256 (vanhauser-thc-AFLplusplus-2.58c_GH0.tar.gz) = d25d6d90062a9e17327bb7bd3e59650e527d00aba85009e578aed6b9896266df
|
||||
SIZE (vanhauser-thc-AFLplusplus-2.58c_GH0.tar.gz) = 986561
|
||||
TIMESTAMP = 1576666209
|
||||
SHA256 (vanhauser-thc-AFLplusplus-2.59c_GH0.tar.gz) = 858c81fa6221ef2b8b2a8977a70dc86c2624c23230d0629b3037130fd0d8d685
|
||||
SIZE (vanhauser-thc-AFLplusplus-2.59c_GH0.tar.gz) = 1211443
|
||||
|
@ -1,4 +1,4 @@
|
||||
.PHONY: gcc_plugin install-strip libdislocator llvm_mode test_gcc_plugin test_llvm_mode
|
||||
.PHONY: gcc_plugin install-strip libdislocator libtokencap llvm_mode test_gcc_plugin test_llvm_mode
|
||||
|
||||
install-strip: install
|
||||
@cd ${DESTDIR}${BIN_PATH} && ${STRIP_CMD} ${PROGS}
|
||||
@ -8,7 +8,10 @@ install-strip: install
|
||||
|
||||
libdislocator:
|
||||
$(MAKE) -C libdislocator CFLAGS="-I../include ${CFLAGS}"
|
||||
|
||||
|
||||
libtokencap:
|
||||
$(MAKE) -C libtokencap
|
||||
|
||||
llvm_mode:
|
||||
$(MAKE) -C llvm_mode
|
||||
|
||||
|
@ -25,6 +25,7 @@ bin/afl-whatsup
|
||||
%%X86%%lib/afl/as
|
||||
%%LLVM%%lib/afl/compare-transform-pass.so
|
||||
lib/afl/libdislocator.so
|
||||
lib/afl/libtokencap.so
|
||||
%%LLVM%%lib/afl/libLLVMInsTrim.so
|
||||
%%LLVM%%lib/afl/split-compares-pass.so
|
||||
%%LLVM%%lib/afl/split-switches-pass.so
|
||||
@ -89,6 +90,7 @@ man/man8/afl-whatsup.8.gz
|
||||
%%DATADIR%%/others/xml/small_document.xml
|
||||
%%DATADIR%%/pdf.dict
|
||||
%%DATADIR%%/png.dict
|
||||
%%DATADIR%%/regexp.dict
|
||||
%%DATADIR%%/sql.dict
|
||||
%%DATADIR%%/tiff.dict
|
||||
%%DATADIR%%/webp.dict
|
||||
@ -102,7 +104,8 @@ man/man8/afl-whatsup.8.gz
|
||||
%%GCC%%%%PORTDOCS%%%%DOCSDIR%%/gcc_plugin/README.gcc.md
|
||||
%%GCC%%%%PORTDOCS%%%%DOCSDIR%%/gcc_plugin/README.whitelist.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/historical_notes.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libdislocator/README.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libdislocator/README.dislocator.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libtokencap/README.tokencap.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/life_pro_tips.txt
|
||||
%%LLVM%%%%PORTDOCS%%%%DOCSDIR%%/llvm_mode/README.md
|
||||
%%LLVM%%%%PORTDOCS%%%%DOCSDIR%%/llvm_mode/README.instrim.md
|
||||
@ -117,3 +120,9 @@ man/man8/afl-whatsup.8.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/sister_projects.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/status_screen.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/technical_details.txt
|
||||
%%PYTHON%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python_mutators/README
|
||||
%%PYTHON%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python_mutators/XmlMutatorMin.py
|
||||
%%PYTHON%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python_mutators/common.py
|
||||
%%PYTHON%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python_mutators/example.py
|
||||
%%PYTHON%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python_mutators/simple-chunk-replace.py
|
||||
%%PYTHON%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python_mutators/wrapper_afl_min.py
|
||||
|
Loading…
Reference in New Issue
Block a user