README 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Copyright 2007-2008 Andrew Lewman
  2. Copyright 2009-2010 The Tor Project
  3. ----------------
  4. General Comments
  5. ----------------
  6. These are some hacks for making polipo work and install a package native
  7. to OSX or Windows.
  8. They need some work before they can be committed upstream:
  9. - Merge the three makefiles into one with specific builds such as "make
  10. dist-osx" or "make dist-win32"
  11. - Configure the options for tor in polipo config, just leave them
  12. commented out for easy activation.
  13. - Work out better polipo config options for Tor.
  14. As always, I'm happy to accept patches.
  15. --------------------------
  16. Pre-requisites for Windows
  17. --------------------------
  18. Polipo for Win32 requires the mingw gnu regex library and dlls at
  19. http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=73286&release_id=140957
  20. You'll need to download the -bin and -dev tarballs. And extract them
  21. into your MinGW directory.
  22. Instructions for building polipo under mingw32 for Windows:
  23. 1) Copy Makefile.mingw over Makefile.
  24. 2) Run 'make'.
  25. You should have a polipo.exe in the current directory.
  26. -------------------------------------------
  27. Creating an installation package in Windows
  28. -------------------------------------------
  29. If you want to build an installer using the Nullsoft Installer, install
  30. the NSI Compiler. In Windows Explorer, navigate to the directory in
  31. which you placed polipo-mingw.nsi. Right click on polipo-mingw.nsi and
  32. choose Compile NSIS Script. You'll then create a polipo installer.
  33. The Polipo NSI installer assumes libgnurx-0.dll is in the same directory as polipo.exe.
  34. You'll need to copy libgnurx-0.dll into "./" in order to make the
  35. installation package.
  36. ---------------------------------------------
  37. OSX Universal Binary and Installation package
  38. ---------------------------------------------
  39. You'll need the contrib/polipo directory from Tor's source distribution.
  40. 1) Copy Makefile.osx over Makefile.
  41. 2) Run 'make'.
  42. 3) Copy the contents of contrib/polipo into a directory named "contrib".
  43. 4) Run 'chmod +x ./contrib/package.sh'
  44. 5) Run './contrib/package.sh'
  45. 6) You should have a Polipo-version.dmg ready for installation.