summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-09-13 00:01:23 +0300
committerMartin Kosek <mkosek@redhat.com>2011-09-13 11:25:58 +0200
commit136220265324111f77e3eec4b162a5df80623d07 (patch)
treeb0f662fff54e79f0d2553e3865d3f911ce7327c1 /Makefile
parent50a836b44cbeb4b6e31d71522cd7240da1cd7b6f (diff)
downloadfreeipa-136220265324111f77e3eec4b162a5df80623d07.tar.gz
freeipa-136220265324111f77e3eec4b162a5df80623d07.tar.xz
freeipa-136220265324111f77e3eec4b162a5df80623d07.zip
Introduce platform-specific adaptation for services used by FreeIPA.
Refactor FreeIPA code to allow abstracting all calls to external processes and dependencies on modification of system-wide configuration. A platform provider would give its own implementation of those methods and FreeIPA would use it based on what's built in packaging process. https://fedorahosted.org/freeipa/ticket/1605
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6484dbbc9..4977f82fa 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ PRJ_PREFIX=freeipa
RPMBUILD ?= $(PWD)/rpmbuild
TARGET ?= master
+SUPPORTED_PLATFORM=redhat
+
# After updating the version in VERSION you should run the version-update
# target.
@@ -109,6 +111,12 @@ version-update: release-update
ipa-client/ipa-client.spec.in > ipa-client/ipa-client.spec
sed -e s/__VERSION__/$(IPA_VERSION)/ ipa-client/version.m4.in \
> ipa-client/version.m4
+
+ if [ "$(SUPPORTED_PLATFORM)" != "" ]; then \
+ sed -e s/SUPPORTED_PLATFORM/$(SUPPORTED_PLATFORM)/ ipapython/services.py.in \
+ > ipapython/services.py; \
+ fi
+
if [ "$(SKIP_API_VERSION_CHECK)" != "yes" ]; then \
./makeapi --validate; \
fi