pentoo-overlay/net-analyzer/sipvicious/sipvicious-0.2.8-r4.ebuild
Brian M. Waters 3b6415d51f sipvicious: switch to git
Tarball seems to be no longer distributed
2017-12-04 02:09:01 -05:00

39 lines
961 B
Bash

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1 git-r3
DESCRIPTION="A voip pentest tools suite"
HOMEPAGE="http://code.google.com/p/sipvicious/"
EGIT_REPO_URI="https://github.com/EnableSecurity/sipvicious.git"
EGIT_COMMIT="v0.2.8"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="pdf"
DEPEND=""
RDEPEND="pdf? ( dev-python/reportlab )"
src_prepare() {
epatch "${FILESDIR}"/"${P}"-path.patch
find ./ -name .svn | xargs rm -r
}
src_install() {
dodir /usr/share/${PN}
dodoc Changelog README.md THANKS TODO
rm -f Changelog README.md THANKS TODO
chmod 655 svcrash.py
cp -pPR * "${ED}"usr/share/${PN}/ || die
chown -R root:0 "${ED}"
for file in svmap.py svwar.py svcrack.py svreport.py svcrash.py; do
dosym /usr/share/${PN}/${file} /usr/bin/${file%%.*}
done
python_fix_shebang "${ED}"usr/share/${PN}
}