git: f685e789535e - main - sysutils/ansible*: Hook version 4 to the build

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Wed, 26 Jan 2022 10:08:57 UTC
The branch main has been updated by 0mp:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f685e789535e24185dc0ba414ae57d0e33e18c9f

commit f685e789535e24185dc0ba414ae57d0e33e18c9f
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-01-26 09:39:07 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-01-26 10:08:45 +0000

    sysutils/ansible*: Hook version 4 to the build
---
 sysutils/Makefile          | 1 +
 sysutils/ansible/Makefile  | 2 +-
 sysutils/ansible4/Makefile | 5 +++--
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index cc5317c87581..9a625f755b56 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -41,6 +41,7 @@
     SUBDIR += android-file-transfer-qt5
     SUBDIR += angrysearch
     SUBDIR += ansible
+    SUBDIR += ansible4
     SUBDIR += ansible-iocage
     SUBDIR += ansible-kld
     SUBDIR += ansible-sshjail
diff --git a/sysutils/ansible/Makefile b/sysutils/ansible/Makefile
index ad95195c5087..07c70a030922 100644
--- a/sysutils/ansible/Makefile
+++ b/sysutils/ansible/Makefile
@@ -30,7 +30,7 @@ NO_ARCH=	yes
 DO_MAKE_TEST=	ansible -m ping
 TEST_TARGET=	localhost
 
-_ANSIBLE_VERSIONS=	1 2 23 24 25 26 27 28
+_ANSIBLE_VERSIONS=	1 2 23 24 25 26 27 28 4
 _ANSIBLE_PACKAGES=	${PYTHON_PKGNAMEPREFIX}ansible
 .for version in ${_ANSIBLE_VERSIONS}
 _ANSIBLE_PACKAGES+=	${PYTHON_PKGNAMEPREFIX}ansible${version}
diff --git a/sysutils/ansible4/Makefile b/sysutils/ansible4/Makefile
index ad95195c5087..8851974ea0ee 100644
--- a/sysutils/ansible4/Makefile
+++ b/sysutils/ansible4/Makefile
@@ -3,6 +3,7 @@ DISTVERSION=	4.10.0
 CATEGORIES=	sysutils python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	4
 
 MAINTAINER=	0mp@FreeBSD.org
 COMMENT=	Radically simple IT automation
@@ -10,7 +11,7 @@ COMMENT=	Radically simple IT automation
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core>0:sysutils/py-ansible-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core211>0:sysutils/py-ansible-core211@${PY_FLAVOR}
 
 USES=		ansible:env cpe python:3.6+ shebangfix
 CPE_VENDOR=	redhat
@@ -30,7 +31,7 @@ NO_ARCH=	yes
 DO_MAKE_TEST=	ansible -m ping
 TEST_TARGET=	localhost
 
-_ANSIBLE_VERSIONS=	1 2 23 24 25 26 27 28
+_ANSIBLE_VERSIONS=	1 2 23 24 25 26 27 28 4
 _ANSIBLE_PACKAGES=	${PYTHON_PKGNAMEPREFIX}ansible
 .for version in ${_ANSIBLE_VERSIONS}
 _ANSIBLE_PACKAGES+=	${PYTHON_PKGNAMEPREFIX}ansible${version}