pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/zzuf Import zzuf-0.12.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9432168dc6ad
branches:  trunk
changeset: 551159:9432168dc6ad
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Tue Dec 09 06:56:52 2008 +0000

description:
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:

 devel/zzuf/DESCR            |   5 ++++
 devel/zzuf/Makefile         |  51 +++++++++++++++++++++++++++++++++++++++++++++
 devel/zzuf/PLIST            |   6 +++++
 devel/zzuf/distinfo         |   6 +++++
 devel/zzuf/options.mk       |  15 +++++++++++++
 devel/zzuf/patches/patch-aa |  13 +++++++++++
 6 files changed, 96 insertions(+), 0 deletions(-)

diffs (120 lines):

diff -r 4963491184f1 -r 9432168dc6ad devel/zzuf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/zzuf/DESCR  Tue Dec 09 06:56:52 2008 +0000
@@ -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 -r 4963491184f1 -r 9432168dc6ad devel/zzuf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/zzuf/Makefile       Tue Dec 09 06:56:52 2008 +0000
@@ -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@localhost
+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 -r 4963491184f1 -r 9432168dc6ad devel/zzuf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/zzuf/PLIST  Tue Dec 09 06:56:52 2008 +0000
@@ -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 -r 4963491184f1 -r 9432168dc6ad devel/zzuf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/zzuf/distinfo       Tue Dec 09 06:56:52 2008 +0000
@@ -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 -r 4963491184f1 -r 9432168dc6ad devel/zzuf/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/zzuf/options.mk     Tue Dec 09 06:56:52 2008 +0000
@@ -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 -r 4963491184f1 -r 9432168dc6ad devel/zzuf/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/zzuf/patches/patch-aa       Tue Dec 09 06:56:52 2008 +0000
@@ -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:



Home | Main Index | Thread Index | Old Index