diff options
| author | Maarten Billemont | 2015-01-19 22:33:15 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-20 17:04:58 +0100 |
| commit | a2655238168cb34d6d58209c856387532857a748 (patch) | |
| tree | ab2c12e19a210f505c85c5f5c00176cb7b464680 /Library/Formula | |
| parent | 9554ed0a1513f7caed3105c1886dd8662159df99 (diff) | |
| download | homebrew-a2655238168cb34d6d58209c856387532857a748.tar.bz2 | |
mpw 2.1-cli4
The CLI Master Password utility from http://masterpasswordapp.com
Master Password is a stateless password manager / generator. It removes the
dependency on backups, a vault to synchronize, and a transport or cloud to
trust. It also makes you immune to loss.
Closes #36046.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mpw.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/mpw.rb b/Library/Formula/mpw.rb new file mode 100644 index 000000000..cdded4be0 --- /dev/null +++ b/Library/Formula/mpw.rb @@ -0,0 +1,31 @@ +class Mpw < Formula + homepage "http://masterpasswordapp.com" + url "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz" + sha1 "036b3d8f4bd6f0676ae16e7e9c3de65f6030874f" + version "2.1-cli4" + + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "openssl" + + resource "libscrypt" do + url "http://masterpasswordapp.com/libscrypt-b12b554.tar.gz" + sha1 "ee871e0f93a786c4e3622561f34565337cfdb815" + end + + def install + resource("libscrypt").stage buildpath/"lib/scrypt" + touch "lib/scrypt/.unpacked" + + ENV["targets"] = "mpw mpw-tests" + system "./build" + system "./mpw-tests" + + bin.install "mpw" + end + + test do + assert_equal "Jejr5[RepuSosp", + shell_output("mpw -u 'Robert Lee Mitchell' -P 'banana colored duckling' masterpasswordapp.com").strip + end +end |
