### Building Mac OS Installer using jhbuild
## Preparation
+
+# install jhbuild
Install jhbuild, which Creates working folder ~/gtk
-Need Kerberos installed in ~/gtk/inst - in the Krb5 src directory
+# install gtk-mac-bundler
+Either$ cd ~
+$ wget http://ftp.gnome.org/pub/gnome/sources/gtk-mac-bundler/0.6/gtk-mac-bundler-0.6.1.tar.bz2
+$ tar jxvf gtk-mac-bundler-0.6.1.tar.gz
+$ cd gtk-mac-bundler-0.6.1
+$ make install
+
+# bootstrap jhbuild
+copy file moonshot/mac-client-installer/.jhbuildrc-custom to $HOME
+then
+$ jhbuild bootstrap --ignore-system
+
+# Kerberos
+Need MIT Kerberos 1.9.2 installed in ~/gtk/inst to build against -
+in the Krb5 src directory
$ export CFLAGS="-arch i386"
-$ ./configure --prefix=/Users/pete/gtk/inst/
+$ ./configure --prefix=$HOME/gtk/inst/
$ make
$ make install
+and installed in moonshot/mac-client-installer/ to package up
+$ ./configure
+$ make
+$ make install DESTDIR=$HOME/moonshot/mac-client-installer/krb
+
## Building the moonshot SW
-copy file moonshot/mac-client-installer/.jhbuildrc-custom to $HOME
-then
-$ jhbuild bootstrap
+$ jhbuild build meta-moonshot-mac-client
+Will cause the following errors
+
+*** Error during phase build of perl-xml-parser: ########## Error running make LD_RUN_PATH= *** [6/37]
+choose [4] Start shell
+$ git apply ~/moonshot/mac-client-installer/0001-Remove-arch-ppc-flags.patch
+$ make
+$ exit
+choose [2] Ignore error and continue
+
+make: *** No targets specified and no makefile found. Stop.
+*** Error during phase build of cyrus-sasl: ########## Error running make *** [39/41]
+choose [4] Start shell
+
+$ ./configure --prefix=/usr/local --with-gss_impl=mit
+$ exit
+choose [1] Rerun phase build
+*** Error during phase build of cyrus-sasl: ########## Error running make *** [1/1]
+choose [1] Rerun phase build
+
+*** Error during phase configure of moonshot: ########## Error running ./autogen.sh --prefix /Users/pete/gtk/inst --libdir '/Users/pete/gtk/inst/lib' --enable-acceptor=no --with-krb5=$PREFIX/usr/local --enable-acceptor=no *** [40/41]
+choose [4] Start shell
+$ git apply ~/moonshot/mac-client-installer/0001-Move-moonshot-files-up.patch
+$ cp -R moonshot/libeap .
+$ ./autogen.sh --prefix /Users/pete/gtk/inst --libdir '/Users/pete/gtk/inst/lib' --enable-acceptor=no
+$ 4
+
+$ exit
+choose [1] Rerun phase build
+*** Error during phase checkout of krb5: could not unpack tarball (expected krb5-1.9.2-signed.tar dir) *** [1/1]
+choose [4] Start shell
+unpack file ~/gtk/source/krb5-1.9.2.tar.gz to create directory krb5-1.9.2
+$ exit
+choose [2] Ignore error and continue to configure
+### Old instructions
###Introduction