Skip to content

Commit

Permalink
samba: added plist
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#31787.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
woodruffw authored and jacknagel committed Aug 24, 2014
1 parent d18a561 commit df5e1a2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Formula/samba.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ def install
(var/'locks').mkpath
end
end

plist_options :manual => 'smbd'

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>#{sbin}/smbd</string>
<string>-s</string>
<string>#{etc}/smb.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
EOS
end
end

__END__
Expand Down

0 comments on commit df5e1a2

Please sign in to comment.