pkg:setup ENV.append "CPPFLAGS", "-D__APPLE_SANDBOX_NAMED_EXTERNAL__" inreplace "sandbox-darwin.c", "@PREFIX@/share/openssh", etc/"ssh" args = %W[--prefix=#{prefix} --sysconfdir=#{etc}/ssh --with-ldns --with-libedit --with-kerberos5 --with-pam --with-ssl-dir=#{Formula["openssl"].opt_prefix} ] pkg:configure *args make ENV.deparallelize make DESTDIR=${PKG_DEST} install bin.install_symlink bin/"ssh" => "slogin" buildpath.install resource("com.openssh.sshd.sb") (etc/"ssh").install "com.openssh.sshd.sb" => "org.openssh.sshd.sb"