View | Details | Raw Unified | Return to bug 196095 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/afl/Makefile (-4 / +12 lines)
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}/
(-)b/security/afl/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (afl-0.80b.tgz) = bfdb0976c8d3093814cf9008eb3246155945bc04c0fa3018e0d8c956da690d33
1
SHA256 (afl-0.91b.tgz) = 1e08be7537f6c697059483c20f28d32f35384b8f0160da727c3011ffe91b5a31
2
SIZE (afl-0.80b.tgz) = 689981
2
SIZE (afl-0.91b.tgz) = 698147
(-)b/security/afl/pkg-plist (-1 / +1 lines)
Lines 13-18 bin/afl-clang++ Link Here
13
bin/afl-fuzz
13
bin/afl-fuzz
14
bin/afl-g++
14
bin/afl-g++
15
bin/afl-gcc
15
bin/afl-gcc
16
%%PLOT_SUPPORT%%bin/afl-plot
16
bin/afl-showmap
17
bin/afl-showmap
17
lib/afl/afl-as
18
lib/afl/afl-as
18
lib/afl/as
19
lib/afl/as
19
- 

Return to bug 196095