sudo-touchid icon indicating copy to clipboard operation
sudo-touchid copied to clipboard

add to homebrew for installation

Open AndrewSB opened this issue 9 years ago • 14 comments

http://brew.sh

AndrewSB avatar Dec 03 '16 21:12 AndrewSB

I am on a slow internet connection, so can't download Xcode today. :-(

I wish this was distributed as a brew package.

rahul286 avatar Dec 25 '16 13:12 rahul286

Are you planning to do this?

jonasrauber avatar Jan 09 '17 19:01 jonasrauber

I don't have access to xcode since I'm not a developer so if we have any .dmg file or a script that would be awesome.

RoySegall avatar Jan 10 '17 15:01 RoySegall

You can just get Xcode from the App Store without a developer account, but a brew package would be pretty cool.

evanmhm avatar Jan 11 '17 00:01 evanmhm

I not familiar with the xCdoe environment so I'm struggling with this one. I did the build but where is the compiled file?

RoySegall avatar Jan 11 '17 07:01 RoySegall

@RoySegall If you look in the Products group on the left panel of Xcode you'll see it there, and you can right click it to show in finder.

However, the easiest way to build it is to just clone the repo, cd into the directory, run xcodebuild with no options, then the file will be in ./build/Release/sudo in that folder

einsteinx2 avatar Jan 14 '17 02:01 einsteinx2

I managed to get it working using Xcode only.

Below are all commands I needed to run from start to end:

git clone https://github.com/mattrajca/sudo-touchid
cd sudo-touchid
xcodebuild 
cd build/Release
sudo chown root:wheel sudo && sudo chmod 4755 sudo
sudo cp - sudo /usr/local/bin

rahul286 avatar Jan 14 '17 07:01 rahul286

@rahul286 I needed to do the following instead. Just the last two lines are different.

git clone https://github.com/mattrajca/sudo-touchid
cd sudo-touchid
xcodebuild 
cd build/Release
sudo cp sudo /usr/local/bin
sudo chown root:wheel /usr/local/bin/sudo && sudo chmod 4755 /usr/local/bin/sudo

jeremymlane avatar Mar 21 '17 16:03 jeremymlane

@mattrajca do we have a chance to merge it?

idoo avatar Apr 17 '17 10:04 idoo

Does running the homebrew commands in the commit will do the trick?

RoySegall avatar Apr 18 '17 06:04 RoySegall

@RoySegall yep, you it just add custom formula to your brew just run, and keep hope, that paulche didn't change that formula in future ;)

brew tap paulche/sudo-touchid
brew install sudo-touchid

idoo avatar Apr 18 '17 06:04 idoo

Hi guys, I follow the homebrew method and broke my sudo. sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set To fix this problem I had to enable the Root user: How to and fix the permissions of sudo symlink /usr/local/bin/sudo. I execute the last command of @jeremymlane.

brunojdo avatar Jun 17 '17 02:06 brunojdo

@jeremymlane I thought

sudo cp ./sudo /usr/local/bin
sudo chown root:wheel /usr/local/bin/sudo && sudo chmod 4755 /usr/local/bin/sudo

will create a problem because sudo in the second line would be used from /usr/local/bin/sudo.

I tested your method and it did not create any problem.

rahul286 avatar Jul 23 '18 04:07 rahul286

anton  ~  brew tap paulche/sudo-touchid
anton  ~  brew install sudo-touchid
==> Installing sudo-touchid from paulche/sudo-touchid
==> Cloning https://github.com/mattrajca/sudo-touchid
Cloning into '/Users/anton/Library/Caches/Homebrew/sudo-touchid--git'...
remote: Counting objects: 632, done.
remote: Compressing objects: 100% (492/492), done.
remote: Total 632 (delta 102), reused 569 (delta 102), pack-reused 0
Receiving objects: 100% (632/632), 3.16 MiB | 1.97 MiB/s, done.
Resolving deltas: 100% (102/102), done.
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> xcodebuild
Error: undefined method `undent' for #<String:0x00007ffb740caab8>
Please report this bug:
  https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Taps/paulche/homebrew-sudo-touchid/sudo-touchid.rb:27:in `caveats'
/usr/local/Homebrew/Library/Homebrew/caveats.rb:17:in `caveats'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/forwardable.rb:202:in `empty?'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:610:in `caveats'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:659:in `finish'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:322:in `install_formula'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:253:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:87:in `<main>'

AFakeman avatar Jul 24 '18 15:07 AFakeman