51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.14 2010/10/18 18:36:57 espie Exp $
|
|
|
|
COMMENT= powerful interactive packet manipulation in python
|
|
|
|
MODPY_EGG_VERSION= 2.1.0
|
|
DISTNAME= scapy-${MODPY_EGG_VERSION}
|
|
|
|
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= :py-libdnet-*:net/libdnet,-python \
|
|
:py-libpcap-*:net/py-libpcap \
|
|
:py-crypto-*:security/py-crypto \
|
|
:py-gnuplot-*: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>
|