pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/exabgp Patch the healthcheck.py script in its prop...
details: https://anonhg.NetBSD.org/pkgsrc/rev/55c368c6e551
branches: trunk
changeset: 364773:55c368c6e551
user: he <he%pkgsrc.org@localhost>
date: Tue Jul 04 12:35:12 2017 +0000
description:
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 499421ecda1c -r 55c368c6e551 net/exabgp/Makefile
--- a/net/exabgp/Makefile Tue Jul 04 11:42:03 2017 +0000
+++ b/net/exabgp/Makefile Tue Jul 04 12:35:12 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2017/06/20 14:10:16 he Exp $
+# $NetBSD: Makefile,v 1.21 2017/07/04 12:35:12 he 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 499421ecda1c -r 55c368c6e551 net/exabgp/distinfo
--- a/net/exabgp/distinfo Tue Jul 04 11:42:03 2017 +0000
+++ b/net/exabgp/distinfo Tue Jul 04 12:35:12 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2017/06/20 14:10:16 he Exp $
+$NetBSD: distinfo,v 1.13 2017/07/04 12:35:12 he 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 499421ecda1c -r 55c368c6e551 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 Tue Jul 04 12:35:12 2017 +0000
@@ -0,0 +1,22 @@
+$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 "
Home |
Main Index |
Thread Index |
Old Index