2 desc "BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers"
3 homepage "http://snar.spb.ru/prog/bgpq3/"
4 url "https://github.com/snar/bgpq3/archive/refs/tags/v0.1.36.1.tar.gz"
5 sha256 "68d602434d072115b848f6047a7a29812d53c709835a4fbd0ba34dcc31553bcd"
7 head "https://github.com/snar/bgpq3.git", branch: "master"
11 regex(/^v?(\d+(?:\.\d+)+)$/i)
15 sha256 cellar: :any_skip_relocation, arm64_sequoia: "4eca4f5cc688d7bfca7689f337cbe77112e688ade4a640718f32270d750959df"
16 sha256 cellar: :any_skip_relocation, arm64_sonoma: "a26e86fbe0f158032564b36c316161d6296e2f13a6f37887e860454ebf0c5fbf"
17 sha256 cellar: :any_skip_relocation, arm64_ventura: "18d4d294bcd85daa37e3285a34aa7ed2d45513cd708a2eadc203d5d62ae7b5a3"
18 sha256 cellar: :any_skip_relocation, arm64_monterey: "890ade49fae97d8e9967362b464b57cc172fb5305e05dee84d7c3b5ab5e869bd"
19 sha256 cellar: :any_skip_relocation, arm64_big_sur: "b9edea14c24ccca9986d9dbf14cedd8e245fc49ecffb07a3079deff2b6576448"
20 sha256 cellar: :any_skip_relocation, sonoma: "9aebbaa768f96be65496d9fb1d5878e5e26baca8204693217045a59a2df10d95"
21 sha256 cellar: :any_skip_relocation, ventura: "e5b38623eed774b049c26c2c6b074ffb5302c38f1545ef96458b5a6dfcbdca8b"
22 sha256 cellar: :any_skip_relocation, monterey: "7a130fc4a82b1ab7255290dc18058a369ba604905386a32ac7f76a6bab543ee7"
23 sha256 cellar: :any_skip_relocation, big_sur: "6d04e58f086891a0a8f1bd8c91e813afb4de0fff26f61a8bc30d3c82d2829a42"
24 sha256 cellar: :any_skip_relocation, catalina: "4294f76491ed0fe10c6df11b695489e2765b7eb8bd4ccfe0adcabced418968a2"
25 sha256 cellar: :any_skip_relocation, x86_64_linux: "ee8fc268ac1e1293ee27d9b8a82411c7dc98f2a4df8e4a88efed3635699bc4ba"
28 # Makefile: upstream has been informed of the patch through email (multiple
29 # times) but no plans yet to incorporate it https://github.com/snar/bgpq3/pull/2
30 # there was discussion about this patch for 0.1.18 and 0.1.19 as well
34 system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
35 system "make", "install"
39 system bin/"bgpq3", "AS-ANY"
48 if test ! -d @bindir@ ; then mkdir -p @bindir@ ; fi
49 ${INSTALL} -c -s -m 755 bgpq3 @bindir@
50 - if test ! -d @prefix@/man/man8 ; then mkdir -p @prefix@/man/man8 ; fi
51 - ${INSTALL} -m 644 bgpq3.8 @prefix@/man/man8
52 + if test ! -d @mandir@/man8 ; then mkdir -p @mandir@/man8 ; fi
53 + ${INSTALL} -m 644 bgpq3.8 @mandir@/man8
56 makedepend -- $(CFLAGS) -- $(SRCS)