aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJob Snijders2014-02-14 19:43:23 +0000
committerMike McQuaid2014-02-14 19:43:29 +0000
commit6d47046419f4c107c7d0895d2d06cd0357651ee2 (patch)
tree880ec8fb39cdd13f82477846e79ca82c73beb083
parentb8230bd59d5544cba33ab9a4e97f25ee952adf91 (diff)
downloadhomebrew-6d47046419f4c107c7d0895d2d06cd0357651ee2.tar.bz2
bgpq3: 10.9 fix, add --HEAD
Closes #25136. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/bgpq3.rb33
1 files changed, 27 insertions, 6 deletions
diff --git a/Library/Formula/bgpq3.rb b/Library/Formula/bgpq3.rb
index 7993cd01c..a0d994168 100644
--- a/Library/Formula/bgpq3.rb
+++ b/Library/Formula/bgpq3.rb
@@ -4,9 +4,15 @@ class Bgpq3 < Formula
homepage 'http://snar.spb.ru/prog/bgpq3/'
url 'http://snar.spb.ru/prog/bgpq3/bgpq3-0.1.19.tgz'
sha1 '41a2afaeffb12e43048ca8771c6cc6e6392e0da5'
+ head "https://github.com/snar/bgpq3.git"
def patches
- # Upstream has been informed of this patch through email
+ # Makefile: upstream has been informed of the patch through email,
+ # but no plans yet to incorporate it
+ # https://github.com/snar/bgpq3/pull/2
+ #
+ # strlcpy.c patch: upstream accepted but has not yet created a release
+ # https://github.com/snar/bgpq3/commit/89d864
DATA
end
@@ -27,14 +33,29 @@ index c2d7e96..afec780 100644
+++ 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:
++ if test ! -d @mandir@/man8 ; then mkdir -p @mandir@/man8 ; fi
++ ${INSTALL} -m 644 bgpq3.8 @mandir@/man8
+
+ depend:
makedepend -- $(CFLAGS) -- $(SRCS)
+diff --git a/strlcpy.c b/strlcpy.c
+index 6d4b7b0..f66dc42 100644
+--- a/strlcpy.c
++++ b/strlcpy.c
+@@ -27,6 +27,10 @@
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
++#if HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ #ifndef HAVE_STRLCPY
+
+ #include <sys/types.h>