Sat Jul 15 18:53:12 2017 UTC ()
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.


(bsiegert)
diff -r1.20 -r1.20.2.1 pkgsrc/net/exabgp/Makefile
diff -r1.12 -r1.12.2.1 pkgsrc/net/exabgp/distinfo
diff -r0 -r1.1.2.2 pkgsrc/net/exabgp/patches/patch-lib_exabgp_application_healthcheck.py

cvs diff -r1.20 -r1.20.2.1 pkgsrc/net/exabgp/Makefile (expand / switch to context diff)
--- pkgsrc/net/exabgp/Makefile 2017/06/20 14:10:16 1.20
+++ pkgsrc/net/exabgp/Makefile 2017/07/15 18:53:11 1.20.2.1
@@ -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

cvs diff -r1.12 -r1.12.2.1 pkgsrc/net/exabgp/distinfo (expand / switch to context diff)
--- pkgsrc/net/exabgp/distinfo 2017/06/20 14:10:16 1.12
+++ pkgsrc/net/exabgp/distinfo 2017/07/15 18:53:11 1.12.2.1
@@ -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

File Added: pkgsrc/net/exabgp/patches/patch-lib_exabgp_application_healthcheck.py
$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 "