vomit: a tool to sniff cisco phone conversations, based on ebuild by yz250, closes #165

This commit is contained in:
jensp 2010-08-12 14:39:34 +00:00
parent 4892f750ac
commit fff2a8a49a
3 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,3 @@
AUX vomit-remove-old-libevent-code.patch 701 RMD160 d7a0771e71373dc78f0cb1effecb3229c1e88115 SHA1 2b0bb8d75eb6b794c6239d661dfda398e28997a2 SHA256 6889d9414df4ef31ce64cb3b0849e3eca847ba844c51ed43311d739b80d251d9
DIST vomit-0.2c.tar.gz 77755 RMD160 e473f35b690a7d7b21d7e74b73d38969d85ea700 SHA1 9675e8ce31951412fac05236f9124b3b46fd9e28 SHA256 b2aff5a6ecb556864e9d1338fae07ec85c43f5e7642c6d57aaa980434ccdc24c
EBUILD vomit-0.2c.ebuild 689 RMD160 f7e0731787fac5e69eeb8021b0327f3503c049a2 SHA1 e2fffd20e737b37a063fababd225ee0a578deae4 SHA256 229d5d190de7621288f63fb60e2321b196f9d9c0acc42343d0b1fa22a849e967

View file

@ -0,0 +1,39 @@
diff -Nru a/vomit.c b/vomit.c
--- a/vomit.c 2004-01-03 01:07:59.000000000 +0100
+++ b/vomit.c 2010-08-12 16:33:41.957998002 +0200
@@ -74,14 +74,6 @@
}
void
-sigcb(int sig)
-{
- extern int event_gotsig;
-
- event_gotsig = 1;
-}
-
-void
usage(char *name)
{
fprintf(stderr,
@@ -99,7 +91,6 @@
{
extern char *optarg;
extern int optind;
- extern int (*event_sigcb)(void);
int ch;
char *name = argv[0];
char *fromfile = NULL;
@@ -149,12 +140,6 @@
if ((pcap_off = pcap_dloff(pcap_pd)) < 0)
errx(1, "couldn't determine link layer offset");
- signal(SIGHUP, sigcb);
- signal(SIGINT, sigcb);
- signal(SIGTERM, sigcb);
-
- event_sigcb = cleanup;
-
voip_init();
event_dispatch();

View file

@ -0,0 +1,34 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
WANT_AUTOMAKE="1.4"
inherit autotools eutils
DESCRIPTION="Converts a Cisco IP phone conversation into a wav file"
HOMEPAGE="http://vomit.xtdnet.nl/"
SRC_URI="http://vomit.xtdnet.nl/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="${RDEPEND}"
RDEPEND="net-libs/libpcap
dev-libs/libdnet
dev-libs/libevent"
src_prepare() {
sed -i "s|-O2 -Wall -g|$CFLAGS|g" Makefile.* || die
epatch "${FILESDIR}"/${PN}-remove-old-libevent-code.patch
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc README || die
}