summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2016-09-19 13:04:26 +0000
committerwiedi <wiedi@pkgsrc.org>2016-09-19 13:04:26 +0000
commit895587c7f8bb532945ab5f8f70eb6e10a2b381fe (patch)
treecd043417797b32cdce09056d5ebaf787654ffe5d /security
parent3934860d710f1ea7cac64ab919d68428bad05705 (diff)
downloadpkgsrc-895587c7f8bb532945ab5f8f70eb6e10a2b381fe.tar.gz
needs openssl and network libs on SunOS
Diffstat (limited to 'security')
-rw-r--r--security/bunny/Makefile6
-rw-r--r--security/bunny/distinfo3
-rw-r--r--security/bunny/patches/patch-Makefile17
3 files changed, 24 insertions, 2 deletions
diff --git a/security/bunny/Makefile b/security/bunny/Makefile
index a3e0501bdd0..6d87d77825c 100644
--- a/security/bunny/Makefile
+++ b/security/bunny/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2016/07/09 21:43:24 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2016/09/19 13:04:27 wiedi Exp $
#
DISTNAME= bunny-0.93
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://bunny-the-fuzzer.googlecode.com/files/
EXTRACT_SUFX= .tgz
@@ -15,9 +16,12 @@ WRKSRC= ${WRKDIR}/bunny
USE_TOOLS+= gmake
AUTO_MKDIRS= yes
+LDFLAGS.SunOS+= -lsocket -lnsl
+
do-install:
.for program in bunny-exec bunny-flow bunny-gcc bunny-main bunny-trace
${INSTALL_PROGRAM} ${WRKSRC}/${program} ${DESTDIR}${PREFIX}/bin/${program}
.endfor
+.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/bunny/distinfo b/security/bunny/distinfo
index d687cdd43d9..85afcb179d7 100644
--- a/security/bunny/distinfo
+++ b/security/bunny/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2016/07/09 21:43:24 rillig Exp $
+$NetBSD: distinfo,v 1.2 2016/09/19 13:04:27 wiedi Exp $
SHA1 (bunny-0.93.tgz) = 29dae023e4d6221f064fffae0e4011322a42041a
RMD160 (bunny-0.93.tgz) = daee7e9eb0fa71a5e25f9f7171d0598ddb03c134
Size (bunny-0.93.tgz) = 64575 bytes
+SHA1 (patch-Makefile) = 2934cb0f48787f90271464f0c305667d31deb082
diff --git a/security/bunny/patches/patch-Makefile b/security/bunny/patches/patch-Makefile
new file mode 100644
index 00000000000..5e63da81205
--- /dev/null
+++ b/security/bunny/patches/patch-Makefile
@@ -0,0 +1,17 @@
+$NetBSD: patch-Makefile,v 1.1 2016/09/19 13:04:27 wiedi Exp $
+
+respect CFLAGS and LDFLAGS
+
+--- Makefile.orig 2007-11-06 11:04:07.000000000 +0000
++++ Makefile
+@@ -19,8 +19,8 @@
+ #
+
+ PROGNAME = bunny-gcc bunny-trace bunny-exec bunny-flow bunny-main
+-CFLAGS = -Wall -O3 -funroll-loops -fno-strict-aliasing -ffast-math -Wno-pointer-sign
+-EX_LIBS = -lcrypto -lm
++CFLAGS += -Wall -O3 -funroll-loops -fno-strict-aliasing -ffast-math -Wno-pointer-sign
++EX_LIBS = -lcrypto -lm $(LDFLAGS)
+
+ # CFLAGS = -Wall -g -ggdb -g3 -Wno-pointer-sign
+ # CFLAGS += -DDEBUG_TRACE=1