diff options
| author | Brett Porter | 2009-08-31 23:50:21 +1000 |
|---|---|---|
| committer | Max Howell | 2009-08-31 18:09:13 +0100 |
| commit | f36908f62f176545354c0a78d7bb8a8caca038ac (patch) | |
| tree | 51c3df169b064d31e568fc914b8f5edce10f9a60 /Library/Formula/dovecot.rb | |
| parent | ec8dc376d480348ad4346906534ad3ba2a521a09 (diff) | |
| download | homebrew-f36908f62f176545354c0a78d7bb8a8caca038ac.tar.bz2 | |
Dovecot formula
Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems,
written with security primarily in mind. Dovecot is an excellent choice for
both small and large installations. It's fast, simple to set up, requires no
special administration and it uses very little memory.
Diffstat (limited to 'Library/Formula/dovecot.rb')
| -rw-r--r-- | Library/Formula/dovecot.rb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Library/Formula/dovecot.rb b/Library/Formula/dovecot.rb new file mode 100644 index 000000000..d97c02309 --- /dev/null +++ b/Library/Formula/dovecot.rb @@ -0,0 +1,49 @@ +require 'brewkit' + +class Dovecot <Formula + @url='http://www.dovecot.org/releases/1.2/dovecot-1.2.4.tar.gz' + @homepage='http://dovecot.org/' + @md5='3e5717d13e3d6b32d3f4b809df397dbf' + + def install + system "./configure", "--prefix=#{prefix}", + "--disable-debug", + "--disable-dependency-tracking", + "--sysconfdir=#{prefix}/etc", + "--localstatedir=#{prefix}/var", + "--with-ssl=openssl", + "--with-ioloop=kqueue" + system "make install" + + # TODO: automate some of the caveats? + end + + def caveats + puts <<-EOS +============================================================== +For Dovecot to work, you will need to do the following: + +1) create configuration in #{prefix}/etc + +2) If required by the configuration above, create a dovecot user and group + +3) possibly create a launchd item in /Library/LaunchDaemons/org.dovecot.plist, like so: +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" + "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>Label</key> + <string>org.dovecot</string> + <key>ProgramArguments</key> + <array> + <string>#{prefix}/sbin/dovecot</string> + </array> + <key>RunAtLoad</key> + <true/> +</dict> +</plist> +============================================================== + EOS + end +end |
