diff options
| author | Job Snijders | 2013-08-28 19:03:07 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-23 21:35:50 -0700 |
| commit | 6e7f50d0d93383f36212b5d24f5b410140ea53fc (patch) | |
| tree | c86c1edf077c04f8d26a6710a9d8bc9f2a4451fd | |
| parent | 67ea0b1bcc42fea6891597fa75e21618ae623877 (diff) | |
| download | homebrew-6e7f50d0d93383f36212b5d24f5b410140ea53fc.tar.bz2 | |
bgpq3 0.1.19
Closes #22179.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/bgpq3.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/bgpq3.rb b/Library/Formula/bgpq3.rb new file mode 100644 index 000000000..7993cd01c --- /dev/null +++ b/Library/Formula/bgpq3.rb @@ -0,0 +1,40 @@ +require 'formula' + +class Bgpq3 < Formula + homepage 'http://snar.spb.ru/prog/bgpq3/' + url 'http://snar.spb.ru/prog/bgpq3/bgpq3-0.1.19.tgz' + sha1 '41a2afaeffb12e43048ca8771c6cc6e6392e0da5' + + def patches + # Upstream has been informed of this patch through email + DATA + end + + def install + system "./configure", "--prefix=#{prefix}", "--mandir=#{man}" + system "make", "install" + end + + test do + system "#{bin}/bgpq3", "AS-ANY" + end +end + +__END__ +diff --git a/Makefile.in b/Makefile.in +index c2d7e96..afec780 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -29,9 +29,10 @@ clean: + rm -rf *.o *.core core.* core + + install: bgpq3 ++ if test ! -d @prefix@/bin ; then mkdir -p @prefix@/bin ; fi + ${INSTALL} -c -s -m 755 bgpq3 @bindir@ +- if test ! -d @prefix@/man/man8 ; then mkdir -p @prefix@/man/man8 ; fi +- ${INSTALL} -m 644 bgpq3.8 @prefix@/man/man8 ++ if test ! -d @mandir@/man/man8 ; then mkdir -p @mandir@/man/man8 ; fi ++ ${INSTALL} -m 644 bgpq3.8 @mandir@/man/man8 + + depend: + makedepend -- $(CFLAGS) -- $(SRCS) |
