Skip to content

Instantly share code, notes, and snippets.

@kolashtov
Created December 11, 2020 09:23
Show Gist options
  • Save kolashtov/48aa27c2209f3cf2a79ac1d880c4c8fe to your computer and use it in GitHub Desktop.
Save kolashtov/48aa27c2209f3cf2a79ac1d880c4c8fe to your computer and use it in GitHub Desktop.
makepasswd on mac os install via brew
class Makepasswd < Formula
desc "Makepasswd random password generator"
homepage "https://packages.debian.org/sid/makepasswd"
url "http://ftp.debian.org/debian/pool/main/m/makepasswd/makepasswd_1.10.orig.tar.gz"
sha256 "41491f361d810f9bb3e08b40df3c3034faec306d434dab15534e19023f91a75c"
def install
bin.install "makepasswd"
man1.install "makepasswd.1"
end
def caveats; <<~EOS
Debian makepasswd has been installed as `makepasswd` and may shadow the
system binary of the same name.
EOS
end
test do
system "#{bin}/makepasswd"
end
end
@kolashtov
Copy link
Author

brew install --build-from-source https://gist.github.com/kolashtov/48aa27c2209f3cf2a79ac1d880c4c8fe/raw/da396f4c5288494ca7d78434d0949218ae81270d/makepasswd.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment