diff options
author | bjs <bjs@pkgsrc.org> | 2008-12-09 06:56:52 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-12-09 06:56:52 +0000 |
commit | 76d2dcbfa1a5b07c964eae56493d2f59e3b9bbc9 (patch) | |
tree | 1c4aad127a87515ccb66d7274181c04035092bea /devel/zzuf | |
parent | f622b42ea5eeba97b9df1e6ba50a2aac36974e0b (diff) | |
download | pkgsrc-76d2dcbfa1a5b07c964eae56493d2f59e3b9bbc9.tar.gz |
Import zzuf-0.12.
zzuf is a transparent application input fuzzer. It works by intercepting
file operations and changing random bits in the program's input. zzuf's
behaviour is deterministic, making it easy to reproduce bugs.
For instructions and examples on how to use zzuf, see the manual page.
Diffstat (limited to 'devel/zzuf')
-rw-r--r-- | devel/zzuf/DESCR | 5 | ||||
-rw-r--r-- | devel/zzuf/Makefile | 51 | ||||
-rw-r--r-- | devel/zzuf/PLIST | 6 | ||||
-rw-r--r-- | devel/zzuf/distinfo | 6 | ||||
-rw-r--r-- | devel/zzuf/options.mk | 15 | ||||
-rw-r--r-- | devel/zzuf/patches/patch-aa | 13 |
6 files changed, 96 insertions, 0 deletions
diff --git a/devel/zzuf/DESCR b/devel/zzuf/DESCR new file mode 100644 index 00000000000..74022f9a9d1 --- /dev/null +++ b/devel/zzuf/DESCR @@ -0,0 +1,5 @@ +zzuf is a transparent application input fuzzer. It works by intercepting +file operations and changing random bits in the program's input. zzuf's +behaviour is deterministic, making it easy to reproduce bugs. + +For instructions and examples on how to use zzuf, see the manual page. diff --git a/devel/zzuf/Makefile b/devel/zzuf/Makefile new file mode 100644 index 00000000000..2ea8a618069 --- /dev/null +++ b/devel/zzuf/Makefile @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/12/09 06:56:52 bjs Exp $ +# + +DISTNAME= zzuf-0.12 +CATEGORIES= devel security +MASTER_SITES= http://caca.zoy.org/files/zzuf/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://caca.zoy.org/wiki/zzuf/ +COMMENT= Transparent application input fuzzer + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes + +BUILDLINK_TRANSFORM+= l:gnugetopt:getopt +REPLACE_SH= test/testsuite.sh +SHLIBTOOL_OVERRIDE= # empty + +SUBST_CLASSES+= fix-paths +SUBST_FILES.fix-paths= doc/libzzuf.3 +SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames +SUBST_SED.fix-paths= -e 's,/usr,${PREFIX},g' +SUBST_STAGE.fix-paths= post-patch + +.include "../../mk/bsd.fast.prefs.mk" + +LIBS.NetBSD+= ${NETBSDLIB.rt} +### +### XXX Do this with autoconf? +### +.if ${OPSYS} == "NetBSD" && exists(/usr/include/aio.h) +.PHONY: netbsd-posix-aio-check +netbsd-posix-aio-check: +NETBSDLIB.rt!= \ + if ( /sbin/sysctl -n kern.posix_aio >/dev/null 2>&1 ); then \ + lib=-lrt; \ + fi || ${TRUE}; \ + echo "$$lib" +.endif + +do-test: + ${RUN} cd ${WRKSRC}/test && ${SETENV} ${TEST_ENV} \ + ${SH} ./testsuite.sh + +.include "options.mk" + +.include "../../devel/libgetopt/buildlink3.mk" +.include "../../mk/dlopen.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/zzuf/PLIST b/devel/zzuf/PLIST new file mode 100644 index 00000000000..32b07255c50 --- /dev/null +++ b/devel/zzuf/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/09 06:56:52 bjs Exp $ +bin/zzuf +lib/zzuf/libzzuf.la +man/man1/zzuf.1 +man/man3/libzzuf.3 +@dirrm lib/zzuf diff --git a/devel/zzuf/distinfo b/devel/zzuf/distinfo new file mode 100644 index 00000000000..e5c32fc3124 --- /dev/null +++ b/devel/zzuf/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/12/09 06:56:52 bjs Exp $ + +SHA1 (zzuf-0.12.tar.gz) = 13a5abecf585f4da893f0592485f9e50fb42ad71 +RMD160 (zzuf-0.12.tar.gz) = 2eb81c4136b2f44f012eec34484197138aed8684 +Size (zzuf-0.12.tar.gz) = 446043 bytes +SHA1 (patch-aa) = 73c4d388d2936f4f654d1b34d464920c583ad6e0 diff --git a/devel/zzuf/options.mk b/devel/zzuf/options.mk new file mode 100644 index 00000000000..f033df90e44 --- /dev/null +++ b/devel/zzuf/options.mk @@ -0,0 +1,15 @@ +# $NetBSD: options.mk,v 1.1.1.1 2008/12/09 06:56:52 bjs Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.zzuf +PKG_SUPPORTED_OPTIONS= debug +PKG_SUGGESTED_OPTIONS= debug + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdebug) +. if ${MACHINE_ARCH} == "x86_64" # XXX Is this correct? +CFLAGS+= -fno-omit-frame-pointer +. endif +BUILDLINK_TRANSFORM+= rm:-fomit-frame-pointer +.endif diff --git a/devel/zzuf/patches/patch-aa b/devel/zzuf/patches/patch-aa new file mode 100644 index 00000000000..da5443b1d9f --- /dev/null +++ b/devel/zzuf/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/12/09 06:56:52 bjs Exp $ + +--- src/Makefile.in.orig 2008-06-13 07:09:30.000000000 -0400 ++++ src/Makefile.in +@@ -226,7 +226,7 @@ libzzuf_la_SOURCES = libzzuf.c libzzuf.h + + libzzuf_la_CFLAGS = -DLIBZZUF + libzzuf_la_LDFLAGS = -avoid-version -no-undefined $(DLL_LDFLAGS) +-libzzuf_la_LIBADD = $(GETOPT_LIBS) $(DL_LIBS) $(MATH_LIBS) $(WINSOCK2_LIBS) ++libzzuf_la_LIBADD = $(GETOPT_LIBS) $(DL_LIBS) $(LIBRT) $(MATH_LIBS) $(WINSOCK2_LIBS) + all: all-am + + .SUFFIXES: |