X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=homebrew-alex.git;a=blobdiff_plain;f=Formula%2Fsendfile.rb;h=b5eb4e5598ad3d5953a0bb767d95b88d3436994e;hp=b5d613934ca88f999bf4b6722cd3e97a31633049;hb=d4ee92a3ede12175bd2e8a1030fe7a6db1270ba8;hpb=2f298d9ac0251cb6b1354617abe3b40bdae9639e diff --git a/Formula/sendfile.rb b/Formula/sendfile.rb index b5d6139..b5eb4e5 100644 --- a/Formula/sendfile.rb +++ b/Formula/sendfile.rb @@ -34,31 +34,21 @@ class Sendfile < Formula (var + 'spool/sendfile/OUTGOING').mkpath (var + 'spool/sendfile/LOG').chmod 00700 (var + 'spool/sendfile/OUTGOING').chmod 01777 - - plist_path.write startup_plist - plist_path.chmod 0644 end - def caveats; <<-EOCAVEATS -# Start/Stop sendfiled(8) Daemon - -Note: if you only want to send file using sendfile(1) or messages using -sendmsg(1), and don't want to receive any files or messages at all, you -don't have to enable the sendfiled(8) server daemon! + def caveats + <<-EOCAVEATS +If you only want to send files using sendfile(1) or messages using sendmsg(1), +and don't want to receive any files or messages at all, you don't have to +enable the sendfiled(8) server daemon! + EOCAVEATS + end -If this is your first install, automatically load on login with: - sudo cp #{plist_path} /Library/LaunchDaemons/ - sudo launchctl load -w /Library/LaunchDaemons/#{plist_path.basename} -If this is an upgrade and you already have the #{plist_path.basename} loaded: - sudo launchctl unload -w /Library/LaunchDaemons/#{plist_path.basename} - sudo cp #{plist_path} /Library/LaunchDaemons/ - sudo launchctl load -w /Library/LaunchDaemons/#{plist_path.basename} -EOCAVEATS - end + plist_options startup: true - def startup_plist - return <<-EOPLIST + def plist + <<-EOPLIST