1 cask :v1 => 'wireshark' do
3 sha256 '39a94d55dfa3b27ea9a672df12d98509150bf022da2e581817374274215a0f9a'
5 url "https://www.wireshark.org/download/osx/Wireshark%20#{version}%20Intel%2064.dmg"
6 homepage 'http://www.wireshark.org'
7 license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
9 pkg "Wireshark #{version} Intel 64.pkg"
11 if Process.euid == 0 then
14 You executed 'brew cask' as the superuser.
16 You must manually add users to group 'access_bpf' in order to use Wireshark
19 system '/usr/bin/sudo', '-E', '--',
20 '/usr/sbin/dseditgroup', '-o', 'edit', '-a', Etc.getpwuid(Process.euid).name, '-t', 'user', '--', 'access_bpf'
24 uninstall :script => {
25 :executable => '/usr/sbin/dseditgroup',
26 :args => ['-o', 'delete', 'access_bpf'],
28 :pkgutil => 'org.wireshark.*',
30 '/usr/local/bin/capinfos',
31 '/usr/local/bin/dftest',
32 '/usr/local/bin/dumpcap',
33 '/usr/local/bin/editcap',
34 '/usr/local/bin/mergecap',
35 '/usr/local/bin/randpkt',
36 '/usr/local/bin/rawshark',
37 '/usr/local/bin/text2pcap',
38 '/usr/local/bin/tshark',
39 '/usr/local/bin/wireshark',
42 depends_on :x11 => true