Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= afl |
4 |
PORTNAME= afl |
5 |
PORTVERSION= 1.95b |
5 |
PORTVERSION= 1.96b |
6 |
CATEGORIES= security |
6 |
CATEGORIES= security |
7 |
MASTER_SITES= http://lcamtuf.coredump.cx/afl/releases/ |
7 |
MASTER_SITES= http://lcamtuf.coredump.cx/afl/releases/ |
8 |
|
8 |
|
Lines 10-24
Link Here
|
10 |
COMMENT= Fast instrumented fuzzer |
10 |
COMMENT= Fast instrumented fuzzer |
11 |
|
11 |
|
12 |
LICENSE= APACHE20 |
12 |
LICENSE= APACHE20 |
|
|
13 |
LICENSE_FILE= ${WRKSRC}/docs/COPYING |
13 |
|
14 |
|
14 |
USES= compiler gmake tar:tgz |
15 |
USES= compiler gmake tar:tgz |
15 |
|
16 |
|
16 |
OPTIONS_DEFINE= DEBUG DOCS MINIMIZE_CORPUS \ |
17 |
OPTIONS_DEFINE= DEBUG DOCS MINIMIZE_CORPUS PLOT_SUPPORT TEST_INSTRUMENTATION |
17 |
PLOT_SUPPORT TEST_INSTRUMENTATION |
|
|
18 |
MINIMIZE_CORPUS_DESC= Install afl-cmin. Adds bash dependency |
18 |
MINIMIZE_CORPUS_DESC= Install afl-cmin. Adds bash dependency |
19 |
PLOT_SUPPORT_DESC= Support progress plotting. Adds Gnuplot dependency |
19 |
PLOT_SUPPORT_DESC= Support progress plotting. Adds Gnuplot dependency |
20 |
TEST_INSTRUMENTATION_DESC= Execute tests expected to fail in jails |
20 |
TEST_INSTRUMENTATION_DESC= Execute tests (expected to fail in jails) |
21 |
OPTIONS_DEFAULT= MINIMIZE_CORPUS PLOT_SUPPORT |
21 |
OPTIONS_DEFAULT= DOCS MINIMIZE_CORPUS PLOT_SUPPORT |
22 |
|
22 |
|
23 |
OPTIONS_SUB= yes |
23 |
OPTIONS_SUB= yes |
24 |
|
24 |
|
Lines 27-34
Link Here
|
27 |
ONLY_FOR_ARCHS= amd64 i386 |
27 |
ONLY_FOR_ARCHS= amd64 i386 |
28 |
ONLY_FOR_ARCHS_REASON= Uses binary instrumentation |
28 |
ONLY_FOR_ARCHS_REASON= Uses binary instrumentation |
29 |
|
29 |
|
30 |
# XXX replace with bsd.port.options.mk once 8.4-RELEASE is EOL |
|
|
31 |
# COMPILER_TYPE is defined in .pre without /usr/share/mk/bsd.compiler.mk |
32 |
.include <bsd.port.pre.mk> |
30 |
.include <bsd.port.pre.mk> |
33 |
|
31 |
|
34 |
.if (${COMPILER_TYPE} == "clang" && ${ARCH} == "i386") |
32 |
.if (${COMPILER_TYPE} == "clang" && ${ARCH} == "i386") |
Lines 52-58
Link Here
|
52 |
-e 's@ afl-(cmin|plot|whatsup) @ @g' \ |
50 |
-e 's@ afl-(cmin|plot|whatsup) @ @g' \ |
53 |
${WRKSRC}/Makefile |
51 |
${WRKSRC}/Makefile |
54 |
.if (${COMPILER_TYPE} == "clang" && ${ARCH} == "i386") |
52 |
.if (${COMPILER_TYPE} == "clang" && ${ARCH} == "i386") |
55 |
${REINPLACE_CMD} -e 's@\( as_params\[0\] = "\)@\1${LOCALBASE}/bin/@' \ |
53 |
${REINPLACE_CMD} -e 's@\( as_params\[0\] = afl_as ? afl_as : \)\(.*\)@\1(u8*)"${LOCALBASE}/bin/as";@' \ |
56 |
${WRKSRC}/afl-as.c |
54 |
${WRKSRC}/afl-as.c |
57 |
.endif |
55 |
.endif |
58 |
|
56 |
|