Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2016 04:33:42 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r427543 - head/net/py-pcap
Message-ID:  <201612020433.uB24XgfW008852@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Fri Dec  2 04:33:41 2016
New Revision: 427543
URL: https://svnweb.freebsd.org/changeset/ports/427543

Log:
  Add LIBPCAP option to allow building with libpcap from ports
  Pass maintainership to submitter
  
  While here:
  Remove build dependency on devel/swig13; source comes pre-swig'd
  
  PR:		214939 (based on)
  Submitted by:	Craig Leres <leres@ee.lbl.gov>

Modified:
  head/net/py-pcap/Makefile

Modified: head/net/py-pcap/Makefile
==============================================================================
--- head/net/py-pcap/Makefile	Fri Dec  2 03:50:08 2016	(r427542)
+++ head/net/py-pcap/Makefile	Fri Dec  2 04:33:41 2016	(r427543)
@@ -3,22 +3,30 @@
 
 PORTNAME=	pcap
 PORTVERSION=	0.6.4
+PORTREVISION=	1
 CATEGORIES=	net python
 MASTER_SITES=	SF/pylib${PORTNAME}/pylib${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	pylib${PORTNAME}-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	leres@ee.lbl.gov
 COMMENT=	Python interface to LBL Packet Capture library (libpcap)
 
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	swig:devel/swig13
-
 USES=		python
 USE_PYTHON=	distutils autoplist
 
+OPTIONS_DEFINE=	LIBPCAP
+
+LIBPCAP_DESC=		Use the ports version of libpcap
+LIBPCAP_LIB_DEPENDS=	libpcap.so.1:net/libpcap
+
+post-patch-LIBPCAP-on:
+	@${REINPLACE_CMD} -E -e 's|^(libpcap_dir[[:blank:]]*=).*$$|\1 "${LOCALBASE}/lib"|' \
+		${WRKSRC}/setup.py
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_pcapmodule.so
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612020433.uB24XgfW008852>