add local overlay
This commit is contained in:
commit
4883c62e9a
68 changed files with 2719 additions and 0 deletions
42
dev-python/impacket/impacket-0.9.12-r2.ebuild
Normal file
42
dev-python/impacket/impacket-0.9.12-r2.ebuild
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A collection of Python classes focused on providing access to network packets"
|
||||
HOMEPAGE="https://github.com/CoreSecurity/impacket"
|
||||
SRC_URI=""
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/CoreSecurity/impacket.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/CoreSecurity/impacket/archive/impacket_${PV//./_}.tar.gz -> ${P}.tar.gz"
|
||||
inherit versionator
|
||||
S="${WORKDIR}"/${PN}-${PN}_$(replace_all_version_separators _)
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
pushd impacket/testcases/dot11
|
||||
for test in $(ls *.py); do
|
||||
${PYTHON} ${test} || die "Tests fail with ${EPYTHON}"
|
||||
done
|
||||
popd
|
||||
pushd impacket/testcases/ImpactPacket
|
||||
for test in $(ls *.py); do
|
||||
${PYTHON} ${test} || die "Tests fail with ${EPYTHON}"
|
||||
done
|
||||
popd
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue