From owner-svn-ports-head@freebsd.org Fri Dec 2 04:33:43 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F8EAC5EB5E; Fri, 2 Dec 2016 04:33:43 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D31D91C91; Fri, 2 Dec 2016 04:33:42 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB24XgAP008853; Fri, 2 Dec 2016 04:33:42 GMT (envelope-from jhale@FreeBSD.org) Received: (from jhale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB24XgfW008852; Fri, 2 Dec 2016 04:33:42 GMT (envelope-from jhale@FreeBSD.org) Message-Id: <201612020433.uB24XgfW008852@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhale set sender to jhale@FreeBSD.org using -f From: "Jason E. Hale" Date: Fri, 2 Dec 2016 04:33:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427543 - head/net/py-pcap X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 04:33:43 -0000 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 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