Index: net/Makefile =================================================================== --- net/Makefile +++ net/Makefile @@ -920,6 +920,7 @@ SUBDIR += py-netifaces SUBDIR += py-netlib SUBDIR += py-netstring + SUBDIR += py-nmsg SUBDIR += py-novaclient SUBDIR += py-oauth SUBDIR += py-oauth2 Index: net/py-nmsg/Makefile =================================================================== --- /dev/null +++ net/py-nmsg/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= nmsg +PORTVERSION= 0.3.1 +CATEGORIES= net python +MASTER_SITES= https://dl.farsightsecurity.com/dist/py${PORTNAME}/ \ + LOCAL/truckman/farsight +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py${PORTNAME}-${DISTVERSION} + +MAINTAINER= truckman@FreeBSD.org +COMMENT= Python wrapper for net/nmsg + +LICENSE= APACHE20 + +LIB_DEPENDS= libnmsg.so:${PORTSDIR}/net/nmsg + +USE_PYTHON= distutils autoplist + +CPPFLAGS+= -I${LOCALBASE}/include + +USES= python + +post-patch: + ${REINPLACE_CMD} -e "1s+ python+ ${PYTHON_CMD}+" ${WRKSRC}/setup.py + +post-install: + ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/python2.7/site-packages/_nmsg.so + +.include Index: net/py-nmsg/distinfo =================================================================== --- /dev/null +++ net/py-nmsg/distinfo @@ -0,0 +1,2 @@ +SHA256 (pynmsg-0.3.1.tar.gz) = ee913ff099ef43543a70103a0642c2aa9e298402d73fa74def9fce50fc95c14a +SIZE (pynmsg-0.3.1.tar.gz) = 103168 Index: net/py-nmsg/pkg-descr =================================================================== --- /dev/null +++ net/py-nmsg/pkg-descr @@ -0,0 +1,5 @@ +This is pynmsg, a Python extension module implemented in Cython for +the nmsg C library. + + +WWW: https://github.com/farsightsec/pynmsg