diff options
author | madpilot <madpilot@FreeBSD.org> | 2016-04-24 06:19:51 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2016-04-24 06:19:51 +0800 |
commit | 7a4ef7116d6ea6626fb8334a790c023219a9768b (patch) | |
tree | b88d70fd799d26aad76ab68655b6faf7b750dfd9 /sysutils | |
parent | 28c9d4f397cd071df14042feaec2b4f0c6b6d4e0 (diff) | |
download | freebsd-ports-gnome-7a4ef7116d6ea6626fb8334a790c023219a9768b.tar.gz freebsd-ports-gnome-7a4ef7116d6ea6626fb8334a790c023219a9768b.tar.zst freebsd-ports-gnome-7a4ef7116d6ea6626fb8334a790c023219a9768b.zip |
Make the service module respect the sleep option.
PR: 208996
Submitted by: me
Approved by: Nikolai Lifanov <lifanov at mail.lifanov.com>
(maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/ansible/Makefile | 3 | ||||
-rw-r--r-- | sysutils/ansible/files/extra-patch-8aac5ae | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/ansible/Makefile b/sysutils/ansible/Makefile index 79cabe8c0c4e..be74819ddce7 100644 --- a/sysutils/ansible/Makefile +++ b/sysutils/ansible/Makefile @@ -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>0:devel/py-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 diff --git a/sysutils/ansible/files/extra-patch-8aac5ae b/sysutils/ansible/files/extra-patch-8aac5ae new file mode 100644 index 000000000000..4d8c5c908887 --- /dev/null +++ b/sysutils/ansible/files/extra-patch-8aac5ae @@ -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 |