| 1 | Building the Vidalia/Tor/Privoxy OS X Bundle |
|---|
| 2 | |
|---|
| 3 | Libevent |
|---|
| 4 | 1. Download and extract the latest libevent source from |
|---|
| 5 | http://www.monkey.org/~provos/libevent/ |
|---|
| 6 | |
|---|
| 7 | 2. Configure libevent with the following: |
|---|
| 8 | ./configure --enable-static --disable-shared |
|---|
| 9 | |
|---|
| 10 | 3. Build and install libevent as follows: |
|---|
| 11 | make && make install |
|---|
| 12 | |
|---|
| 13 | You will need to be root to `make install` |
|---|
| 14 | |
|---|
| 15 | NOTE: If you have previously installed a Libevent that was not configured with |
|---|
| 16 | the options above, you must remove those before building Tor, otherwise Tor |
|---|
| 17 | will link to the wrong Libevent. |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | Qt |
|---|
| 21 | 4. Download and extract the open source version of Qt 4.1 or higher from |
|---|
| 22 | Trolltech at the following address: |
|---|
| 23 | http://www.trolltech.com/developer/downloads/qt/mac |
|---|
| 24 | |
|---|
| 25 | 5. Configure Qt with the following: |
|---|
| 26 | ./configure -static -release |
|---|
| 27 | |
|---|
| 28 | 6. Build and install Qt as follows: |
|---|
| 29 | make && make install |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | Privoxy |
|---|
| 33 | 7. Download the OS X Privoxy package from |
|---|
| 34 | http://prdownloads.sourceforge.net/ijbswa/privoxyosx_setup_3.0.3.zip?download |
|---|
| 35 | |
|---|
| 36 | Note the location in which you save this .zip file, because you will need |
|---|
| 37 | to specify it in Step 8. |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | Tor |
|---|
| 41 | 8. Download and extract the latest Tor source from |
|---|
| 42 | https://www.torproject.org/download |
|---|
| 43 | |
|---|
| 44 | Note the location in which you extract Tor's source, because you will need |
|---|
| 45 | to specify it in Step 8. |
|---|
| 46 | |
|---|
| 47 | 9. Configure Tor with the following: |
|---|
| 48 | ./configure --prefix=/Library/Tor --bindir=/Library/Tor --sysconfdir=/Library |
|---|
| 49 | |
|---|
| 50 | Vidalia |
|---|
| 51 | 10. Configure Vidalia with the following: |
|---|
| 52 | cmake -DOSX_FAT_BINARY=1 . |
|---|
| 53 | |
|---|
| 54 | The Vidalia binary on OS X links to Qt statically, so you will need to have |
|---|
| 55 | your Qt installation configured appropriately. |
|---|
| 56 | |
|---|
| 57 | 11. Run `make` to build Vidalia. |
|---|
| 58 | |
|---|
| 59 | 12. Download the latest Torbutton and LICENSE file from https://torbutton.torproject.org/dev/. |
|---|
| 60 | Remember where you put this file. |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | Finish |
|---|
| 64 | 12. From Vidalia's pkg/ directory in Vidalia's source, run the following: |
|---|
| 65 | ./package.sh osx-bundle <path-to-tor> <privoxy-package.zip> |
|---|
| 66 | |
|---|
| 67 | Example: |
|---|
| 68 | ./package.sh osx-bundle ~/tor-0.2.0.11-alpha ~/privoxyosx_setup_3.0.3.zip |
|---|
| 69 | |
|---|
| 70 | The script that builds the .mpkg (pkg/osx/bundle/buildmpkg.sh) gets Tor's |
|---|
| 71 | version number from the directory name, so it should be named appropriately, |
|---|
| 72 | as in the example above. |
|---|
| 73 | |
|---|
| 74 | The resulting .dmg containg the .mpkg and necessary licenses will be placed in |
|---|
| 75 | the 'pkg' directory under Vidalia's source. |
|---|
| 76 | |
|---|
| 77 | NOTE: Steps 1-6 only need to be done once initially, unless you need to change the |
|---|
| 78 | packaged version of Libevent or Qt. Step 7 also only needs to be done once, |
|---|
| 79 | unless Privoxy ever gets updated. Steps 8-9 need to be repeated when the |
|---|
| 80 | bundled version of Tor changes. Steps 10-11 need to be repeated when the |
|---|
| 81 | bundled version of Vidalia changes. |
|---|
| 82 | |
|---|