pcap_dnsproxy: use plist file in src instead.
Closes #7016. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
376c7350c1
commit
bf49f7edad
1 changed files with 2 additions and 23 deletions
|
@ -21,31 +21,10 @@ class PcapDnsproxy < Formula
|
||||||
xcodebuild "-project", "./Source/Pcap_DNSProxy.xcodeproj", "-target", "Pcap_DNSProxy", "-configuration", "Release", "SYMROOT=build"
|
xcodebuild "-project", "./Source/Pcap_DNSProxy.xcodeproj", "-target", "Pcap_DNSProxy", "-configuration", "Release", "SYMROOT=build"
|
||||||
bin.install "Source/build/Release/Pcap_DNSProxy"
|
bin.install "Source/build/Release/Pcap_DNSProxy"
|
||||||
(etc/"pcap_DNSproxy").install Dir["Source/ExampleConfig/*.{ini,txt}"]
|
(etc/"pcap_DNSproxy").install Dir["Source/ExampleConfig/*.{ini,txt}"]
|
||||||
|
prefix.install "Source/ExampleConfig/pcap_dnsproxy.service.plist"
|
||||||
end
|
end
|
||||||
|
|
||||||
plist_options :startup => true, :manual => "sudo #{HOMEBREW_PREFIX}/opt/pcap_dnsproxy/bin/Pcap_DNSProxy -c #{HOMEBREW_PREFIX}/etc/pcap_dnsproxy/"
|
plist_options :startup => true, :manual => "sudo #{HOMEBREW_PREFIX}/opt/pcap_dnsproxy/bin/Pcap_DNSProxy -c #{HOMEBREW_PREFIX}/etc/pcap_DNSproxy/"
|
||||||
|
|
||||||
def plist; <<-EOS.undent
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>Label</key>
|
|
||||||
<string>#{plist_name}</string>
|
|
||||||
<key>ProgramArguments</key>
|
|
||||||
<array>
|
|
||||||
<string>#{opt_bin}/Pcap_DNSProxy</string>
|
|
||||||
<string>-c</string>
|
|
||||||
<string>#{etc}/pcap_dnsproxy/</string>
|
|
||||||
</array>
|
|
||||||
<key>RunAtLoad</key>
|
|
||||||
<true/>
|
|
||||||
<key>KeepAlive</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
EOS
|
|
||||||
end
|
|
||||||
|
|
||||||
test do
|
test do
|
||||||
(testpath/"pcap_DNSproxy").mkpath
|
(testpath/"pcap_DNSproxy").mkpath
|
||||||
|
|
Loading…
Reference in a new issue