From 30ff6756a2fe3a12064e05417cca3ad5b671bf94 Mon Sep 17 00:00:00 2001 From: Alexandre PIGNÉ Date: Wed, 15 Feb 2012 16:48:15 +0100 Subject: Portage structure --- bitarray-0.5.1.ebuild | 16 ------ dev-python/bittarray/bitarray-0.5.1.ebuild | 16 ++++++ dev-python/impacket/impacket-0.9.6.0.ebuild | 22 ++++++++ dev-python/netzob/netzob-0.3.1.ebuild | 46 +++++++++++++++++ dev-python/pcapy/pcapy-0.10.5.ebuild | 18 +++++++ impacket-0.9.6.0.ebuild | 22 -------- .../nfqueue-bindings/nfqueue-bindings-0.3.ebuild | 58 ++++++++++++++++++++++ netzob-0.3.1.ebuild | 46 ----------------- nfqueue-bindings-0.3.ebuild | 58 ---------------------- pcapy-0.10.5.ebuild | 18 ------- 10 files changed, 160 insertions(+), 160 deletions(-) delete mode 100644 bitarray-0.5.1.ebuild create mode 100644 dev-python/bittarray/bitarray-0.5.1.ebuild create mode 100644 dev-python/impacket/impacket-0.9.6.0.ebuild create mode 100644 dev-python/netzob/netzob-0.3.1.ebuild create mode 100644 dev-python/pcapy/pcapy-0.10.5.ebuild delete mode 100644 impacket-0.9.6.0.ebuild create mode 100644 net-libs/nfqueue-bindings/nfqueue-bindings-0.3.ebuild delete mode 100644 netzob-0.3.1.ebuild delete mode 100644 nfqueue-bindings-0.3.ebuild delete mode 100644 pcapy-0.10.5.ebuild diff --git a/bitarray-0.5.1.ebuild b/bitarray-0.5.1.ebuild deleted file mode 100644 index 48c5870..0000000 --- a/bitarray-0.5.1.ebuild +++ /dev/null @@ -1,16 +0,0 @@ - -EAPI=4 - -PYTHON_DEPEND="2:2.5 3" -SUPPORT_PYTHON_ABIS="1" - -inherit distutils - -DESCRIPTION="Efficient arrays of booleans extension for Python" -HOMEPAGE="https://github.com/ilanschnell/bitarray http://pypi.python.org/pypi/bitarray" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORD="~amd64 ~x86" -IUSE="" diff --git a/dev-python/bittarray/bitarray-0.5.1.ebuild b/dev-python/bittarray/bitarray-0.5.1.ebuild new file mode 100644 index 0000000..48c5870 --- /dev/null +++ b/dev-python/bittarray/bitarray-0.5.1.ebuild @@ -0,0 +1,16 @@ + +EAPI=4 + +PYTHON_DEPEND="2:2.5 3" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +DESCRIPTION="Efficient arrays of booleans extension for Python" +HOMEPAGE="https://github.com/ilanschnell/bitarray http://pypi.python.org/pypi/bitarray" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORD="~amd64 ~x86" +IUSE="" diff --git a/dev-python/impacket/impacket-0.9.6.0.ebuild b/dev-python/impacket/impacket-0.9.6.0.ebuild new file mode 100644 index 0000000..772db9b --- /dev/null +++ b/dev-python/impacket/impacket-0.9.6.0.ebuild @@ -0,0 +1,22 @@ + +EAPI=4 + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +DESCRIPTION="Python Impacket extension" +HOMEPAGE="http://oss.coresecurity.com/projects/impacket.html" +MY_PN="Impacket" +MY_P="${MY_PN}-${PV}" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz + http://oss.coresecurity.com/repo/${MY_P}.tar.gz" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORD="~amd64 ~x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" diff --git a/dev-python/netzob/netzob-0.3.1.ebuild b/dev-python/netzob/netzob-0.3.1.ebuild new file mode 100644 index 0000000..fcda0c7 --- /dev/null +++ b/dev-python/netzob/netzob-0.3.1.ebuild @@ -0,0 +1,46 @@ + +EAPI=4 +PYTHON_DEPEND="2:2.6" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +MY_P="Netzob-${PV}" + +DESCRIPTION="Network protocol modelization by reverse engineering" +HOMEPAGE="http://www.netzob.org/" +SRC_URI="http://www.netzob.org/repository/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORD="~x86" +IUSE="doc" + +RDEPEND=">=dev-python/python-ptrace-0.4.1 + app-misc/hachoir-subfile + dev-python/matplotlib + dev-util/strace + sys-process/lsof + >=dev-python/lxml-2.3 + dev-python/bitarray + dev-python/impacket + net-libs/nfqueue-bindings[python]" +# python-pcapy +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx )" + +RESTRICT_PYTHON_ABIS="3.*" + +S="${WORKDIR}/${MY_P}" +DOCS="README.txt AUTHORS.txt NEWS.txt COPYING.txt" + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + pushd docs >/dev/null + #emake html || die "Generation of documentation failed" + popd >/dev/null + fi +} diff --git a/dev-python/pcapy/pcapy-0.10.5.ebuild b/dev-python/pcapy/pcapy-0.10.5.ebuild new file mode 100644 index 0000000..9c750f9 --- /dev/null +++ b/dev-python/pcapy/pcapy-0.10.5.ebuild @@ -0,0 +1,18 @@ + +EAPI=4 + +PYTHON_DEPEND="2:2.0" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +DESCRIPTION="Python pcap extension" +HOMEPAGE="http://oss.coresecurity.com/projects/pcapy.html" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + http://oss.coresecurity.com/repo/${P}.tar.gz" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORD="~amd64 ~x86" +IUSE="" diff --git a/impacket-0.9.6.0.ebuild b/impacket-0.9.6.0.ebuild deleted file mode 100644 index 772db9b..0000000 --- a/impacket-0.9.6.0.ebuild +++ /dev/null @@ -1,22 +0,0 @@ - -EAPI=4 - -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit distutils - -DESCRIPTION="Python Impacket extension" -HOMEPAGE="http://oss.coresecurity.com/projects/impacket.html" -MY_PN="Impacket" -MY_P="${MY_PN}-${PV}" -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz - http://oss.coresecurity.com/repo/${MY_P}.tar.gz" - -LICENSE="Apache-1.1" -SLOT="0" -KEYWORD="~amd64 ~x86" -IUSE="" - -S="${WORKDIR}/${MY_P}" diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.3.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.3.ebuild new file mode 100644 index 0000000..96f6176 --- /dev/null +++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.3.ebuild @@ -0,0 +1,58 @@ +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 +inherit cmake-utils perl-module linux-info + + +DESCRIPTION="nfqueue-bindings is a set of high-level modules for several +languages (Python and Perl, for the moment), for libnetfilter_queue" +HOMEPAGE="http://software.inl.fr/trac/wiki/nfqueue-bindings" +SRC_URI="http://software.inl.fr/releases/nfqueue-bindings/${P}.tar.gz" + +KEYWORDS="~x86 ~amd64" +SLOT="0" +LICENSE="GPL-3" +IUSE="perl python examples" + +DEPEND="python? ( + virtual/python + dev-python/dpkt + ) + perl? ( dev-lang/perl ) + net-libs/libnetfilter_queue + dev-lang/swig" + +pkg_setup() { + # At least one of Python or Perl must be selected + useq python || useq perl || die "At least one supported language must be selected." + # Check kernel configuration for NFQUEUE + if linux_config_exists; then + ebegin "Checking NETFILTER_NETLINK_QUEUE support" + linux_chkconfig_present NETFILTER_NETLINK_QUEUE + eend $? || \ + eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!' + ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support" + linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE + eend $? || \ + eerror '"NFQUEUE" target Support not found!' + fi +} + +src_unpack() { + unpack ${A} + perl_set_version + # Fix include Perl search directory + sed -i "/SET[[:space:]]*([[:space:]]*PERL_POSSIBLE_INCLUDE_PATHS/a\ ${ARCH_LIB}/CORE" ${P}/FindPerlLibs2.cmake + # Fix Perl destination directory + sed -i "/DESTINATION/s#\(perl\${PERL_VERSION}\)#\1/site_perl/${PERL_VERSION}/${ARCH_LIB##*/}#g" ${P}/perl/CMakeLists.txt + # Disable Perl/Python from USE flags + useq perl || sed -i '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*perl[[:space:]]*)/s/^/#/g' ${P}/CMakeLists.txt + useq python || sed -i '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*python[[:space:]]*)/s/^/#/g' ${P}/CMakeLists.txt +} + +src_install() { + emake DESTDIR="${D}" install PREFIX=/usr || die + docinto examples + useq examples && dodoc examples/* +} diff --git a/netzob-0.3.1.ebuild b/netzob-0.3.1.ebuild deleted file mode 100644 index fcda0c7..0000000 --- a/netzob-0.3.1.ebuild +++ /dev/null @@ -1,46 +0,0 @@ - -EAPI=4 -PYTHON_DEPEND="2:2.6" -SUPPORT_PYTHON_ABIS="1" - -inherit distutils - -MY_P="Netzob-${PV}" - -DESCRIPTION="Network protocol modelization by reverse engineering" -HOMEPAGE="http://www.netzob.org/" -SRC_URI="http://www.netzob.org/repository/${PV}/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORD="~x86" -IUSE="doc" - -RDEPEND=">=dev-python/python-ptrace-0.4.1 - app-misc/hachoir-subfile - dev-python/matplotlib - dev-util/strace - sys-process/lsof - >=dev-python/lxml-2.3 - dev-python/bitarray - dev-python/impacket - net-libs/nfqueue-bindings[python]" -# python-pcapy -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx )" - -RESTRICT_PYTHON_ABIS="3.*" - -S="${WORKDIR}/${MY_P}" -DOCS="README.txt AUTHORS.txt NEWS.txt COPYING.txt" - -src_compile() { - distutils_src_compile - - if use doc; then - einfo "Generation of documentation" - pushd docs >/dev/null - #emake html || die "Generation of documentation failed" - popd >/dev/null - fi -} diff --git a/nfqueue-bindings-0.3.ebuild b/nfqueue-bindings-0.3.ebuild deleted file mode 100644 index 96f6176..0000000 --- a/nfqueue-bindings-0.3.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=2 -inherit cmake-utils perl-module linux-info - - -DESCRIPTION="nfqueue-bindings is a set of high-level modules for several -languages (Python and Perl, for the moment), for libnetfilter_queue" -HOMEPAGE="http://software.inl.fr/trac/wiki/nfqueue-bindings" -SRC_URI="http://software.inl.fr/releases/nfqueue-bindings/${P}.tar.gz" - -KEYWORDS="~x86 ~amd64" -SLOT="0" -LICENSE="GPL-3" -IUSE="perl python examples" - -DEPEND="python? ( - virtual/python - dev-python/dpkt - ) - perl? ( dev-lang/perl ) - net-libs/libnetfilter_queue - dev-lang/swig" - -pkg_setup() { - # At least one of Python or Perl must be selected - useq python || useq perl || die "At least one supported language must be selected." - # Check kernel configuration for NFQUEUE - if linux_config_exists; then - ebegin "Checking NETFILTER_NETLINK_QUEUE support" - linux_chkconfig_present NETFILTER_NETLINK_QUEUE - eend $? || \ - eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!' - ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support" - linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE - eend $? || \ - eerror '"NFQUEUE" target Support not found!' - fi -} - -src_unpack() { - unpack ${A} - perl_set_version - # Fix include Perl search directory - sed -i "/SET[[:space:]]*([[:space:]]*PERL_POSSIBLE_INCLUDE_PATHS/a\ ${ARCH_LIB}/CORE" ${P}/FindPerlLibs2.cmake - # Fix Perl destination directory - sed -i "/DESTINATION/s#\(perl\${PERL_VERSION}\)#\1/site_perl/${PERL_VERSION}/${ARCH_LIB##*/}#g" ${P}/perl/CMakeLists.txt - # Disable Perl/Python from USE flags - useq perl || sed -i '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*perl[[:space:]]*)/s/^/#/g' ${P}/CMakeLists.txt - useq python || sed -i '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*python[[:space:]]*)/s/^/#/g' ${P}/CMakeLists.txt -} - -src_install() { - emake DESTDIR="${D}" install PREFIX=/usr || die - docinto examples - useq examples && dodoc examples/* -} diff --git a/pcapy-0.10.5.ebuild b/pcapy-0.10.5.ebuild deleted file mode 100644 index 9c750f9..0000000 --- a/pcapy-0.10.5.ebuild +++ /dev/null @@ -1,18 +0,0 @@ - -EAPI=4 - -PYTHON_DEPEND="2:2.0" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit distutils - -DESCRIPTION="Python pcap extension" -HOMEPAGE="http://oss.coresecurity.com/projects/pcapy.html" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - http://oss.coresecurity.com/repo/${P}.tar.gz" - -LICENSE="Apache-1.1" -SLOT="0" -KEYWORD="~amd64 ~x86" -IUSE="" -- cgit v1.2.3-65-gdbad