mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
pysnmp: reqs for net-analyzer/pret
This commit is contained in:
parent
1a20c0b5a2
commit
cb328b7185
3 changed files with 87 additions and 0 deletions
1
dev-python/pysnmp/Manifest
Normal file
1
dev-python/pysnmp/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST pysnmp-4.4.12.tar.gz 442270 BLAKE2B 0e4e1c44d7fe1def24d8bd12bf88012eb54d432888745becacdc9c072ab5a653eb947ee418f6b7b3f84bed39d6656dac25ea00a2accfa546d7310be17b04c8ee SHA512 f22a346443cb07beea594b67b09ce587f5602a439c68148b8a655a0d2c769893848bfcfdd47b5f0002f48c650bf3a39186edddf977fb3ad2cc0d124e66f2ce94
|
||||
34
dev-python/pysnmp/metadata.xml
Normal file
34
dev-python/pysnmp/metadata.xml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>netmon@gentoo.org</email>
|
||||
<name>Gentoo network monitoring and analysis project</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
This is a Python implementation of SNMP v.1/v.2c engine. Its general
|
||||
functionality is to assemble/disassemble SNMP messages from/into
|
||||
given SNMP Object IDs along with associated values. PySNMP also provides
|
||||
a few transport methods specific to TCP/IP networking.
|
||||
|
||||
PySNMP is written entirely in Python and is self-sufficient in terms
|
||||
that it does not rely on any third party tool (it is not a wrapper!).
|
||||
</longdescription>
|
||||
<longdescription lang="ja">
|
||||
これは SNMP v.1/v.2 エンジンのPython言語での実装です。関連値に沿ったSNMPオブジェ
|
||||
クトIDから/へSNMPメッセージをアセンブル/ディスアセンブルするのが一般的な機能です
|
||||
。PySNMPは幾つかのTCP/IPネットワーキングを特定するトランスポート・メソッドも提供
|
||||
します。
|
||||
|
||||
PySNMPは全体をPython言語で記述され、どのサードパーティ製ツールも信用しない立場で
|
||||
自給自足します。(これはラッパー・ツールではありません。)
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pysnmp</remote-id>
|
||||
<remote-id type="sourceforge">pysnmp</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
52
dev-python/pysnmp/pysnmp-4.4.12.ebuild
Normal file
52
dev-python/pysnmp/pysnmp-4.4.12.ebuild
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python SNMP library"
|
||||
HOMEPAGE="http://snmplabs.com/pysnmp/ https://pypi.org/project/pysnmp/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}]
|
||||
dev-python/pysmi[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_compile_all() {
|
||||
default
|
||||
|
||||
if use doc; then
|
||||
touch docs/source/conf.py
|
||||
emake -C docs html
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/* )
|
||||
docinto examples
|
||||
use examples && dodoc -r examples/* docs/mibs
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You may also be interested in the following packages: "
|
||||
elog "dev-python/pysnmp-apps - example programs using pysnmp"
|
||||
elog "dev-python/pysnmp-mibs - IETF and other mibs"
|
||||
elog "dev-python/pysmi - to dump MIBs in python format"
|
||||
}
|
||||
Loading…
Reference in a new issue