pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/salt



Module Name:    pkgsrc
Committed By:   sborrill
Date:           Mon Feb  6 12:48:18 UTC 2017

Modified Files:
        pkgsrc/sysutils/salt: Makefile distinfo
Added Files:
        pkgsrc/sysutils/salt/patches: patch-salt_utils_network.py

Log Message:
Fix NetBSD sockstat parsing.
Bump PKGREVISION


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/sysutils/salt/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/sysutils/salt/distinfo
cvs rdiff -u -r0 -r1.5 \
    pkgsrc/sysutils/salt/patches/patch-salt_utils_network.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/salt/Makefile
diff -u pkgsrc/sysutils/salt/Makefile:1.45 pkgsrc/sysutils/salt/Makefile:1.46
--- pkgsrc/sysutils/salt/Makefile:1.45  Fri Feb  3 13:39:00 2017
+++ pkgsrc/sysutils/salt/Makefile       Mon Feb  6 12:48:18 2017
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.45 2017/02/03 13:39:00 sborrill Exp $
+# $NetBSD: Makefile,v 1.46 2017/02/06 12:48:18 sborrill Exp $
 
 DISTNAME=      salt-2016.11.2
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/salt/}
 

Index: pkgsrc/sysutils/salt/distinfo
diff -u pkgsrc/sysutils/salt/distinfo:1.23 pkgsrc/sysutils/salt/distinfo:1.24
--- pkgsrc/sysutils/salt/distinfo:1.23  Fri Feb  3 13:39:00 2017
+++ pkgsrc/sysutils/salt/distinfo       Mon Feb  6 12:48:18 2017
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.23 2017/02/03 13:39:00 sborrill Exp $
+$NetBSD: distinfo,v 1.24 2017/02/06 12:48:18 sborrill Exp $
 
 SHA1 (salt-2016.11.2.tar.gz) = 00cc3ad1af9e40e4cfa2572c45058e3342944413
 RMD160 (salt-2016.11.2.tar.gz) = cd6b75fb78e9bf52116c05866682a49cb96f67d2
 SHA512 (salt-2016.11.2.tar.gz) = 0dbc861424643af664edd2d9cb8bcbde7e9bcf7c1d202a5e844af83c21dc2d75fd7034db27dffc58dc2a6e47cfe2ea2c42e2a9af867c7ca78f93166eb4fd03ad
 Size (salt-2016.11.2.tar.gz) = 9114042 bytes
+SHA1 (patch-salt_utils_network.py) = 54a1b8fb53b6b65aa6c07b39506e2c1dcd57b54a

Added files:

Index: pkgsrc/sysutils/salt/patches/patch-salt_utils_network.py
diff -u /dev/null pkgsrc/sysutils/salt/patches/patch-salt_utils_network.py:1.5
--- /dev/null   Mon Feb  6 12:48:18 2017
+++ pkgsrc/sysutils/salt/patches/patch-salt_utils_network.py    Mon Feb  6 12:48:18 2017
@@ -0,0 +1,48 @@
+$NetBSD: patch-salt_utils_network.py,v 1.5 2017/02/06 12:48:18 sborrill Exp $
+
+Fix sockstat parsing on NetBSD.
+https://github.com/saltstack/salt/pull/39189
+
+--- salt/utils/network.py.orig 2017-01-30 18:13:20.000000000 +0000
++++ salt/utils/network.py      2017-02-06 11:38:34.000000000 +0000
+@@ -1057,23 +1057,23 @@
+     Parses output of shell 'sockstat' (NetBSD)
+     to get connections
+ 
+-    $ sudo sockstat -4
++    $ sudo sockstat -4 -n
+     USER    COMMAND     PID     FD  PROTO  LOCAL ADDRESS    FOREIGN ADDRESS
+-    root    python2.7   1456    29  tcp4   *.4505           *.*
+-    root    python2.7   1445    17  tcp4   *.4506           *.*
+-    root    python2.7   1294    14  tcp4   127.0.0.1.11813  127.0.0.1.4505
+-    root    python2.7   1294    41  tcp4   127.0.0.1.61115  127.0.0.1.4506
++    root    python2.7   1456    29  tcp    *.4505           *.*
++    root    python2.7   1445    17  tcp    *.4506           *.*
++    root    python2.7   1294    14  tcp    127.0.0.1.11813  127.0.0.1.4505
++    root    python2.7   1294    41  tcp    127.0.0.1.61115  127.0.0.1.4506
+ 
+-    $ sudo sockstat -4 -c -p 4506
++    $ sudo sockstat -4 -c -n -p 4506
+     USER    COMMAND     PID     FD  PROTO  LOCAL ADDRESS    FOREIGN ADDRESS
+-    root    python2.7   1294    41  tcp4   127.0.0.1.61115  127.0.0.1.4506
++    root    python2.7   1294    41  tcp    127.0.0.1.61115  127.0.0.1.4506
+     '''
+ 
+     port = int(port)
+     remotes = set()
+ 
+     try:
+-        cmd = salt.utils.shlex_split('sockstat -4 -c -p {0}'.format(port))
++        cmd = salt.utils.shlex_split('sockstat -4 -c -n -p {0}'.format(port))
+         data = subprocess.check_output(cmd)  # pylint: disable=minimum-python-version
+     except subprocess.CalledProcessError as ex:
+         log.error('Failed "sockstat" with returncode = {0}'.format(ex.returncode))
+@@ -1085,7 +1085,7 @@
+         chunks = line.split()
+         if not chunks:
+             continue
+-        # ['root', 'python2.7', '1456', '37', 'tcp4',
++        # ['root', 'python2.7', '1456', '37', 'tcp',
+         #  '127.0.0.1.4505-', '127.0.0.1.55703']
+         # print chunks
+         if 'COMMAND' in chunks[1]:



Home | Main Index | Thread Index | Old Index