From owner-svn-ports-head@freebsd.org Sat Apr 23 22:19:52 2016 Return-Path: Delivered-To: svn-ports-head@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 C0D47B1AE6E; Sat, 23 Apr 2016 22:19:52 +0000 (UTC) (envelope-from madpilot@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 795151AE9; Sat, 23 Apr 2016 22:19:52 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3NMJpNi042272; Sat, 23 Apr 2016 22:19:51 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3NMJpB8042270; Sat, 23 Apr 2016 22:19:51 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201604232219.u3NMJpB8042270@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Sat, 23 Apr 2016 22:19:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r413917 - in head/sysutils/ansible: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 22:19:52 -0000 Author: madpilot Date: Sat Apr 23 22:19:51 2016 New Revision: 413917 URL: https://svnweb.freebsd.org/changeset/ports/413917 Log: Make the service module respect the sleep option. PR: 208996 Submitted by: me Approved by: Nikolai Lifanov (maintainer) Added: head/sysutils/ansible/files/extra-patch-8aac5ae (contents, props changed) Modified: head/sysutils/ansible/Makefile Modified: head/sysutils/ansible/Makefile ============================================================================== --- head/sysutils/ansible/Makefile Sat Apr 23 22:10:46 2016 (r413916) +++ head/sysutils/ansible/Makefile Sat Apr 23 22:19:51 2016 (r413917) @@ -3,6 +3,7 @@ PORTNAME= ansible PORTVERSION?= 2.0.2.0 +PORTREVISION?= 1 CATEGORIES= sysutils python MASTER_SITES= http://releases.ansible.com/ansible/ @@ -17,6 +18,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml ${PYTHON_PKGNAMEPREFIX}paramiko>0:security/py-paramiko \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2 +EXTRA_PATCHES?= ${FILESDIR}/extra-patch-8aac5ae + NO_ARCH= yes USES= cpe python:2 shebangfix USE_PYTHON= autoplist distutils Added: head/sysutils/ansible/files/extra-patch-8aac5ae ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/ansible/files/extra-patch-8aac5ae Sat Apr 23 22:19:51 2016 (r413917) @@ -0,0 +1,16 @@ +--- lib/ansible/modules/core/system/service.py.orig 2016-04-19 21:55:24 UTC ++++ lib/ansible/modules/core/system/service.py +@@ -1003,7 +1003,12 @@ class FreeBsdService(Service): + if self.action == "reload": + self.action = "onereload" + +- return self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, self.action, self.arguments)) ++ ret = self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, self.action, self.arguments)) ++ ++ if self.sleep: ++ time.sleep(self.sleep) ++ ++ return ret + + # =========================================== + # Subclass: OpenBSD