homebrew-cask/Casks/logdna-agent.rb

25 lines
976 B
Ruby
Raw Normal View History

2016-07-03 08:05:41 +08:00
cask 'logdna-agent' do
2017-04-08 19:56:18 +08:00
version '1.4.1'
sha256 '07bdde9b4908ab957ad31a9f7b7966d77c97aa849908c2941dc7abaed0df76cf'
2016-07-03 08:05:41 +08:00
# github.com/logdna/logdna-agent was verified as official when first introduced to the cask
2016-12-11 17:42:03 +08:00
url "https://github.com/logdna/logdna-agent/releases/download/#{version}/logdna-agent-#{version}.pkg"
2016-07-03 08:05:41 +08:00
appcast 'https://github.com/logdna/logdna-agent/releases.atom',
2017-04-08 19:56:18 +08:00
checkpoint: 'd2fdf2e635bfe47eb692580b7d1bde205395a01738c645411aa8dfd9264f7e11'
2016-07-03 08:05:41 +08:00
name 'LogDNA Agent'
2016-08-25 18:36:08 +08:00
homepage 'https://logdna.com/'
2016-07-03 08:05:41 +08:00
2016-12-11 17:42:03 +08:00
pkg "logdna-agent-#{version}.pkg"
2016-07-03 08:05:41 +08:00
uninstall pkgutil: 'com.logdna.logdna-agent',
launchctl: 'com.logdna.logdna-agentd'
caveats <<-EOS.undent
When you first start logdna-agent, you must set your LogDNA API key with the command:
sudo logdna-agent -k <api-key>
2016-07-03 08:05:41 +08:00
To always run logdna-agent in the background, use the command:
sudo launchctl load -w /Library/LaunchDaemons/com.logdna.logdna-agent.plist
2016-07-03 08:05:41 +08:00
EOS
end