Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
3fe0aa98
Commit
3fe0aa98
authored
Feb 03, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1974 from jcftang/devel
Integrate upstream changes from Portfile that exists in macports
parents
c1e0f0b4
ebd2ed72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
25 deletions
+41
-25
packaging/macports/Portfile
+41
-25
No files found.
packaging/macports/Portfile
View file @
3fe0aa98
# $Id$
# -*- coding: utf-8
;
mode: tcl
;
tab-width: 4
;
indent-tabs-mode: nil
;
c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 102428 2013-02-02 18:34:49Z blair@macports.org $
PortSystem
1.0
PortSystem 1.0
PortGroup
python27
1.0
PortGroup
python
1.0
name ansible
name ansible
version devel
version devel
categories python
categories sysutils
platforms darwin
supported_archs noarch
supported_archs noarch
license GPL-3
maintainers nomaintainer
description Model-driven configuration management, multi-node deployment, and remote task execution system.
maintainers nomaintainer
long_description Ansible is a radically simple configuration-management, deployment, task-execution, and multinode orchestration framework.
homepage http://www.ansible.cc
homepage http://ansible.cc/
description SSH-based configuration management and deployment system
long_description
\
Ansible is a radically simple model-driven configuration
\
management, multi-node deployment, and remote task execution
\
system. Ansible works over SSH and does not require any software
\
or daemons to be installed on remote nodes. Extension modules can
\
be written in any language and are transferred to managed machines
\
automatically.
license GPL-3+
platforms darwin
fetch.type git
fetch.type git
git.url https://github.com/ansible/ansible.git
git.url https://github.com/ansible/ansible.git
git.branch
${version}
git.branch
${version}
depends_lib-append port:py27-yaml \
python.default_version 27
port:py27-paramiko
\
depends_lib-append port:py$
{
python.version
}
-jinja2
\
port:py27-jinja2
port:py$
{
python.version
}
-paramiko
\
port:py$
{
python.version
}
-yaml
python.link_binaries_suffix
# fireball mode requires py-zmq, py-asn1, py-crypto and py-keyczar
post-patch {
patch
{
reinplace "s|/usr/share/ansible|${prefix}/share/ansible|g" ${worksrcpath}/lib/ansible/constants.py ${worksrcpath}/examples/ansible.cfg
fs-traverse f
${worksrcpath}
{
reinplace "s|/etc/ansible/ansible.cfg|${prefix}/etc/ansible/ansible.cfg|g" ${worksrcpath}/lib/ansible/constants.py ${worksrcpath}/examples/ansible.cfg
if
{[
file
isfile
${f}
]}
{
reinplace "s|/etc/ansible/hosts|${prefix}/etc/ansible/hosts|g" ${worksrcpath}/lib/ansible/constants.py ${worksrcpath}/examples/ansible.cfg
reinplace
"s#/etc/ansible#
${prefix}
/etc/ansible#g"
${f}
reinplace "s|/usr/share/ansible_plugins|${prefix}/${prefix}/share/ansible_plugins|g" ${worksrcpath}/lib/ansible/constants.py ${worksrcpath}/examples/ansible.cfg
reinplace
"s#/usr/share/ansible#
${prefix}
/share/ansible#g"
${f}
}
}
}
}
post-destroot
{
post-destroot
{
# documentation and examples
xinstall -m 644 -W
${worksrcpath}
README.md CHANGELOG.md CONTRIBUTING.md COPYING
\
xinstall -m 644 -W
${worksrcpath}
README.md CHANGELOG.md CONTRIBUTING.md COPYING
\
${destroot}${prefix}
/share/doc/$
{
name
}
${destroot}${prefix}
/share/doc/$
{
name
}
xinstall -m 755 -d
${destroot}${prefix}
/share/doc/examples
xinstall -m 755 -d
${destroot}${prefix}
/share/doc/examples
xinstall -m 755
${worksrcpath}
/examples/ansible.cfg
${destroot}${prefix}
/share/doc/$
{
name
}
/examples
xinstall -m 755
${worksrcpath}
/examples/ansible.cfg
${destroot}${prefix}
/share/doc/$
{
name
}
/examples
xinstall -m 755 ${worksrcpath}/examples/ansible.cfg ${worksrcpath}/examples/hosts ${destroot}${prefix}/share/doc/${name}/examples
xinstall -m 755
${worksrcpath}
/examples/hosts
${destroot}${prefix}
/share/doc/$
{
name
}
/examples
file copy
${worksrcpath}
/examples/playbooks
${destroot}${prefix}
/share/doc/$
{
name
}
/examples/
file copy
${worksrcpath}
/examples/playbooks
${destroot}${prefix}
/share/doc/$
{
name
}
/examples/
# man pages
xinstall -d 644
${destroot}${prefix}
/share/man/man1
xinstall -d 644
${destroot}${prefix}
/share/man/man1
eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man1/*] ${destroot}${prefix}/share/man/man1
eval xinstall -m 755
[
glob
${worksrcpath}
/docs/man/man1/*
.1
]
${destroot}${prefix}
/share/man/man1
# install sample config and hosts file
# install sample config and hosts file
xinstall -m 755 -d
${destroot}${prefix}
/etc/ansible
xinstall -m 755 -d
${destroot}${prefix}
/etc/ansible
xinstall -m 755
${worksrcpath}
/examples/ansible.cfg
${destroot}${prefix}
/etc/ansible/ansible.cfg
xinstall -m 755
${worksrcpath}
/examples/ansible.cfg
${destroot}${prefix}
/etc/ansible/ansible.cfg
xinstall -m 755
${worksrcpath}
/examples/hosts
${destroot}${prefix}
/etc/ansible/hosts
xinstall -m 755
${worksrcpath}
/examples/hosts
${destroot}${prefix}
/etc/ansible/hosts
}
}
python.link_binaries_suffix
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment