class Davmail < Formula desc "POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway" homepage "https://davmail.sourceforge.io/" url "https://downloads.sourceforge.net/project/davmail/davmail/4.8.0/davmail-4.8.0-2479.zip" sha256 "5cd0dceadffa958c72be299ee2edc0ec945eaf2f66cbab3e93e20cd24408fbbf" bottle :unneeded def install libexec.install Dir["*"] bin.write_jar_script libexec/"davmail.jar", "davmail" end plist_options :manual => "davmail" def plist; <<-EOS.undent EnvironmentVariables PATH /usr/bin:/bin:/usr/sbin:/sbin:#{HOMEBREW_PREFIX}/bin KeepAlive Label #{plist_name} ProgramArguments #{opt_bin}/davmail StartInterval 300 RunAtLoad StandardErrorPath /dev/null StandardOutPath /dev/null EOS end end