Skip to content
Snippets Groups Projects
Verified Commit 0ee08886 authored by sunpoet's avatar sunpoet
Browse files

net/py-pyshark: Convert REINPLACE_CMD to patch file

parent 48d46f1e
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,6 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
post-patch:
@${REINPLACE_CMD} -e 's|C:\\Program Files\\Wireshark\\\(.*\).exe|${LOCALBASE}/bin/\1|' ${WRKSRC}/pyshark/config.ini
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/pyshark/config.ini
.include <bsd.port.mk>
--- pyshark/config.ini.orig 2020-05-27 13:39:51 UTC
+++ pyshark/config.ini
@@ -7,7 +7,7 @@
# (Linux): /usr/local/bin/tshark
# (Windows): %ProgramFiles%\Wireshark\tshark.exe
# (Windows): %ProgramFiles(x86)%\Wireshark\tshark.exe
-tshark_path = C:\Program Files\Wireshark\tshark.exe
+tshark_path = %%LOCALBASE%%/bin/tshark
[dumpcap]
-dumpcap_path = C:\Program Files\Wireshark\dumpcap.exe
+dumpcap_path = /usr/local/bin/dumpcap
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment