pentoo-overlay/dev-python/impacket/impacket-0.9.6.0-r2.ebuild

39 lines
866 B
Bash

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit python
DESCRIPTION="a collection of Python classes focused on providing access to network packets."
HOMEPAGE="http://oss.coresecurity.com/projects/impacket.html"
SRC_URI="http://oss.coresecurity.com/repo/Impacket-${PV}.tar.gz"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
insinto /usr/lib/python"$(python_get_version)"/site-packages/impacket
doins impacket/*
insinto ${INSDESTTREE}/dcerpc
doins impacket/dcerpc/*
dodoc ChangeLog README doc/*
docinto examples && dodoc examples/*
cd examples && dosbin rpcdump.py samrdump.py smbclient.py smbcat.py
}