homebrew-cask/Casks/ftdi-vcp-driver.rb

44 lines
1.4 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'ftdi-vcp-driver' do
2015-09-21 17:36:47 +08:00
if MacOS.release <= :mountain_lion
version '2.2.18'
sha256 '248f582527175ab07334f6a1255c8be2da4dfc36da49e26d39a2f61f5b7ba2e7'
pkg 'FTDIUSBSerialDriver_10_4_10_5_10_6_10_7.mpkg'
else
version '2.3'
sha256 '08e7fab56d20832ea609bfb2758130279ba49722084298a952796a009b82442d'
pkg 'FTDIUSBSerial.pkg'
end
2015-01-08 22:42:48 +08:00
url "http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v#{version.gsub('.', '_')}.dmg"
2015-01-08 22:42:48 +08:00
name 'FTDI VCP Driver'
homepage 'http://www.ftdichip.com/Drivers/VCP.htm'
license :gratis
2015-01-30 11:33:07 +08:00
uninstall :pkgutil => 'com.FTDI.ftdiusbserialdriverinstaller.*',
:kext => 'com.FTDI.driver.FTDIUSBSerialDriver',
:delete => '/Library/Extensions/FTDIUSBSerialDriver.kext'
caveats do
reboot
<<-EOC.undent
If you don't want to reboot, you can load the driver using the following
command:
sudo /sbin/kextload -b com.FTDI.driver.FTDIUSBSerialDriver
Once you've rebooted or loaded the driver, you can connect your FTDI
based cable to a USB port and it will show up in /dev, usually like this:
/dev/tty.usbserial-XXXXXXXX
where XXXXXXXX is a random ID, based on the serial number of your FTDI
based cable.
NOTE: If your FTDI based cable was already connected before you installed
the driver, you'll need to unplug the cable from the USB port and
reconnect it for it to show up in /dev.
EOC
end
2015-01-08 22:42:48 +08:00
end