tor-rpm-creation.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Instructions for building various rpms on various architectures
  2. This will build various architecture and cpu tuned versions of tor
  3. bundled in a convenient rpm. Each rpm will require glibc on the target
  4. system (which any rpm based linux distro should have already installed
  5. by default). These are the exact same steps used to build the
  6. official rpms of tor
  7. If you wish to further tune tor rpms beyond this list, see the GCC doc
  8. page for further options:
  9. http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/i386-and-x86_002d64-Options.html
  10. i386 with zero tuning (most compatible, should run on a true i386 cpu):
  11. 1) download tor source tarball
  12. 2) at shell prompt, export CFLAGS="-march=i386 -mtune=i386"
  13. 3) in the extracted tor source dir, configure as follows:
  14. ./configure --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu
  15. 4) Edit tor.spec.in, find the following line:
  16. %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
  17. add to it:
  18. --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu
  19. 5) make dist-rpm
  20. 6) Install from the .i386.rpm file.
  21. i686 with i686 tuning (best for pentium pro, pentium2, pentium3, and
  22. pentium4-class CPUS including the pentium4):
  23. 1) download tor source tarball
  24. 2) at shell prompt, export CFLAGS="-march=i686 -mtune=i686"
  25. 3) in the extracted tor source dir, configure as follows:
  26. ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
  27. 4) Edit tor.spec.in, find the following line:
  28. %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
  29. add to it:
  30. --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
  31. 5) make dist-rpm
  32. 6) Install from the .i686.rpm file.
  33. athlon64 with athlon64 tuning (best for Athlon64 and Opteron):
  34. 1) download tor source tarball
  35. 2) at shell prompt, export CFLAGS="-march=athlon64 -mtune=athlon64"
  36. 3) in the extracted tor source dir, configure as follows:
  37. ./configure --build=athlon64-pc-linux-gnu --host=athlon64-pc-linux-gnu --target=athlon64-pc-linux-gnu
  38. 4) Edit tor.spec.in, find the following line:
  39. %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
  40. add to it:
  41. --build=athlon64-pc-linux-gnu --host=athlon64-pc-linux-gnu --target=athlon64-pc-linux-gnu
  42. 5) make dist-rpm
  43. 6) Install from the .athlon64.rpm file.