class Uftp < Formula desc "secure, reliable, efficient multicast file transfer program" homepage "https://uftp-multicast.sourceforge.io/" url "https://downloads.sourceforge.net/project/uftp-multicast/source-tar/uftp-4.9.3.tar.gz" sha256 "9e9215af0315257c6cc4f40fbc6161057e861be1fff10a38a5564f699e99c78f" bottle do cellar :any sha256 "2ed1f0e406d7bdaf1049423c6de48034316824b130d46e1fcfab96fb1fe6793f" => :sierra sha256 "c49b3cf58a37d51d6a7632a77b420aa7e7a062ced9f8db69a02eb24f7d815a16" => :el_capitan sha256 "0552cd9d29e3be5764800da063a14179117bb4f1aecade1ae2ec36fd52a5d7fe" => :yosemite end depends_on "openssl" def install system "make", "OPENSSL=#{Formula["openssl"].opt_prefix}", "DESTDIR=#{prefix}", "install" # the makefile installs into DESTDIR/usr/..., move everything up one and remove usr # the project maintainer was contacted via sourceforge on 12-Feb, he responded WONTFIX on 13-Feb prefix.install Dir["#{prefix}/usr/*"] (prefix/"usr").unlink end plist_options :manual => "uftpd" def plist; <<-EOS.undent KeepAlive Label #{plist_name} ProgramArguments #{opt_sbin}/uftpd -d RunAtLoad WorkingDirectory #{var} EOS end test do system "#{bin}/uftp_keymgt" end end