net/scapy: Fix FreeBSD HEAD CI

- After introducing nexthop objects in base@r359823 FreeBSD CI is failing
  as netstat header has changed from Use to Nhop#. This patch is a
  temporary workaround while I will work on libxo implementation in
  scapy.
- Remove some unchanged files in post-patch

Reported by:	kp
This commit is contained in:
Muhammad Moinur Rahman 2020-04-15 20:17:22 +00:00
parent 4fb15c3aca
commit 020ecb9e9c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531789

View file

@ -3,7 +3,7 @@
PORTNAME= scapy
PORTVERSION= 2.4.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -66,10 +66,10 @@ post-patch:
@${REINPLACE_CMD} "s,share/man/man1,man/man1," ${WRKSRC}/setup.py
@${REINPLACE_CMD} "s,pdflatex,pdftex," ${WRKSRC}/scapy/extlib.py
@${REINPLACE_CMD} "s,/usr/share/,${LOCALBASE}/share/," \
${WRKSRC}/scapy/data.py \
${WRKSRC}/scapy/modules/nmap.py \
${WRKSRC}/scapy/utils6.py
${WRKSRC}/scapy/modules/nmap.py
@${REINPLACE_CMD} "s,/etc/,${LOCALBASE}/etc/," \
${WRKSRC}/scapy/modules/p0f.py
@${REINPLACE_CMD} 's|"use" in line|"use" in line or "nhop" in line|' \
${WRKSRC}/scapy/arch/unix.py
.include <bsd.port.post.mk>