Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= afl |
4 |
PORTNAME= afl |
5 |
PORTVERSION= 0.80b |
5 |
PORTVERSION= 0.91b |
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 11-18
COMMENT= Fast instrumented fuzzer
Link Here
|
11 |
|
11 |
|
12 |
USES= compiler gmake tar:tgz |
12 |
USES= compiler gmake tar:tgz |
13 |
|
13 |
|
14 |
OPTIONS_DEFINE= DEBUG DOCS TEST_INSTRUMENTATION |
14 |
OPTIONS_DEFINE= DEBUG DOCS PLOT_SUPPORT TEST_INSTRUMENTATION |
|
|
15 |
PLOT_SUPPORT_DESC= Support progress plotting. Adds Gnuplot dependency |
15 |
TEST_INSTRUMENTATION_DESC= Execute tests expected to fail in jails |
16 |
TEST_INSTRUMENTATION_DESC= Execute tests expected to fail in jails |
|
|
17 |
OPTIONS_DEFAULT= PLOT_SUPPORT |
18 |
|
19 |
OPTIONS_SUB= yes |
16 |
|
20 |
|
17 |
PORTSCOUT= ignore:1 |
21 |
PORTSCOUT= ignore:1 |
18 |
|
22 |
|
Lines 29-34
BUILD_DEPENDS += ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
Link Here
|
29 |
RUN_DEPENDS += ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
33 |
RUN_DEPENDS += ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
30 |
.endif |
34 |
.endif |
31 |
|
35 |
|
|
|
36 |
.if ${PORT_OPTIONS:MPLOT_SUPPORT} |
37 |
RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot |
38 |
.endif |
39 |
|
32 |
post-patch: |
40 |
post-patch: |
33 |
.if ! ${PORT_OPTIONS:MTEST_INSTRUMENTATION} |
41 |
.if ! ${PORT_OPTIONS:MTEST_INSTRUMENTATION} |
34 |
# afl needs shmget() which usually isn't available in jails. Disabling |
42 |
# afl needs shmget() which usually isn't available in jails. Disabling |
Lines 48-55
post-patch:
Link Here
|
48 |
${REINPLACE_CMD} -e 's@ifdef.*\(__OpenBSD__\)@if defined(\1) || \ |
56 |
${REINPLACE_CMD} -e 's@ifdef.*\(__OpenBSD__\)@if defined(\1) || \ |
49 |
(defined(__FreeBSD__) \&\& __FreeBSD__ < 9)@' \ |
57 |
(defined(__FreeBSD__) \&\& __FreeBSD__ < 9)@' \ |
50 |
${WRKSRC}/afl-as.h |
58 |
${WRKSRC}/afl-as.h |
51 |
${REINPLACE_CMD} -e 's@sys/\(termios.h\)@\1@' \ |
59 |
# Prevent bash dependency. The script doesn't actually use any bashisms. |
52 |
${WRKSRC}/afl-fuzz.c |
60 |
${REINPLACE_CMD} -e 's@^\(#!/bin/\)bash@\1sh@' ${WRKSRC}/afl-plot |
53 |
|
61 |
|
54 |
post-install: |
62 |
post-install: |
55 |
${INSTALL_DATA} ${WRKSRC}/docs/COPYING ${STAGEDIR}${DOCSDIR}/ |
63 |
${INSTALL_DATA} ${WRKSRC}/docs/COPYING ${STAGEDIR}${DOCSDIR}/ |