[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-bundle/master] Add gitian-pluggable-transports.yml for mac.



commit b59cfb3a28cb4e0874f784390d1e6d45b0636a6e
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Mon Nov 11 08:57:04 2013 +0000

    Add gitian-pluggable-transports.yml for mac.
    
    Empty except for copied openssl build from gitian-tor.yml.
---
 .../mac/gitian-pluggable-transports.yml            |   60 ++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gitian/descriptors/mac/gitian-pluggable-transports.yml b/gitian/descriptors/mac/gitian-pluggable-transports.yml
new file mode 100644
index 0000000..1a6b933
--- /dev/null
+++ b/gitian/descriptors/mac/gitian-pluggable-transports.yml
@@ -0,0 +1,60 @@
+---
+name: "pluggable-transports-mac"
+suites:
+- "precise"
+architectures:
+- "i386"
+packages: 
+- "git-core"
+- "zip"
+- "faketime"
+- "libtool"
+#- "libssl0.9.8"
+reference_datetime: "2000-01-01 00:00:00"
+remotes:
+- "url": "https://github.com/nmathewson/openssl.git";
+  "dir": "openssl"
+files:
+- "apple-uni-sdk-10.6_20110407-0.flosoft1_i386.deb"
+- "multiarch-darwin11-cctools127.2-gcc42-5666.3-llvmgcc42-2336.1-Linux-120724.tar.xz"
+- "dzip.sh"
+#- "apple-x86-gcc_4.2.1~5646.1flosoft2_i386.deb"
+#- "apple-x86-odcctools_758.159-0flosoft11_i386.deb"
+script: |
+  INSTDIR="$HOME/install"
+  PTDIR="$INSTDIR/TorBrowserBundle.app/Tor/PluggableTransports"
+  export LIBRARY_PATH="$INSTDIR/lib"
+  export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
+  export FAKETIME=$REFERENCE_DATETIME
+  export TZ=UTC
+  export LC_ALL=C
+  umask 0022
+  #
+  #export CFLAGS="-isysroot /usr/lib/apple/SDKs/MacOSX10.6.sdk/"
+  #export CXXFLAGS=$CFLAGS
+  #export LDFLAGS=$CFLAGS
+  export PATH="$PATH:/usr/apple-osx/bin/"
+  export CFLAGS="-I/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/include/ -I/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ -I.  -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/ -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/system/ -mmacosx-version-min=10.5"
+  export LDFLAGS="-L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/ -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/system/ -mmacosx-version-min=10.5"
+  #
+  mkdir -p $PTDIR/
+  mkdir -p $OUTDIR/
+  #
+  sudo dpkg -i *.deb
+  cd /usr
+  sudo tar -Jxvf /home/ubuntu/build/multiarch-darwin*tar.xz
+  cd ~/build
+  # For OpenSSL
+  sudo ln -s /usr/apple-osx/bin/apple-osx-gcc /usr/apple-osx/bin/i686-apple-darwin11-cc
+  #
+  cd openssl
+  find -type f | xargs touch --date="$REFERENCE_DATETIME"
+  CC=cc ./Configure --cross-compile-prefix=i686-apple-darwin11- $CFLAGS darwin-i386-cc --prefix=$INSTDIR/openssl
+  make # SHARED_LDFLAGS="-shared -dynamiclib -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/"
+  make install
+  #cp $INSTDIR/openssl/lib/*.dylib $INSTDIR/TorBrowserBundle.app/Tor/
+  cd ..
+  #
+  cd $INSTDIR
+  ~/build/dzip.sh pluggable-transports-mac$GBUILD_BITS-gbuilt.zip TorBrowserBundle.app
+  cp pluggable-transports-mac$GBUILD_BITS-gbuilt.zip $OUTDIR/



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits