From 8a561d6cd743af9ad911aa0adae76f98d7b7ac69 Mon Sep 17 00:00:00 2001 From: Jimmy Tang Date: Tue, 26 Feb 2013 21:13:04 +0000 Subject: [PATCH] Adopt best practices with distributing portfiles Reorganised packaging and added some notes for less experienced users on how to get the development version of ansible installed using macports. --- packaging/macports/.gitignore | 2 ++ packaging/macports/README.md | 26 +++++++++++++++++++ .../macports/{ => sysutils/ansible}/Portfile | 0 3 files changed, 28 insertions(+) create mode 100644 packaging/macports/.gitignore rename packaging/macports/{ => sysutils/ansible}/Portfile (100%) diff --git a/packaging/macports/.gitignore b/packaging/macports/.gitignore new file mode 100644 index 00000000000..2af97a6f044 --- /dev/null +++ b/packaging/macports/.gitignore @@ -0,0 +1,2 @@ +PortIndex +PortIndex.quick diff --git a/packaging/macports/README.md b/packaging/macports/README.md index 118e4148815..1ce1107906e 100644 --- a/packaging/macports/README.md +++ b/packaging/macports/README.md @@ -2,6 +2,8 @@ This portfile installs ansible from the git repository, it will install the latest and greatest version of ansible. This portfile does not install the required dependancies to run in fireball mode. +## Installing the stable version of ansible via macports + If you wish to run a stable version of ansible please do the following First update your macports repo to the latest versions @@ -11,3 +13,27 @@ First update your macports repo to the latest versions Then install ansible $ sudo port install ansible + +## Installing the devel version of ansible via macports + +To use this Portfile to install the development version of ansible one should +follow the instructions at + + +The basic idea is to add the _ansible/packaging/macports_ directory to your +_/opt/local/etc/macports/sources.conf_ file. You should have something similar +to this at the end of the file + + file:///Users/jtang/develop/ansible/packaging/macports + rsync://rsync.macports.org/release/tarballs/ports.tar [default] + +In the _ansible/packaging/macports_ directory, do this + + $ portindex + +Once the index is created the _Portfile_ will override the one in the upstream +macports repository. + +Installing newer development versions should involve an uninstall, clean, +install process or else the Portfile will need its version number/epoch +bumped. diff --git a/packaging/macports/Portfile b/packaging/macports/sysutils/ansible/Portfile similarity index 100% rename from packaging/macports/Portfile rename to packaging/macports/sysutils/ansible/Portfile