Created
April 29, 2017 09:45
-
-
Save awaxa/5a61119e4a40b2b9186a21b1fb4ad5fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Apg < Formula | |
desc "Tool set for random password generation" | |
homepage "http://www.adel.nursat.kz/apg/" | |
url "http://ftp.us.debian.org/debian/pool/main/a/apg/apg_2.2.3.dfsg.1.orig.tar.gz" | |
sha256 "c7e3c556426e2d5d2f599873a71100c5f6d14fa8784e0b1d879916784de801df" | |
def install | |
system "make", "standalone", | |
"CC=#{ENV.cc}", | |
"FLAGS=#{ENV.cflags}", | |
"LIBS=", "LIBM=" | |
bin.install "apg", "apgbfm" | |
man1.install "doc/man/apg.1", "doc/man/apgbfm.1" | |
end | |
test do | |
system bin/"apg", "-a", "1", "-M", "n", "-n", "3", "-m", "8", "-E", "23456789" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment