2007-10-08 04:22:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2007/10/08 08:22:42 steven Exp $
|
2004-06-22 11:31:26 -04:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= SNMP framework for Python
|
2004-06-22 11:31:26 -04:00
|
|
|
|
2005-10-29 06:38:44 -04:00
|
|
|
DISTNAME= pysnmp-3.4.4
|
2007-10-08 04:22:38 -04:00
|
|
|
PKGNAME= ${DISTNAME:S/py/py-/}p1
|
2004-06-22 11:31:26 -04:00
|
|
|
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/}
|
|
|
|
|
2004-08-04 15:14:30 -04:00
|
|
|
MODULES= lang/python
|
2004-06-22 11:31:26 -04:00
|
|
|
|
|
|
|
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>
|