[MacPorts] #26293: Wireshark ChmodBPF
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Wireshark ports does not place ChmodBPF files, to allow users with read access to the BPF devices to capture packets. -- Ticket URL: <http://trac.macports.org/ticket/26293> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Changes (by jmr@…): * cc: opendarwin.org@… (added) -- Ticket URL: <http://trac.macports.org/ticket/26293#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Changes (by ricci@…): * owner: macports-tickets@… => ricci@… * status: new => assigned -- Ticket URL: <http://trac.macports.org/ticket/26293#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by hsivank@…): attached a patch to fix this issue. -- Ticket URL: <http://trac.macports.org/ticket/26293#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by hsivank@…): This new patch does not rely anymore on startup item script. -- Ticket URL: <http://trac.macports.org/ticket/26293#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Your patch removes the epoch line; the epoch line can never be removed from a portfile. -- Ticket URL: <https://trac.macports.org/ticket/26293#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by hsivank@…): Replying to [comment:5 ryandesign@…]:
Your patch removes the epoch line; the epoch line can never be removed from a portfile. Sorry :/[[BR]] This patch [https://trac.macports.org/attachment/ticket/26293/Portfile- wireshark-devel-r2.diff Portfile-wireshark-devel-r2.diff] should be ok
-- Ticket URL: <https://trac.macports.org/ticket/26293#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by hsivank@…): Replying to [comment:6 hsivank@…]:
Replying to [comment:5 ryandesign@…]:
Your patch removes the epoch line; the epoch line can never be removed from a portfile. Sorry :/[[BR]] This patch [https://trac.macports.org/attachment/ticket/26293/Portfile- wireshark-devel-r2.diff Portfile-wireshark-devel-r2.diff] should be ok i'm mean this one [https://trac.macports.org/attachment/ticket/26293 /Portfile-wireshark-devel-r3.diff Portfile-wireshark-devel-r3.diff]
-- Ticket URL: <https://trac.macports.org/ticket/26293#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by ricci@…): Has this startup item been tested w/ launchd - in particular does launchd not try to keep respawning it after the shell script runs? -- Ticket URL: <https://trac.macports.org/ticket/26293#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by hsivank@…): Portfile-wireshark-devel-r3.diff doesn't seems to work ... drawback to startup script mode [http://trac.macports.org/attachment/ticket/26293 /Portfile-wireshark-devel-r4.diff Portfile-wireshark-devel-r4.diff] [[BR]] i use "startupitem.pidfile none" option. launchd should not keep respawning. Am i wrong ? -- Ticket URL: <https://trac.macports.org/ticket/26293#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by ricci@…): The attached diff and file (place in `port dir wireshark`/files/) should work as well - the only problem I've got right now with it is that it violates mtree by making the link in /Library/LaunchDaemons. I'm not (immediately) seeing how to make a custom launchd script without doing so, if anyone can comment/provide a fix that'd be great. -- Ticket URL: <https://trac.macports.org/ticket/26293#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26293: Wireshark ChmodBPF -------------------------------+-------------------------------------------- Reporter: hsivank@… | Owner: ricci@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: wireshark wireshark-devel -------------------------------+-------------------------------------------- Comment(by sam.kuper@…): I just installed Wireshark using Macports and encountered the problem that clicking Capture > Interfaces... gives a popup with the error message, "There are no interfaces on which a capture can be done." Judging by http://anonsvn.wireshark.org/viewvc/trunk/packaging/macosx/ChmodBPF/README.m... , it seems that this problem is due to the ChmodBPF folder not having been placed in /Library/StartupItems/ directory by the MacPorts installation routine for Wireshark. Am I right in thinking that this bug report is designed to address this problem? If so, is it safe, in the meantime - i.e. until the patches have been applied to Macports and the bug marked "Resolved" - to obtain a copy of the ChmodBPF directory somewhere else and copy it to the /Library/StartupItems/ folder manually, or does this risk preventing Macports from being able to update Wireshark (including the ChmodBPF folder) safely in the future? -- Ticket URL: <https://trac.macports.org/ticket/26293#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts