pkgsrc/net/scapy/Makefile
wiz aada88e659 Remove python24 and all traces of it from pkgsrc.
Remove devel/py-ctypes (only needed by and supporting python24).
Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE
lines that just mirror defaults now.
Miscellaneous cleanup while editing all these files.
2012-04-08 19:08:44 +00:00

44 lines
1.2 KiB
Makefile

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