pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2017Q2]: pkgsrc/net/exabgp Pullup ticket #5506 - requested by he



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5009632acbe2
branches:  pkgsrc-2017Q2
changeset: 408641:5009632acbe2
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Jul 15 18:53:11 2017 +0000

description:
Pullup ticket #5506 - requested by he
net/exabgp: NetBSD build fix

Revisions pulled up:
- net/exabgp/Makefile                                           1.21
- net/exabgp/distinfo                                           1.13
- net/exabgp/patches/patch-lib_exabgp_application_healthcheck.py 1.1

---
   Module Name: pkgsrc
   Committed By:        he
   Date:                Tue Jul  4 12:35:12 UTC 2017

   Modified Files:
        pkgsrc/net/exabgp: Makefile distinfo
   Added Files:
        pkgsrc/net/exabgp/patches: patch-lib_exabgp_application_healthcheck.py

   Log Message:
   Patch the healthcheck.py script in its proper place.
   Provide a default syslog target of /var/run/log for NetBSD, so
   that the healthcheck.py script can run on NetBSD.
   Bump PKGREVISION.

diffstat:

 net/exabgp/Makefile                                            |   6 +-
 net/exabgp/distinfo                                            |   3 +-
 net/exabgp/patches/patch-lib_exabgp_application_healthcheck.py |  22 ++++++++++
 3 files changed, 27 insertions(+), 4 deletions(-)

diffs (69 lines):

diff -r 4c00fd813145 -r 5009632acbe2 net/exabgp/Makefile
--- a/net/exabgp/Makefile       Sat Jul 15 18:51:00 2017 +0000
+++ b/net/exabgp/Makefile       Sat Jul 15 18:53:11 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2017/06/20 14:10:16 he Exp $
+# $NetBSD: Makefile,v 1.20.2.1 2017/07/15 18:53:11 bsiegert Exp $
 
 VERSION=       3.4.19
 DISTNAME=      ${VERSION}
+PKGREVISION=   1
 PKGNAME=       exabgp-${VERSION}
 EGG_NAME=      exabgp-${VERSION}
 CATEGORIES=    net
@@ -23,16 +24,15 @@
 REPLACE_PERL+=         etc/exabgp/processes/dynamic-1.pl
 REPLACE_PERL+=         etc/exabgp/processes/watchdog-1.pl
 
-REPLACE_PYTHON+=       etc/exabgp/processes/healthcheck.py
 REPLACE_PYTHON+=       etc/exabgp/processes/read-write.py
 REPLACE_PYTHON+=       etc/exabgp/processes/stderr-1.py
 REPLACE_PYTHON+=       etc/exabgp/processes/syslog-1.py
 REPLACE_PYTHON+=       etc/exabgp/processes/tcp-server
 REPLACE_PYTHON+=       lib/exabgp/application/bmp.py
 REPLACE_PYTHON+=       lib/exabgp/application/cli.py
+REPLACE_PYTHON+=       lib/exabgp/application/healthcheck.py
 REPLACE_PYTHON+=       lib/exabgp/application/netlink.py
 REPLACE_PYTHON+=       lib/exabgp/netlink/old.py
-REPLACE_PYTHON+=       lib/exabgp/netlink/route.py
 REPLACE_PYTHON+=       lib/exabgp/reactor/api/encoding.py
 REPLACE_PYTHON+=       qa/conf/api-add-remove.run
 REPLACE_PYTHON+=       qa/conf/api-announcement.run
diff -r 4c00fd813145 -r 5009632acbe2 net/exabgp/distinfo
--- a/net/exabgp/distinfo       Sat Jul 15 18:51:00 2017 +0000
+++ b/net/exabgp/distinfo       Sat Jul 15 18:53:11 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2017/06/20 14:10:16 he Exp $
+$NetBSD: distinfo,v 1.12.2.1 2017/07/15 18:53:11 bsiegert Exp $
 
 SHA1 (exabgp/3.4.19.tar.gz) = 8199eb40f3b533a7db1ee43e4a97213f550a4261
 RMD160 (exabgp/3.4.19.tar.gz) = 4596ea5663169e09d8be5a0b5833c2f9426a7ff2
 SHA512 (exabgp/3.4.19.tar.gz) = 92fb0aea9b2594433acacdc196cfda217867f59ea6524b409b69dff506fdc9a9a815b93807ff06d4c81404b1f6568a1a41e64178122eaf9ce7732416474f3455
 Size (exabgp/3.4.19.tar.gz) = 543475 bytes
+SHA1 (patch-lib_exabgp_application_healthcheck.py) = d3b3c511e8d4fae60bcc21b7ee23585ee83ae9d8
diff -r 4c00fd813145 -r 5009632acbe2 net/exabgp/patches/patch-lib_exabgp_application_healthcheck.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/exabgp/patches/patch-lib_exabgp_application_healthcheck.py    Sat Jul 15 18:53:11 2017 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-lib_exabgp_application_healthcheck.py,v 1.1.2.2 2017/07/15 18:53:11 bsiegert Exp $
+
+Provide a default syslog destination on NetBSD as well.
+Fix spelling...
+
+--- lib/exabgp/application/healthcheck.py.orig 2017-07-04 09:41:30.000000000 +0000
++++ lib/exabgp/application/healthcheck.py
+@@ -203,11 +203,13 @@ def setup_logging (debug, silent, name, 
+     """Setup logger"""
+ 
+     def syslog_address():
+-        """Return a sensitive syslog address"""
++        """Return a sensible syslog address"""
+         if sys.platform == "darwin":
+             return "/var/run/syslog"
+         if sys.platform.startswith("freebsd"):
+             return "/var/run/log"
++        if sys.platform.startswith("netbsd"):
++            return "/var/run/log"
+         if sys.platform.startswith("linux"):
+             return "/dev/log"
+         raise EnvironmentError("Unable to guess syslog address for your "



Home | Main Index | Thread Index | Old Index