pkgsrc/net/exabgp/patches/patch-lib_exabgp_application_healthcheck.py
he dfc9b78211 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.
2017-07-04 12:35:12 +00:00

22 lines
893 B
Python

$NetBSD: patch-lib_exabgp_application_healthcheck.py,v 1.1 2017/07/04 12:35:12 he 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 "