diff options
Diffstat (limited to 'Library/Formula/ddclient.rb')
| -rw-r--r-- | Library/Formula/ddclient.rb | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/Library/Formula/ddclient.rb b/Library/Formula/ddclient.rb index 9d055eb39..066e72303 100644 --- a/Library/Formula/ddclient.rb +++ b/Library/Formula/ddclient.rb @@ -19,18 +19,20 @@ class Ddclient <Formula sbin.install "ddclient" # Install sample files - inreplace 'sample-ddclient-wrapper.sh' do |s| - s.gsub! "/etc/ddclient", (etc + 'ddclient') - end - inreplace 'sample-etc_cron.d_ddclient' do |s| - s.gsub! "/usr/sbin/ddclient", (sbin + 'ddclient') - end - inreplace 'sample-etc_ddclient.conf' do |s| - s.gsub! "/var/run/ddclient.pid", (var + 'run/ddclient/pid') - end - (share + 'doc/ddclient').install ['sample-ddclient-wrapper.sh',\ - 'sample-etc_cron.d_ddclient',\ - 'sample-etc_ddclient.conf'] + inreplace 'sample-ddclient-wrapper.sh', + "/etc/ddclient", (etc + 'ddclient') + + inreplace 'sample-etc_cron.d_ddclient', + "/usr/sbin/ddclient", (sbin + 'ddclient') + + inreplace 'sample-etc_ddclient.conf', + "/var/run/ddclient.pid", (var + 'run/ddclient/pid') + + (share + 'doc/ddclient').install %w( + sample-ddclient-wrapper.sh + sample-etc_cron.d_ddclient + sample-etc_ddclient.conf + ) # Create etc & var paths (etc + 'ddclient').mkpath @@ -65,29 +67,29 @@ EOS <!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>org.ddclient</string> - <key>OnDemand</key> - <true/> - <key>ProgramArguments</key> - <array> - <string>#{sbin}/ddclient</string> - <string>-file</string> - <string>#{etc}/ddclient/ddclient.conf</string> - </array> - <key>RunAtLoad</key> - <true/> - <key>StartCalendarInterval</key> - <dict> - <key>Minute</key> - <integer>0</integer> - </dict> - <key>WatchPaths</key> - <array> - <string>#{etc}/ddclient</string> - </array> - <key>WorkingDirectory</key> - <string>#{etc}/ddclient</string> + <key>Label</key> + <string>org.ddclient</string> + <key>OnDemand</key> + <true/> + <key>ProgramArguments</key> + <array> + <string>#{sbin}/ddclient</string> + <string>-file</string> + <string>#{etc}/ddclient/ddclient.conf</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>StartCalendarInterval</key> + <dict> + <key>Minute</key> + <integer>0</integer> + </dict> + <key>WatchPaths</key> + <array> + <string>#{etc}/ddclient</string> + </array> + <key>WorkingDirectory</key> + <string>#{etc}/ddclient</string> </dict> </plist> EOS |
