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.6/davmail-4.8.6-2600.zip" version "4.8.6" sha256 "b7259eb174f1969aae4e18c33c8880b192fa9ac2d49d22fb8d9e6243569764f2" bottle :unneeded def install libexec.install Dir["*"] bin.write_jar_script libexec/"davmail.jar", "davmail", "-Djava.awt.headless=true" end plist_options :manual => "davmail" def plist; <<~EOS 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