2012-04-08 21:08:44 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2012/04/08 19:09:10 wiz Exp $
|
2005-08-10 15:54:58 +02:00
|
|
|
#
|
|
|
|
|
2011-02-25 16:43:51 +01:00
|
|
|
DISTNAME= scapy-2.1.1
|
2012-03-15 12:53:20 +01:00
|
|
|
PKGREVISION= 2
|
2005-08-10 15:54:58 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.secdev.org/projects/scapy/files/
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-08-10 15:54:58 +02:00
|
|
|
HOMEPAGE= http://www.secdev.org/projects/scapy/
|
|
|
|
COMMENT= Interactive packet manipulation program
|
|
|
|
|
2011-10-16 06:16:49 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-libpcap-[0-9]*:../../net/py-libpcap
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-libdnet-[0-9]*:../../net/py-libdnet
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-readline-[0-9]*:../../devel/py-readline
|
|
|
|
|
2009-06-09 14:30:02 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-01-03 16:02:51 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/scapy/ethertypes \
|
|
|
|
${PKG_SYSCONFDIR}/ethertypes
|
|
|
|
|
|
|
|
SUBST_CLASSES+= config
|
|
|
|
SUBST_STAGE.config= post-patch
|
2009-06-09 14:30:02 +02:00
|
|
|
SUBST_FILES.config= scapy/data.py
|
2007-01-03 16:02:51 +01:00
|
|
|
SUBST_SED.config= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
|
|
|
|
SUBST_MESSAGE.config= Fixing paths.
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/ethertypes ${WRKSRC}
|
2005-08-10 15:54:58 +02:00
|
|
|
|
2009-06-09 14:30:02 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/scapy
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ethertypes ${DESTDIR}${PREFIX}/share/examples/scapy/
|
|
|
|
|
2011-02-25 16:43:51 +01:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC}/test && ${SETENV} PYTHON=${PYTHONBIN} ./run_tests
|
2005-08-10 15:54:58 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/application.mk"
|
2011-10-16 06:16:49 +02:00
|
|
|
.include "../../lang/python/distutils.mk"
|
2005-08-10 15:54:58 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|