Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2017 15:51:13 +0000 (UTC)
From:      Nikolai Lifanov <lifanov@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438364 - in head: . sysutils/ansible sysutils/ansible/files
Message-ID:  <201704121551.v3CFpDNx006328@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lifanov
Date: Wed Apr 12 15:51:13 2017
New Revision: 438364
URL: https://svnweb.freebsd.org/changeset/ports/438364

Log:
  update sysutils/ansible to 2.3.0.0
  
  This is a major release!
  
  https://raw.githubusercontent.com/ansible/ansible/v2.3.0.0-1/CHANGELOG.md
  
  o stop "fixing" default interpreter of /usr/bin/python
  o remove NETADDR option and depend on py-netaddr unconditionally
  
  Differential Revision:	https://reviews.freebsd.org/D10165

Modified:
  head/UPDATING
  head/sysutils/ansible/Makefile
  head/sysutils/ansible/distinfo
  head/sysutils/ansible/files/pkg-message.in

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Wed Apr 12 15:51:08 2017	(r438363)
+++ head/UPDATING	Wed Apr 12 15:51:13 2017	(r438364)
@@ -5,6 +5,20 @@ they are unavoidable.
 You should get into the habit of checking this file for changes each time
 you update your ports collection, before attempting any port upgrades.
 
+20170412:
+  AFFECTS: users of sysutils/ansible
+  AUTHOR: lifanov@FreeBSD.org
+
+  The default value for ansible_python_interpreter has been changed
+  to match the upstream /usr/bin/python. If managing FreeBSD systems,
+  adjust the hosts database to explicitly set a valid python interpreter:
+
+  [freebsd]
+  host1
+
+  [freebsd_vars]
+  ansible_python_interpreter=/usr/local/bin/python2.7
+
 20170411:
   AFFECTS: users of security/libressl
   AUTHOR: brnrd@FreeBSD.org

Modified: head/sysutils/ansible/Makefile
==============================================================================
--- head/sysutils/ansible/Makefile	Wed Apr 12 15:51:08 2017	(r438363)
+++ head/sysutils/ansible/Makefile	Wed Apr 12 15:51:13 2017	(r438364)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	ansible
-PORTVERSION?=	2.2.2.0
+PORTVERSION?=	2.3.0.0
 PORTREVISION?=	0
 CATEGORIES=	sysutils python
 MASTER_SITES=	http://releases.ansible.com/ansible/
@@ -16,21 +16,19 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 RUN_DEPENDS?=	${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml \
 		${PYTHON_PKGNAMEPREFIX}pycrypto>0:security/py-pycrypto \
 		${PYTHON_PKGNAMEPREFIX}paramiko>0:security/py-paramiko \
-		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2
+		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2 \
+		${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr
 
 NO_ARCH=	yes
-USES?=		cpe python shebangfix
+USES?=		cpe python
 USE_PYTHON=	autoplist distutils
-python_CMD=	${LOCALBASE}/bin/python
-SHEBANG_FILES+=	lib/ansible/modules/core/*/*.py \
-		lib/ansible/modules/core/*/*/*.py \
-		lib/ansible/modules/extras/*/*.py \
-		lib/ansible/modules/extras/*/*/*.py
 CPE_VENDOR=	ansibleworks
 
 SUB_FILES=	pkg-message
+SUB_LIST+=	PYTHON_CMD=${PYTHON_CMD}
 
-PLIST_FILES+=	man/man1/ansible-doc.1.gz \
+PLIST_FILES+=	man/man1/ansible-console.1.gz \
+		man/man1/ansible-doc.1.gz \
 		man/man1/ansible-galaxy.1.gz \
 		man/man1/ansible-playbook.1.gz \
 		man/man1/ansible-pull.1.gz \
@@ -39,11 +37,7 @@ PLIST_FILES+=	man/man1/ansible-doc.1.gz 
 
 PORTEXAMPLES=	ansible.cfg hosts
 
-OPTIONS_DEFINE=	DOCS EXAMPLES NETADDR
-OPTIONS_DEFAULT=NETADDR
-
-NETADDR_DESC=	Dependency on py-netaddr for ipaddr() filter
-NETADDR_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 post-patch:
 .for f in bin/ansible docs/man/man1/* examples/* lib/ansible/*.py \

Modified: head/sysutils/ansible/distinfo
==============================================================================
--- head/sysutils/ansible/distinfo	Wed Apr 12 15:51:08 2017	(r438363)
+++ head/sysutils/ansible/distinfo	Wed Apr 12 15:51:13 2017	(r438364)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1490707549
-SHA256 (ansible-2.2.2.0.tar.gz) = efd9c574168ac1916dd57f7c88d4dd2e13ef816af0ee49a8d34c77567886e4c2
-SIZE (ansible-2.2.2.0.tar.gz) = 2510182
+TIMESTAMP = 1492010911
+SHA256 (ansible-2.3.0.0.tar.gz) = 299f3907cd566a20e163942fa82b6afc86ef89c2726ba503b90c1a651e82a458
+SIZE (ansible-2.3.0.0.tar.gz) = 4251730

Modified: head/sysutils/ansible/files/pkg-message.in
==============================================================================
--- head/sysutils/ansible/files/pkg-message.in	Wed Apr 12 15:51:08 2017	(r438363)
+++ head/sysutils/ansible/files/pkg-message.in	Wed Apr 12 15:51:13 2017	(r438364)
@@ -8,22 +8,15 @@ host database and a sample configuration
   %%EXAMPLESDIR%%/ansible.cfg
 
 To use Ansible to control FreeBSD hosts, you need to
-install the lang/python package on remote machines.
-
-To use Ansible to control systems other than FreeBSD,
-set the Python interpreter in the host database for
-that system. Example:
+install the lang/python package on remote machines
+and set up a path to the python interpreter. Example:
 
   [freebsd]
   host1
   host2
 
-  [centos]
-  host3
-  host4
-
-  [centos:vars]
-  ansible_python_interpreter=/usr/bin/python
+  [freebsd:vars]
+  ansible_python_interpreter=%%PYTHON_CMD%%
 
 Python notes:
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704121551.v3CFpDNx006328>