View | Details | Raw Unified | Return to bug 206174
Collapse All | Expand All

(-)UPDATING (+12 lines)
Lines 5-10 Link Here
5
You should get into the habit of checking this file for changes each time
5
You should get into the habit of checking this file for changes each time
6
you update your ports collection, before attempting any port upgrades.
6
you update your ports collection, before attempting any port upgrades.
7
7
8
201601XX:
9
  AFFECTS: users of sysutils/ansible
10
  AUTHOR: lifanov@mail.lifanov.com
11
12
  Ansible 2.0.0 introduces a number of incompatible configuration changes.
13
  Please read changelog and migrate current configuration:
14
15
  https://raw.githubusercontent.com/ansible/ansible/v2.0.0.0-1/CHANGELOG.md
16
17
  Ansible 1.9.* will be provided as sysutils/ansible1 until the next update
18
  of 2.0 branch.
19
8
20160111:
20
20160111:
9
  AFFECTS: users of security/easy-rsa
21
  AFFECTS: users of security/easy-rsa
10
  AUTHOR: mandree@FreeBSD.org
22
  AUTHOR: mandree@FreeBSD.org
(-)sysutils/Makefile (+1 lines)
Lines 31-36 Link Here
31
    SUBDIR += anacron
31
    SUBDIR += anacron
32
    SUBDIR += and
32
    SUBDIR += and
33
    SUBDIR += ansible
33
    SUBDIR += ansible
34
    SUBDIR += ansible1
34
    SUBDIR += apachetop
35
    SUBDIR += apachetop
35
    SUBDIR += apcpwr
36
    SUBDIR += apcpwr
36
    SUBDIR += apcupsd
37
    SUBDIR += apcupsd
