samba: added plist
Closes Homebrew/homebrew#31787. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
d18a5612ff
commit
df5e1a270b
1 changed files with 22 additions and 0 deletions
|
@ -29,6 +29,28 @@ class Samba < Formula
|
|||
(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__
|
||||
|
|
Loading…
Reference in a new issue