From f2fc3eaed098a76dfd9b378526491bf091785800 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 2 Dec 2014 19:52:01 +0000 Subject: [PATCH] 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. --- Casks/tuntap.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Casks/tuntap.rb diff --git a/Casks/tuntap.rb b/Casks/tuntap.rb new file mode 100644 index 000000000..002acd739 --- /dev/null +++ b/Casks/tuntap.rb @@ -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