openbsd-ports/net/py-snmp/Makefile
2011-09-16 11:13:37 +00:00

38 lines
900 B
Makefile

# $OpenBSD: Makefile,v 1.12 2011/09/16 11:13:40 espie Exp $
COMMENT= SNMP framework for Python
DISTNAME= pysnmp-3.4.4
PKGNAME= ${DISTNAME:S/py/py-/}
REVISION= 5
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= lang/python
DOCSDIR= ${PREFIX}/share/doc/py-snmp
EXAMPLESDIR= ${PREFIX}/share/examples/py-snmp
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/docs; tar cf - . | tar xf - -C ${DOCSDIR}
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>