mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-17 12:20:59 +02:00
spike: added 2.9, plz test it
This commit is contained in:
parent
5e2737baa8
commit
45095ea46f
3 changed files with 66 additions and 0 deletions
3
app-fuzz/spike/Manifest
Normal file
3
app-fuzz/spike/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
AUX spike-fix-return_1_on_closed_socket.patch 535 RMD160 438962493a4a5a2280a2cdd4a3346b51b24e7142 SHA1 5642be9d97b9983fa463d5b8cbc9a7478f27dca3 SHA256 6e894637b236ef1ba8854cd4f84d74d2eadb68aedd4cd738349eda02f7b988a6
|
||||
DIST SPIKE2.9.tgz 1937588 RMD160 77f340e186aa36a2b38225ba23f8ae5a3549f1b8 SHA1 efc403a5f48f7172402f8896f398d2b1b9881f29 SHA256 51069ab3b52d76f49c21dd0a9af552f754a8377f7533fcb29fc0a361ded88552
|
||||
EBUILD spike-2.9.ebuild 1019 RMD160 1589a4c36081b66945d50208af720869ad930ea6 SHA1 f9f50342dbcf054700fdbf8007d5fad0943cbac1 SHA256 d35decbf7372e56dd339608d562acf0bd1bd7daf59717544d5c4f4d48cb48e11
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
--- SPIKE/SPIKE/src/spike.c.orig 2010-12-29 13:27:21.000000000 +0000
|
||||
+++ SPIKE/SPIKE/src/spike.c 2010-12-29 13:28:23.000000000 +0000
|
||||
@@ -1082,7 +1082,7 @@
|
||||
if (current_spike->fd==-1)
|
||||
{
|
||||
printf("tried to send to a closed socket!\n");
|
||||
- return 0;
|
||||
+ return 1;
|
||||
}
|
||||
c=s_get_databuf();
|
||||
totalsize=s_get_size();
|
||||
@@ -1160,7 +1160,7 @@
|
||||
if (current_spike->fd==-1)
|
||||
{
|
||||
printf("tried to send to a closed socket!\n");
|
||||
- return 0;
|
||||
+ return 1;
|
||||
}
|
||||
alarm(5);
|
||||
signal(SIGALRM,(void*)sighandler);
|
||||
43
app-fuzz/spike/spike-2.9.ebuild
Normal file
43
app-fuzz/spike/spike-2.9.ebuild
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /root/portage/app-fuzz/bss/bss-0.6.ebuild,v 1.1.1.1 2006/03/29 14:43:43 grimmlin Exp $
|
||||
|
||||
EAPI="2"
|
||||
inherit eutils
|
||||
|
||||
MY_PN="SPIKE"
|
||||
MY_P="${MY_PN}${PV}"
|
||||
DESCRIPTION="A generic network fuzzer"
|
||||
HOMEPAGE="http://www.immunitysec.com/resources-freesoftware.shtml"
|
||||
SRC_URI="http://www.immunitysec.com/downloads/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND=""
|
||||
S="${WORKDIR}/${MY_PN}/${MY_PN}/src"
|
||||
|
||||
src_prepare() {
|
||||
# patch from http://resources.infosecinstitute.com/intro-to-fuzzing/
|
||||
epatch "${FILESDIR}/spike-fix-return_1_on_closed_socket.patch" || die "Patch failed"
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
econf || die "econf failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local bin
|
||||
for bin in `grep "BINS = " Makefile | sed -e 's/BINS = //' -e 's/libdlrpc.so//'`
|
||||
do
|
||||
dobin "${bin}"
|
||||
done
|
||||
dolib.so libdlrpc.so
|
||||
cd ..
|
||||
dodoc README.txt TODO.txt CHANGELOG.txt
|
||||
if use doc; then
|
||||
dodoc documentation/*
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue