diff options
| author | Jason A. Donenfeld | 2012-09-07 00:20:40 +0200 |
|---|---|---|
| committer | Misty De Meo | 2012-09-07 22:04:59 -0500 |
| commit | 66b45aed5140781f6c6338492fe47eb77e6025ec (patch) | |
| tree | 813c88e4960952725d069a5e1752d43b0a446599 /Library/Formula | |
| parent | b6967f72c2cec1ef5e0fcc5f3634f5a294531616 (diff) | |
| download | homebrew-66b45aed5140781f6c6338492fe47eb77e6025ec.tar.bz2 | |
Add pass: the standard unix password manager.
Closes #14779.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pass.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/pass.rb b/Library/Formula/pass.rb new file mode 100644 index 000000000..747aa88ab --- /dev/null +++ b/Library/Formula/pass.rb @@ -0,0 +1,27 @@ +require 'formula' + +class Pass < Formula + homepage 'http://zx2c4.com/projects/password-store' + url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.1.4.tar.xz' + sha256 '4dd8d1b39b885ba4e902e50f36afb40b3087e682f9afb89d33d17fa931405929' + head 'http://git.zx2c4.com/password-store', :using => :git + + depends_on 'xz' => :build + depends_on 'pwgen' + depends_on 'tree' + depends_on 'gnupg2' + + def install + inreplace "src/password-store.sh" do |s| + s.gsub! "gpg ", "gpg2 " + s.gsub! "xclip -o -selection clipboard", "pbpaste" + s.gsub! "xclip -selection clipboard", "pbcopy" + s.gsub! "qdbus", "#qdbus" + s.gsub! "base64", "openssl base64" + end + inreplace "man/pass.1", "xclip", "pbcopy" + + system "make DESTDIR=#{prefix} PREFIX=/ install" + end + +end |
