tuntap: new cask

Since there's an upstream binary .pkg in place that works for
Yosemite users where the source package no longer does, perhaps the
Cask is interested in carrying it.

I'm afraid most of your syntax is rather Greek to me, so please feel
free to inform me what I screwed up here.
This commit is contained in:
Dominyk Tiller 2014-12-02 19:52:01 +00:00 committed by Roland Walker
parent ae0b51f661
commit f2fc3eaed0

24
Casks/tuntap.rb Normal file
View file

@ -0,0 +1,24 @@
cask :v1 => 'tuntap' do
version '20141104'
sha256 '149dbfdfea3264249536cd39240e613f685c4c524635cf116dbcc09ec252b920'
url "https://downloads.sourceforge.net/project/tuntaposx/tuntap/#{version}/tuntap_#{version}.tar.gz"
homepage 'http://tuntaposx.sourceforge.net/'
license :oss
pkg "tuntap_#{version}.pkg"
uninstall :pkgutil => 'tuntap.startup_item.tap|tuntap.startup_item.tun|tuntap.tap|tuntap.tun',
:launchctl => [
'net.sf.tuntaposx.tun.plist',
'net.sf.tuntaposx.tap.plist',
],
:kext => [
'net.sf.tuntaposx.tap',
'net.sf.tuntaposx.tun'
],
:delete => [
'/Library/LaunchDaemons/net.sf.tuntaposx.tap.plist',
'/Library/LaunchDaemons/net.sf.tuntaposx.tun.plist'
]
end