Skip to content

Commit

Permalink
Add sudo-touchid formula
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrit committed Feb 2, 2017
1 parent bacb80e commit c08093d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sudo-touchid.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class SudoTouchid < Formula
desc "A fork of `sudo` with Touch ID support."
homepage "https://github.com/mattrajca/sudo-touchid"
url "https://github.com/mattrajca/sudo-touchid", :using => :git

depends_on :macos => :sierra
depends_on :xcode => :build

def install
xcodebuild
bin.install 'build/Release/sudo'
end

def caveats; <<-EOS.undent
sudo requires appropriate owner and mode:
sudo chown root:wheel #{opt_prefix}/bin/sudo
sudo chmod 4755 #{opt_prefix}/bin/sudo
You can also set up your PATH by adding export PATH=#{opt_prefix}/bin:$PATH to .bashrc
EOS
end
end

0 comments on commit c08093d

Please sign in to comment.