sipvicious: version bump

This commit is contained in:
Anton Bolshakov 2012-03-19 06:12:06 +00:00
parent d5fc77c8ff
commit 0aa747da77
3 changed files with 109 additions and 0 deletions

View file

@ -1,3 +1,6 @@
AUX sipvicious-0.2.7-gentoo.patch 2713 RMD160 a85f01c5dc0b84a5e69449ce8f1589f1ab0359ae SHA1 09293829d29a5b5a0a7f6b28b0df32d0cb493534 SHA256 08cf5fcb6e5d13ed6cf61ffdfe02728cac17f1b0c24f1786ebb58e019d34ea3b
AUX sipvicious-gentoo.patch 2701 RMD160 7377d9a2d7008bc7239afeb64d33e1cf2d9d66ee SHA1 f98fbb9bc89daa7a7d761d2957091ce7072b2234 SHA256 797a3187ba5f151a3f1ded9b0f9ebb1adfbe421e4d826f83e2e42641398635e5
DIST sipvicious-0.2.6.tar.gz 293952 RMD160 9d3cc109bbe90e390cb05b52466bfec033a4fc9e SHA1 f9698e39197a2d6743a78cdcda6de4dc545ec511 SHA256 1e25862cc9e81979e0d66e5fb298c8cfd17279e7dd683b1dd841dcf1dbc29cc8
DIST sipvicious-0.2.7.tar.gz 281793 RMD160 c11717509ee0daa6f1e33d8d05171c34943097c9 SHA1 8ee2c70346466b3871b2171364881ebc6f8f1e3b SHA256 96fd41c1937f2e3af3ca2494906757aab8b012cc1abd9849339f5e5b0ac3a993
EBUILD sipvicious-0.2.6-r1.ebuild 741 RMD160 0c12610eebbbca8a3e92bb648cb88fe02e2d4146 SHA1 10082ebbcbdf6ff1b6a3699c6b44899ced51edcf SHA256 37e131f57a9080ec021f74b4f700731a40ab8e562a029c58b4cf5d52cb02e3d6
EBUILD sipvicious-0.2.7.ebuild 816 RMD160 98612faa996ca5bd2d54ec281c411511ca1f06f8 SHA1 1de1ede9c1b3d4ac56318f0b034bc1b5bb4a3558 SHA256 150123f0587df9809b0255532bf7c2f1b9c7e8f1edf385f68b3cde0826ad79fe

View file

@ -0,0 +1,69 @@
diff -Naur sipvicious-0.2.4.orig/svfphelper.py sipvicious-0.2.4/fphelper.py
--- sipvicious-0.2.4.orig/svfphelper.py 2008-08-10 16:20:18.000000000 +0000
+++ sipvicious-0.2.4/svfphelper.py 2008-12-02 14:58:22.000000000 +0000
@@ -70,7 +70,7 @@
cPickle.dump(dynamicmatch,output)
output.close()
-def fpdynamicstore(servername,regex,fpfile="totag"):
+def fpdynamicstore(servername,regex,fpfile="/usr/lib/sipvicious/totag"):
import shelve,os,logging
log = logging.getLogger('fpdynamicstore')
if regex is not None:
@@ -82,7 +82,7 @@
except OSError:
return
-def fpexists(fpname,fpfile="totag"):
+def fpexists(fpname,fpfile="/usr/lib/sipvicious/totag"):
import shelve,logging
log = logging.getLogger("fpexists")
try:
@@ -95,7 +95,7 @@
dynamicmatch.close()
return r
-def fpdynamic(dyn,fpfile="totag"):
+def fpdynamic(dyn,fpfile="/usr/lib/sipvicious/totag"):
import shelve
import logging
log = logging.getLogger("fpdynamic")
@@ -147,7 +147,7 @@
orderhash = ''
return totalhashed,orderhash,hashedheaders
-def fpstatic(buffer,fullfn='staticfull',headersfn='staticheaders'):
+def fpstatic(buffer,fullfn='/usr/lib/sipvicious/staticfull',headersfn='/usr/lib/sipvicious/staticheaders'):
totalhashed,orderhashed,hashedheaders = hashstatic(buffer)
import shelve
fulldb = shelve.open(fullfn,writeback=True)
@@ -184,7 +184,7 @@
return True
-def fpstore(servername,fullhash,headerhashes,fullfn='staticfull',headersfn='staticheaders'):
+def fpstore(servername,fullhash,headerhashes,fullfn='/usr/lib/sipvicious/staticfull',headersfn='/usr/lib/sipvicious/staticheaders'):
import shelve,logging
log = logging.getLogger("fpstore")
fulldb = shelve.open(fullfn)
@@ -298,7 +298,7 @@
splitbuff = buff.split(SEP,2)
return(splitbuff[0])
-def groupwherepossible(fpnames,groupdb='groupdb'):
+def groupwherepossible(fpnames,groupdb='/usr/lib/sipvicious/groupdb'):
import shelve, logging, re
log = logging.getLogger('grouphwerepossible')
log.debug("entered")
diff -Naur sipvicious-0.2.4.orig/svhelper.py sipvicious-0.2.4/helper.py
--- sipvicious-0.2.4.orig/svhelper.py 2008-08-10 16:20:18.000000000 +0000
+++ sipvicious-0.2.4/svhelper.py 2008-12-02 14:51:06.000000000 +0000
@@ -818,7 +818,7 @@
prefix='| ', postfix=' |',wrapfunc=lambda x: wrap_onspace(x,width))
return o
-def outputtoxml(title,labels,db,resdb=None,xsl='sv.xsl'):
+def outputtoxml(title,labels,db,resdb=None,xsl='/usr/lib/sipvicious/sv.xsl'):
from xml.sax.saxutils import escape
o = '<?xml version="1.0" ?>\r\n'
o += '<?xml-stylesheet type="text/xsl" href="%s"?>\r\n' % escape(xsl)

View file

@ -0,0 +1,37 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils
DESCRIPTION="A voip pentest tools suite"
HOMEPAGE="http://code.google.com/p/sipvicious/"
SRC_URI="http://sipvicious.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
#S="${WORKDIR}"/${PN}
src_prepare() {
epatch "${FILESDIR}"/"${P}"-gentoo.patch
}
src_install() {
dodir /usr/lib/sipvicious
dodoc Changelog README THANKS TODO
rm -f Changelog README THANKS TODO
chmod 655 svcrash.py
cp -pPR * "${D}"usr/lib/sipvicious/ || die
chown -R root:0 "${D}"
for file in svmap.py svwar.py svcrack.py svreport.py svlearnfp.py svcrash.py; do
dosym /usr/lib/sipvicious/${file} /usr/bin/${file}
done
}