22bf74d229
Fix another spot that would be an issue with 32-bit environments. While here, tcpreplay is a test dependency.
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.34 2021/03/23 02:03:11 gutteridge Exp $
|
|
|
|
DISTNAME= scapy-2.4.4
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=secdev/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://scapy.net/
|
|
COMMENT= Interactive packet manipulation program
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
NO_BUILD= yes
|
|
|
|
PYTHON_VERSIONS_ACCEPTED= 38 37 36 27 # 3.9 not officially supported yet
|
|
|
|
INSTALLATION_DIRS+= share/examples/scapy
|
|
|
|
.include "options.mk"
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/scapy/ethertypes \
|
|
${PKG_SYSCONFDIR}/ethertypes
|
|
|
|
SUBST_CLASSES+= config
|
|
SUBST_STAGE.config= pre-configure
|
|
SUBST_FILES.config= scapy/data.py setup.py
|
|
SUBST_VARS.config= PKG_SYSCONFDIR
|
|
SUBST_SED.config+= -e "s|share/man|${PKGMANDIR}|g"
|
|
SUBST_MESSAGE.config= Fixing paths.
|
|
|
|
TEST_DEPENDS+= tcpreplay-[0-9]*:../../net/tcpreplay
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/ethertypes ${WRKSRC}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/ethertypes ${DESTDIR}${PREFIX}/share/examples/scapy/
|
|
|
|
DATE_VAL= ${DATE} "+%Y%m%d-%H%M%S"
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/test && ${SETENV} PYTHON=${PYTHONBIN} ./run_tests \
|
|
-t regression.uts -f html -K ipv6 -l \
|
|
-o /tmp/scapy_regression_test_${DATE_VAL:sh}.html
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|