wirouter_keyrec 1.1.2 (new formula)

Closes Homebrew/homebrew#36498.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Giordano Vicari 2015-02-03 15:10:27 +01:00 committed by Mike McQuaid
parent 4064ed7072
commit 121df70b92

View file

@ -0,0 +1,23 @@
class WirouterKeyrec < Formula
homepage "http://www.salvatorefresta.net/tools/"
url "http://tools.salvatorefresta.net/WiRouter_KeyRec_1.1.2.zip"
sha1 "3c17f2d0bf3d6201409862fd903ebfd60c1e8a2e"
def install
inreplace "src/agpf.h", %r{/etc}, "#{prefix}/etc"
inreplace "src/teletu.h", %r{/etc}, "#{prefix}/etc"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--sysconfdir=#{prefix}",
"--exec-prefix=#{prefix}"
system "make", "prefix=#{prefix}"
system "make", "install", "DESTDIR=#{prefix}", "BIN_DIR=bin/"
end
test do
system "#{bin}/wirouterkeyrec", "-s", "Alice-12345678"
end
end