2013-08-28 17:03:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Bgpq3 < Formula
|
|
|
|
homepage 'http://snar.spb.ru/prog/bgpq3/'
|
2015-03-10 12:23:31 +00:00
|
|
|
url 'https://github.com/snar/bgpq3/archive/v0.1.27.tar.gz'
|
|
|
|
sha1 'fae5f735033202ab288aef3ad7a83a0b323ae8d7'
|
2014-02-14 19:43:23 +00:00
|
|
|
head "https://github.com/snar/bgpq3.git"
|
2013-08-28 17:03:07 +00:00
|
|
|
|
2015-03-12 16:05:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "d9af2aa66da7aecb0f86f870f8bedede3a99f68d90822a425d7de96b9bedeed9" => :yosemite
|
|
|
|
sha256 "e82b1a638d5b0c9a1eb500311887f0221a599c0fa1be760c1cb1a7feea8d3ddd" => :mavericks
|
|
|
|
sha256 "88e24d49eb3cc2328fcfb2fe3e455b96bd9954d8547bea3d0e1bc442e084e456" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-06-06 07:39:17 +00:00
|
|
|
# Makefile: upstream has been informed of the patch through email (multiple
|
|
|
|
# times) but no plans yet to incorporate it https://github.com/snar/bgpq3/pull/2
|
|
|
|
# there was discussion about this patch for 0.1.18 and 0.1.19 as well
|
2014-03-18 03:44:53 +00:00
|
|
|
patch :DATA
|
2013-08-28 17:03:07 +00:00
|
|
|
|
|
|
|
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
|
2014-02-14 19:43:23 +00:00
|
|
|
|
2013-08-28 17:03:07 +00:00
|
|
|
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
|
2014-02-14 19:43:23 +00:00
|
|
|
+ if test ! -d @mandir@/man8 ; then mkdir -p @mandir@/man8 ; fi
|
|
|
|
+ ${INSTALL} -m 644 bgpq3.8 @mandir@/man8
|
|
|
|
|
|
|
|
depend:
|
2013-08-28 17:03:07 +00:00
|
|
|
makedepend -- $(CFLAGS) -- $(SRCS)
|