Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

bgpq3 0.1.19 #22179

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Library/Formula/bgpq3.rb
Original file line number Diff line number Diff line change
@@ -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)