summaryrefslogtreecommitdiff
path: root/homebrew/openssh/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/openssh/.make.sh-auto')
-rw-r--r--homebrew/openssh/.make.sh-auto11
1 files changed, 11 insertions, 0 deletions
diff --git a/homebrew/openssh/.make.sh-auto b/homebrew/openssh/.make.sh-auto
new file mode 100644
index 000000000..d20bd721b
--- /dev/null
+++ b/homebrew/openssh/.make.sh-auto
@@ -0,0 +1,11 @@
+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"