Merge pull request #15031 from evgeni/modern-debian

prepare packaging for newer Debian/Ubuntu releases
pull/15018/merge
Brian Coca 9 years ago
commit 87e16c2263

@ -4,11 +4,16 @@ Ansible Debian Package
To create an Ansible DEB package: To create an Ansible DEB package:
sudo apt-get install python-paramiko python-yaml python-jinja2 python-httplib2 python-setuptools python-six sshpass sudo apt-get install python-paramiko python-yaml python-jinja2 python-httplib2 python-setuptools python-six sshpass
sudo apt-get install cdbs debhelper dpkg-dev git-core reprepro python-support fakeroot asciidoc devscripts docbook-xml xsltproc sudo apt-get install cdbs debhelper dpkg-dev git-core reprepro fakeroot asciidoc devscripts docbook-xml xsltproc libxml2-utils
sudo apt-get install dh-python
git clone git://github.com/ansible/ansible.git git clone git://github.com/ansible/ansible.git
cd ansible cd ansible
make deb make deb
On older releases that do not have `dh-python` (like Ubuntu 12.04), install `python-support` instead:
sudo apt-get install python-support
The debian package file will be placed in the `../` directory. This can then be added to an APT repository or installed with `dpkg -i <package-file>`. The debian package file will be placed in the `../` directory. This can then be added to an APT repository or installed with `dpkg -i <package-file>`.
Note that `dpkg -i` does not resolve dependencies. Note that `dpkg -i` does not resolve dependencies.
@ -17,3 +22,7 @@ To install the Ansible DEB package and resolve dependencies:
sudo dpkg -i <package-file> sudo dpkg -i <package-file>
sudo apt-get -fy install sudo apt-get -fy install
Or, if you are running Debian Stretch (or later) or Ubuntu Xenial (or later):
sudo apt install <package-file>

@ -3,12 +3,12 @@ Section: admin
Priority: optional Priority: optional
Standards-Version: 3.9.3 Standards-Version: 3.9.3
Maintainer: Ansible, Inc. <support@ansible.com> Maintainer: Ansible, Inc. <support@ansible.com>
Build-Depends: cdbs, debhelper (>= 5.0.0), asciidoc, python, python-support, python-setuptools Build-Depends: cdbs, debhelper (>= 5.0.0), asciidoc, python, dh-python | python-support, python-setuptools
Homepage: http://ansible.github.com/ Homepage: http://ansible.github.com/
Package: ansible Package: ansible
Architecture: all Architecture: all
Depends: python, python-support (>= 0.90), python-jinja2, python-yaml, python-paramiko, python-httplib2, python-six, python-crypto (>= 2.6), python-setuptools, sshpass, ${misc:Depends} Depends: python-jinja2, python-yaml, python-paramiko, python-httplib2, python-six, python-crypto (>= 2.6), python-setuptools, sshpass, ${misc:Depends}, ${python:Depends}
Description: A radically simple IT automation platform Description: A radically simple IT automation platform
A radically simple IT automation platform that makes your applications and A radically simple IT automation platform that makes your applications and
systems easier to deploy. Avoid writing scripts or custom code to deploy and systems easier to deploy. Avoid writing scripts or custom code to deploy and

@ -1,6 +1,10 @@
#!/usr/bin/make -f #!/usr/bin/make -f
# -- makefile -- # -- makefile --
DEB_PYTHON2_MODULE_PACKAGES=ansible
ifneq ($(shell dpkg-query -f '$${Version}' -W python-support 2>/dev/null),)
DEB_PYTHON_SYSTEM=pysupport
endif
include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_SYSTEM = pysupport
include /usr/share/cdbs/1/class/python-distutils.mk include /usr/share/cdbs/1/class/python-distutils.mk

Loading…
Cancel
Save