(-)sysutils/ansible/Makefile (-13 / +19 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	ansible
4
PORTNAME=	ansible
5
PORTVERSION=	1.9.4
5
PORTVERSION?=	2.0.0.0
6
PORTREVISION=	1
7
CATEGORIES=	sysutils python
6
CATEGORIES=	sysutils python
8
MASTER_SITES=	http://releases.ansible.com/ansible/
7
MASTER_SITES=	http://releases.ansible.com/ansible/
9
8
Lines 13-31 Link Here
13
LICENSE=	GPLv3+
12
LICENSE=	GPLv3+
14
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
15
14
15
BUILD_DEPENDS+=	a2x:${PORTSDIR}/textproc/asciidoc \
16
		xsltproc:${PORTSDIR}/textproc/libxslt \
17
		docbook-xml>0:${PORTSDIR}/textproc/docbook-xml \
18
		${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
19
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
20
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
17
		${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto \
21
		${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto \
18
		${PYTHON_PKGNAMEPREFIX}paramiko>0:${PORTSDIR}/security/py-paramiko \
22
		${PYTHON_PKGNAMEPREFIX}paramiko>0:${PORTSDIR}/security/py-paramiko \
19
		${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2
23
		${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2
20
24
21
OPTIONS_DEFINE=	EXAMPLES
25
OPTIONS_DEFINE=	DOCS EXAMPLES
22
26
23
NO_ARCH=	yes
27
NO_ARCH=	yes
24
USES=		cpe python:2 shebangfix
28
USES=		cpe python:2 shebangfix
25
USE_PYTHON=	autoplist distutils
29
USE_PYTHON=	autoplist distutils
26
python_CMD=	${LOCALBASE}/bin/python
30
python_CMD=	${LOCALBASE}/bin/python
27
SHEBANG_FILES=	lib/ansible/runner/action_plugins/synchronize.py \
31
SHEBANG_FILES+=	lib/ansible/modules/core/*/*.py \
28
		lib/ansible/modules/core/*/*.py \
29
		lib/ansible/modules/core/*/*/*.py \
32
		lib/ansible/modules/core/*/*/*.py \
30
		lib/ansible/modules/extras/*/*.py \
33
		lib/ansible/modules/extras/*/*.py \
31
		lib/ansible/modules/extras/*/*/*.py
34
		lib/ansible/modules/extras/*/*/*.py
Lines 43-62 Link Here
43
PORTEXAMPLES=	ansible.cfg hosts
46
PORTEXAMPLES=	ansible.cfg hosts
44
47
45
post-patch:
48
post-patch:
46
.for f in bin/ansible-galaxy docs/man/man1/ansible-galaxy.1 \
49
.for f in bin/* docs/man/man1/* examples/* lib/ansible/*.py \
47
	docs/man/man1/ansible-playbook.1 docs/man/man1/ansible.1 \
50
	lib/ansible/*/*.py lib/ansible/*/*/*.py lib/ansible/*/*/*/*.py
48
	examples/ansible.cfg examples/hosts lib/ansible/constants.py \
49
	lib/ansible/module_utils/urls.py lib/ansible/modules/core/system/setup.py \
50
	lib/ansible/playbook/__init__.py lib/ansible/runner/__init__.py
51
	@${REINPLACE_CMD} -e 's|/etc/ansible|${ETCDIR}|' ${WRKSRC}/${f}
51
	@${REINPLACE_CMD} -e 's|/etc/ansible|${ETCDIR}|' ${WRKSRC}/${f}
52
.endfor
52
.endfor
53
53
54
.for f in docs/man/man1/ansible-playbook.1 docs/man/man1/ansible.1 \
54
.for f in docs/man/man1/* examples/* lib/ansible/*.py lib/ansible/*/*.py
55
	examples/ansible.cfg lib/ansible/constants.py \
56
	lib/ansible/playbook/__init__.py lib/ansible/runner/__init__.py \
57
	@${REINPLACE_CMD} -e 's|/usr/share/ansible|${DATADIR}|' ${WRKSRC}/${f}
55
	@${REINPLACE_CMD} -e 's|/usr/share/ansible|${DATADIR}|' ${WRKSRC}/${f}
58
.endfor
56
.endfor
59
57
58
post-build:
59
.for f in ansible-doc ansible-galaxy ansible-playbook ansible-pull \
60
	ansible-vault ansible
61
	${LOCALBASE}/bin/a2x -d manpage -f manpage -L \
62
		${WRKSRC}/docs/man/man1/${f}.1.asciidoc.in
63
	${RM} ${WRKSRC}/docs/man/man1/${f}.1.asciidoc.in
64
.endfor
65
60
post-install:
66
post-install:
61
	@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1
67
	@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1
62
	${INSTALL_MAN} ${WRKSRC}/docs/man/man1/*.1 \
68
	${INSTALL_MAN} ${WRKSRC}/docs/man/man1/*.1 \
(-)sysutils/ansible/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (ansible-1.9.4.tar.gz) = 972c2face49f1577bd0ff7989440bfe2820e66fb10d7579915cc536bccfa6fe3
1
SHA256 (ansible-2.0.0.0.tar.gz) = 63a9386ae96bd6ae3e87b9e9fecef3f3f919f333ed8db22292e37df7643cb3f6
2
SIZE (ansible-1.9.4.tar.gz) = 937120
2
SIZE (ansible-2.0.0.0.tar.gz) = 1512605
(-)sysutils/ansible1/Makefile (+14 lines)
Line 0 Link Here
1
# Created by: Nikolai Lifanov <lifanov@mail.lifanov.com>
2
# $FreeBSD$
3
4
PKGNAMESUFFIX=	1
5
PORTVERSION=	1.9.4
6
7
CONFLICTS=	ansible-*
8
9
MASTERDIR=	${.CURDIR}/../ansible
10
DISTINFO_FILE=	${.CURDIR}/distinfo
11
12
SHEBANG_FILES=	lib/ansible/runner/action_plugins/synchronize.py
13
14
.include "${MASTERDIR}/Makefile"
(-)sysutils/ansible1/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (ansible-1.9.4.tar.gz) = 972c2face49f1577bd0ff7989440bfe2820e66fb10d7579915cc536bccfa6fe3
2
SIZE (ansible-1.9.4.tar.gz) = 937120

Return to bug 206174