b4a5b86d7a
the current tcpdump.org version, the legacy version shipping with some of the BSD operating systems, and the WinPcap port for Windows.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2010/03/13 10:20:53 pettai Exp $
|
|
#
|
|
|
|
DISTNAME= pypcap-1.1
|
|
PKGNAME= ${PYPKGPREFIX}-pcap-1.1
|
|
CATEGORIES= net python
|
|
MASTER_SITES= http://pypcap.googlecode.com/files/
|
|
|
|
MAINTAINER= pettai@NetBSD.org
|
|
HOMEPAGE= http://code.google.com/p/pypcap/
|
|
COMMENT= Simplified object-oriented python module for libpcap
|
|
LICENSE= modified-bsd
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-pyrex-[0-9]*:../../lang/py-pyrex
|
|
|
|
SUBST_CLASSES+= python
|
|
SUBST_FILES.python= Makefile
|
|
SUBST_SED.python+= -e 's,@PYTHON@,${PYTHONBIN},g'
|
|
SUBST_STAGE.python= post-patch
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_FILES.prefix= Makefile
|
|
SUBST_SED.prefix= -e "s|@PREFIX@|${PREFIX}|g"
|
|
SUBST_STAGE.prefix= post-patch
|
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
FILES_SUBST+= PYTHONBIN=${PYTHONBIN:Q}
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
|
pyrexc pcap.pyx
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
|
${PYTHONBIN} setup.py config
|
|
# --with-pcap=${PREFIX}
|
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|