Advertisement
nighthoodie

macports_install.sh

May 2nd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # download source, build and install macports
  4. # need to install xcode and uncomment appropriate os x version
  5.  
  6. # Install MacPorts!!
  7.  
  8. curl="/usr/bin/curl"
  9. tar="/usr/bin/tar"
  10. cd="/usr/bin/cd"
  11. rm="/bin/rm"
  12. sudo="/usr/bin/sudo"
  13. diskutil="/usr/sbin/diskutil"
  14.  
  15. #for Mac OS X 10.9 Mavericks
  16. # curl -Ok https://distfiles.macports.org/MacPorts/MacPorts-2.2.1.tar.bz2
  17.  
  18. # tar xf MacPorts-2.2.1.tar.bz2
  19.  
  20. # cd MacPorts-2.2.1
  21. #######
  22.  
  23.  
  24. # for Mac OS X 10.6 Snow Leopard
  25. curl -Ok https://distfiles.macports.org/MacPorts/MacPorts-2.1.1.tar.gz
  26.  
  27. tar xzvf MacPorts-2.1.1.tar.gz
  28.  
  29. cd MacPorts-2.1.1
  30. #######
  31.  
  32.  
  33. #######
  34. ./configure
  35. make
  36. sudo make install #not war!
  37. cd ..
  38. rm -rf Macports-*
  39. sudo /opt/local/bin/port -v selfupdate
  40. diskutil quiet repairPermissions /
  41. ######
  42. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement