mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
7afa34ae8a
* Convert README from Markdown to ReStructured Text and use as longdesc Discussion in #13758 led to deciding to switch README to rst and having setup.py consume it as the long_description. * Fix long string in setup.py for pep8 compliance * Open README.rst as read-only * Update usages of root README.md to README.rst Unsure about the file ./packaging/debian/docs as it (only) contains the text README.md. I believe it's referencing ./packaging/debian/README.md but maybe someone who knows debian packaging could review it? * Pick up fixes that had been merged into README.md after the initial conversion to rst
56 lines
1.8 KiB
Bash
56 lines
1.8 KiB
Bash
# Maintainer: Michel Blanc <mblanc@erasme.org>
|
|
# Contributor: Scott Hansen https://github.com/firecat53
|
|
# Contributor: Buce <dmbuce@gmail.com>
|
|
# Contributor: Bartłomiej Piotrowski <b@bpiotrowski.pl>
|
|
# Contributor: cgtx <carl@carlgeorge.us>
|
|
# Contributor: Daniel Wallace <danielwallace@gtmanfred.com>
|
|
# Contributor: John Gosset <john.gosset@gmail.com>
|
|
# Contributor: Joshua Lund <josh@joshlund.com>
|
|
# Contributor: Matt Klich <matt.klich@readytalk.com>
|
|
# Contributor: Michael DeHaan <michael@ansible.com>
|
|
|
|
pkgname=ansible-git
|
|
pkgver=1.6.0.1835.ga1809a3
|
|
pkgrel=1
|
|
pkgdesc='Ansible IT Automation'
|
|
arch=('any')
|
|
url='https://www.ansible.com'
|
|
license=('GPL3')
|
|
depends=('python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml')
|
|
makedepends=('git' 'docutils' 'fakeroot')
|
|
optdepends=('python2-pyasn1: needed for accelerated mode'
|
|
'python2-crypto: needed for accelerated mode'
|
|
'python2-keyczar: needed for accelerated mode')
|
|
conflicts=('ansible')
|
|
provides=('ansible')
|
|
backup=('etc/ansible/ansible.cfg')
|
|
source=($pkgname::git+https://github.com/ansible/ansible.git)
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --long | sed 's/^v//;s/-/./g'
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
make PYTHON=python2
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
|
|
install -dm755 $pkgdir/usr/share/ansible
|
|
cp -dpr --no-preserve=ownership ./examples "$pkgdir/usr/share/ansible"
|
|
|
|
python2 setup.py install -O1 --root="$pkgdir"
|
|
|
|
install -Dm644 examples/ansible.cfg $pkgdir/etc/ansible/ansible.cfg
|
|
|
|
install -Dm644 README.rst $pkgdir/usr/share/doc/ansible/README.rst
|
|
install -Dm644 COPYING $pkgdir/usr/share/doc/ansible/COPYING
|
|
install -Dm644 CHANGELOG.md $pkgdir/usr/share/doc/ansible/CHANGELOG.md
|
|
|
|
install -dm755 ${pkgdir}/usr/share/man/man1
|
|
cp -dpr --no-preserve=ownership docs/man/man1/*.1 "$pkgdir/usr/share/man/man1"
|
|
}
|