Lines 804-812
Link Here
|
804 |
GNU_URL="http://ftp.gnu.org/gnu" |
807 |
GNU_URL="http://ftp.gnu.org/gnu" |
805 |
GCC_APPLE_URL="http://www.opensource.apple.com/darwinsource/tarballs/other" |
808 |
GCC_APPLE_URL="http://www.opensource.apple.com/darwinsource/tarballs/other" |
806 |
GENTOO_URL="http://gentoo.osuosl.org" |
809 |
GENTOO_URL="http://gentoo.osuosl.org" |
|
|
810 |
MACOSSANDBOX_BINARY="/usr/bin/sandbox-exec" |
811 |
MACOSSANDBOX_PROFILE='(version 1) |
807 |
|
812 |
|
808 |
export CFLAGS CXXFLAGS MAKE |
813 |
(allow default) |
|
|
814 |
|
815 |
(deny file-write*) |
809 |
|
816 |
|
|
|
817 |
(allow file-read* file-write* |
818 |
(literal |
819 |
#"@@WRITEABLE_PREFIX@@" |
820 |
) |
821 |
|
822 |
(regex |
823 |
#"^@@WRITEABLE_PREFIX@@/" |
824 |
#"^(/private)?/var/tmp" |
825 |
#"^(/private)?/tmp" |
826 |
) |
827 |
) |
828 |
|
829 |
(allow file-read-data file-write-data |
830 |
(regex |
831 |
#"^/dev/null$" |
832 |
#"^(/private)?/var/run/syslog$" |
833 |
) |
834 |
)' |
835 |
|
836 |
if [ -x "$MACOSSANDBOX_BINARY" -a -z "$MACOSSANDBOX" ] ; then |
837 |
einfo "Sandboxing bootstrap to ${ROOT} using Mac OS X ${MACOSSANDBOX_BINARY}" |
838 |
MACOSSANDBOX=1 \ |
839 |
exec ${MACOSSANDBOX_BINARY} -p "$(echo "${MACOSSANDBOX_PROFILE}" | \ |
840 |
sed -e "s,@@WRITEABLE_PREFIX@@,${ROOT},g")" \ |
841 |
$0 $@ |
842 |
fi |
843 |
|
844 |
export CFLAGS CXXFLAGS MAKE |
810 |
|
845 |
|
811 |
einfo "Bootstrapping Gentoo prefixed portage installation using" |
846 |
einfo "Bootstrapping Gentoo prefixed portage installation using" |
812 |
einfo "host: ${CHOST}" |
847 |
einfo "host: ${CHOST}" |