40a374827d
PySNMPis 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.
38 lines
907 B
Makefile
38 lines
907 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2004/06/22 15:31:26 xsa Exp $
|
|
|
|
COMMENT= "SNMP framework for Python"
|
|
|
|
DISTNAME= pysnmp-3.4.2
|
|
PKGNAME= ${DISTNAME:S/py/py-/}
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://pysnmp.sourceforge.net/
|
|
|
|
MAINTAINER= Xavier Santolaria <xsa@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pysnmp/}
|
|
|
|
MODULES= python
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-snmp
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-snmp
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/docs; tar cf - . | tar xf - -C ${DOCSDIR}
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/examples; tar cf - . | tar xf - -C ${EXAMPLESDIR}
|
|
|
|
do-regress: fake
|
|
@cd ${WRKSRC} && ${MAKE_ENV} \
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
${MODPY_BIN} -c 'from pysnmp.test import suite; suite.run()'
|
|
|
|
.include <bsd.port.mk>
|