From owner-svn-ports-all@freebsd.org Wed Nov 8 07:58:53 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40D55E708F7; Wed, 8 Nov 2017 07:58:53 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19DB66F285; Wed, 8 Nov 2017 07:58:53 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA87wqAX038356; Wed, 8 Nov 2017 07:58:52 GMT (envelope-from loader@FreeBSD.org) Received: (from loader@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA87wp4K038350; Wed, 8 Nov 2017 07:58:51 GMT (envelope-from loader@FreeBSD.org) Message-Id: <201711080758.vA87wp4K038350@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: loader set sender to loader@FreeBSD.org using -f From: Fukang Chen Date: Wed, 8 Nov 2017 07:58:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453722 - in head/sysutils: . py-superlance py-superlance/files X-SVN-Group: ports-head X-SVN-Commit-Author: loader X-SVN-Commit-Paths: in head/sysutils: . py-superlance py-superlance/files X-SVN-Commit-Revision: 453722 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 07:58:53 -0000 Author: loader (doc committer) Date: Wed Nov 8 07:58:51 2017 New Revision: 453722 URL: https://svnweb.freebsd.org/changeset/ports/453722 Log: [NEW PORT] sysutils/py-superlance: Superlance plugins for supervisord Superlance is a package of plugin utilities for monitoring and controlling processes that run under supervisor. WWW: https://github.com/Supervisor/superlance Reviewed_by: koobs Approved by: koobs (ports) Differential_Revision: https://reviews.freebsd.org/D12822 Added: head/sysutils/py-superlance/ head/sysutils/py-superlance/Makefile (contents, props changed) head/sysutils/py-superlance/distinfo (contents, props changed) head/sysutils/py-superlance/files/ head/sysutils/py-superlance/files/patch-superlance_httpok.py (contents, props changed) head/sysutils/py-superlance/files/patch-superlance_memmon.py (contents, props changed) head/sysutils/py-superlance/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Wed Nov 8 06:58:12 2017 (r453721) +++ head/sysutils/Makefile Wed Nov 8 07:58:51 2017 (r453722) @@ -919,6 +919,7 @@ SUBDIR += py-scriptine SUBDIR += py-shutilwhich SUBDIR += py-stdiff + SUBDIR += py-superlance SUBDIR += py-supervisor SUBDIR += py-tmuxp SUBDIR += py-uptime Added: head/sysutils/py-superlance/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-superlance/Makefile Wed Nov 8 07:58:51 2017 (r453722) @@ -0,0 +1,33 @@ +# Created by: Fukang Chen +# $FreeBSD$ + +PORTNAME= superlance +PORTVERSION= 1.0.0 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= loader@FreeBSD.org +COMMENT= Superlance plugins for supervisord + +LICENSE= BSD4CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}supervisor>0:sysutils/py-supervisor + +NO_ARCH= yes + +# Actually 2.6-2.7,3.2-3.5 +USES= python:2.7 +USE_PYTHON= autoplist distutils + +.include + +.if ${PYTHON_REL} < 3300 +TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock +.endif + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include Added: head/sysutils/py-superlance/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-superlance/distinfo Wed Nov 8 07:58:51 2017 (r453722) @@ -0,0 +1,3 @@ +TIMESTAMP = 1508254575 +SHA256 (superlance-1.0.0.tar.gz) = f697c71341e9a686f3a0ff3f04a82448523eac0a6121484933729ba65a973a63 +SIZE (superlance-1.0.0.tar.gz) = 36909 Added: head/sysutils/py-superlance/files/patch-superlance_httpok.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-superlance/files/patch-superlance_httpok.py Wed Nov 8 07:58:51 2017 (r453722) @@ -0,0 +1,24 @@ +GDB installs gcore(1) shell script on Linux: + +gcore(1): + -o filename + write core file to filename instead of core.pid + +gcore(1) is disabled in the devel/gdb port, and FreeBSD's +gcore(1) provides a different command line option + +gcore(1): + -c Write the core file to the specified file instead of + "core.". + +--- superlance/httpok.py.orig 2017-10-25 04:36:10 UTC ++++ superlance/httpok.py +@@ -351,7 +351,7 @@ def main(argv=sys.argv): + programs = [] + any = False + sendmail = '/usr/sbin/sendmail -t -i' +- gcore = '/usr/bin/gcore -o' ++ gcore = '/usr/bin/gcore -c' + coredir = None + eager = True + email = None Added: head/sysutils/py-superlance/files/patch-superlance_memmon.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-superlance/files/patch-superlance_memmon.py Wed Nov 8 07:58:51 2017 (r453722) @@ -0,0 +1,15 @@ +FreeBSD's ps(1) only supports adding an equals sign to the last +keyword, the original command returns a list of pid with non-empty +header on FreeBSD. + +--- superlance/memmon.py.orig 2017-10-25 04:36:57 UTC ++++ superlance/memmon.py +@@ -114,7 +114,7 @@ class Memmon: + self.stdout = sys.stdout + self.stderr = sys.stderr + self.pscommand = 'ps -orss= -p %s' +- self.pstreecommand = 'ps ax -o "pid= ppid= rss="' ++ self.pstreecommand = 'ps ax -o pid= -o ppid= -o rss=' + self.mailed = False # for unit tests + + def runforever(self, test=False): Added: head/sysutils/py-superlance/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-superlance/pkg-descr Wed Nov 8 07:58:51 2017 (r453722) @@ -0,0 +1,4 @@ +Superlance is a package of plugin utilities for monitoring and controlling +processes that run under supervisor. + +WWW: https://github.com/Supervisor/superlance