I found the available root / adb guides for Mac users a little lacking. I zipped up a folder with all the necessary items you will need to root and unroot your Verizon CDMA Galaxy Nexus with your Mac! The zipped folder also contains two scripts I wrote and tested that will root, unlock the bootloader then install conventional or touch clockworkmod recovery. The other script will restore the Gnex to complete stock 4.0.2 or 4.0.4 without root and relock the bootloader.
Warning: Just like unlocking the bootloader with any other method, this will delete all contents on your (virtual) SD Card!!!
Verizon Devices Only!
Back up your SD Card before using these scripts!
Download - toro_root_4.0.2.zip
Download - toro_unroot_4.0.2.zip
Download - toro_root_4.0.4.zip
Download - toro_unroot_4.0.4.zip
Download - toro_root_4.1.1.zip
Download - toro_unroot_4.1.1.zip
Double click the GNex icon
To unlock the bootloader:
Turn on USB Debugging on the GNex (Settings>Developer Options>USB Debugging)
Connect to the Mac with USB cable
Open terminal (Applications>Utilities>Terminal)
cd to the new folder you have downloaded and unzipped
Wait for the device to boot into the bootloader (around five seconds)Code:./adb reboot bootloader
You will be prompted on the phone to select yes or no, after unlocking, press the power button to reboot.Code:./fastboot oem unlock
Your bootloader is unlocked, let the device boot, turn on USB Debugging again, connect USB cable
Install clockwork:Code:./adb push su.zip /sdcard/ ./adb reboot bootloader
Touch clockwork:Code:./fastboot flash recovery recovery-clockwork-220.127.116.11-toro.img
Use the volume button to highlight recovery mode, power to select it.Code:./fastboot flash recovery recovery-clockwork-touch-18.104.22.168-toro.img
Once inside clockwork, choose "install .zip from sd card" then "choose .zip"
Then select the su.zip we pushed to the sd card earlier
When it finishes, select go back, then reboot.
To unroot / lock the bootloader:
(These instructions include the file names for the 4.0.2 files, substitute the 4.0.4 file names if that's what you are flashing)
Turn on USB Debugging
Open Terminal, enter these commands, pressing enter after each line, waiting for it to complete before moving on to the next command
The device will now be stock but the bootloader is still unlocked.Code:./adb reboot bootloader ./fastboot flash bootloader bootloader-toro-primekk15.img ./fastboot reboot-bootloader ./fastboot flash radio radio-toro-i515.ek02.img ./fastboot reboot-bootloader ./fastboot flash radio-cdma radio-cdma-toro-i515.ek05.img ./fastboot reboot-bootloader ./fastboot -w update image-mysid-icl53f.zip
Let it boot up, turn USB Debugging on again.
Open Terminal if you closed it
Enter these commands, wait for the device to boot into the bootloader before entering the second command (5-7 seconds)
Done deal, stock, unrooted, locked device.Code:./adb reboot bootloader ./fastboot oem lock
These scripts have not been tested on any Linux distro's yet, may or may not work.