144304141e
from OpenBSD loopback device. Add a new layer for that. ok sthen@
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.18 2012/01/12 03:16:24 bluhm Exp $
|
|
|
|
COMMENT= powerful interactive packet manipulation in python
|
|
|
|
MODPY_EGG_VERSION= 2.1.0
|
|
DISTNAME= scapy-${MODPY_EGG_VERSION}
|
|
REVISION= 2
|
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://secdev.org/projects/scapy/
|
|
|
|
MAINTAINER= Jonathan Armani <armani@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/files/
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ethertypes
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
USE_GROFF = Yes
|
|
|
|
MODULES= lang/python
|
|
RUN_DEPENDS= net/libdnet,-python \
|
|
net/py-libpcap \
|
|
security/py-crypto \
|
|
math/py-gnuplot
|
|
REGRESS_DEPENDS=${RUN_DEPENDS}
|
|
|
|
PKG_ARCH= *
|
|
|
|
post-extract:
|
|
gunzip ${WRKSRC}/doc/scapy.1.gz
|
|
|
|
pre-configure:
|
|
perl -p -i -e "s,/etc/ethertypes,${SYSCONFDIR}/ethertypes,g" \
|
|
${WRKSRC}/scapy/data.py
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scapy
|
|
${INSTALL_DATA} ${DISTDIR}/ethertypes ${PREFIX}/share/examples/scapy
|
|
|
|
# some tests require root.
|
|
do-regress:
|
|
ln -fs ${MODPY_BIN} ${WRKDIR}/bin/python
|
|
cd ${WRKSRC}/test; PATH=${WRKDIR}/bin:${PATH} ${WRKSRC}/test/run_tests
|
|
|
|
.include <bsd.port.mk>
|