diff --git a/bootstrap_panther b/bootstrap_panther new file mode 100644 index 00000000000..98bcb05817f --- /dev/null +++ b/bootstrap_panther @@ -0,0 +1,56 @@ +#!/bin/sh +set -eu + +print() { + printf "\033[1;34m==>\033[30m $1\e[0m\n" +} + +TAR_VERSION="1.15" +RUBY_VERSION="1.8.5-p115" + +if [ "$(id -u)" -ne "0" ]; then + print "You must be root to run this script." + exit 1 +fi + +print "Installing tar..." +cd /tmp +curl -O ftp://ftp.gnu.org/gnu/tar/tar-"$TAR_VERSION".tar.gz +tar xzf tar-"$TAR_VERSION".tar.gz +cd tar-"$TAR_VERSION" +printf "diff -Naur tar-1.15/rmt/rmt.c tar-1.15-patched/rmt/rmt.c +--- tar-1.15/rmt/rmt.c Mon Sep 6 09:49:41 2004 ++++ tar-1.15-patched/rmt/rmt.c Tue May 12 23:48:38 2020 +@@ -32,6 +32,7 @@ + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ + + #include \"system.h\" ++#include + #include + #include + #include +diff -Naur tar-1.15/src/tar.c tar-1.15-patched/src/tar.c +--- tar-1.15/src/tar.c Sat Dec 18 15:01:07 2004 ++++ tar-1.15-patched/src/tar.c Tue May 12 23:49:06 2020 +@@ -37,6 +37,7 @@ + #include \"common.h\" + + #include ++#include + #include + #include + #include +" | patch -Np1 --ignore-whitespace -b +./configure --prefix=/usr/local +make +make install + +cd /tmp +print "Installing ruby..." +curl -O http://cache.ruby-lang.org/pub/ruby/ruby-"$RUBY_VERSION".tar.gz +tar xzf ruby-"$RUBY_VERSION".tar.gz +cd ruby-"$RUBY_VERSION" +./configure --prefix=/usr +make +make DESTDIR=/System/Library/Frameworks/Ruby.framework/Versions/Current install +ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/local/bin/ruby diff --git a/install b/install index 90fda1099e6..d9c00ff890d 100644 --- a/install +++ b/install @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby # This script installs to /usr/local only. To install elsewhere you can just # untar https://github.com/mistydemeo/tigerbrew/tarball/master anywhere you like or # change the value of HOMEBREW_PREFIX. @@ -207,7 +207,7 @@ Dir.chdir HOMEBREW_PREFIX do else # -m to stop tar erroring out if it can't modify the mtime for root owned directories curl_flags = "fsSL" - system "/bin/bash -c '#{curl} -#{curl_flags} https://github.com/mistydemeo/tigerbrew/tarball/master | /usr/bin/tar xz -m --strip 1'" + system "/bin/bash -c '#{curl} -#{curl_flags} https://github.com/mistydemeo/tigerbrew/tarball/master | /usr/bin/env tar xz -m --strip 1'" end end