-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
/
wireshark.rb
43 lines (37 loc) · 1.64 KB
/
wireshark.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cask 'wireshark' do
version '2.6.3'
sha256 '5f919d58ba1286631f2a878d7ec5acf430680f57d3d630d76e096077b4494418'
url "https://www.wireshark.org/download/osx/Wireshark%20#{version}%20Intel%2064.dmg"
appcast 'https://www.wireshark.org/download/osx/'
name 'Wireshark'
homepage 'https://www.wireshark.org/'
conflicts_with cask: 'wireshark-chmodbpf'
depends_on macos: '>= :mountain_lion'
pkg "Wireshark #{version} Intel 64.pkg"
uninstall_preflight do
set_ownership '/Library/Application Support/Wireshark'
end
uninstall pkgutil: 'org.wireshark.*',
launchctl: 'org.wireshark.ChmodBPF',
delete: [
'/private/etc/manpaths.d/Wireshark',
'/private/etc/paths.d/Wireshark',
'/usr/local/bin/capinfos',
'/usr/local/bin/dftest',
'/usr/local/bin/dumpcap',
'/usr/local/bin/editcap',
'/usr/local/bin/mergecap',
'/usr/local/bin/randpkt',
'/usr/local/bin/rawshark',
'/usr/local/bin/text2pcap',
'/usr/local/bin/tshark',
'/usr/local/bin/wireshark',
],
script: {
executable: '/usr/sbin/dseditgroup',
args: ['-o', 'delete', 'access_bpf'],
must_succeed: false,
sudo: true,
}
zap trash: '~/Library/Saved Application State/org.wireshark.Wireshark.savedState'
end