From 3896bf370a142eb95a4341e381ee7b1ff0f0c3e2 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 5 Dec 2012 10:50:05 +0100 Subject: Change network configuration file Fedora+systemd changed deprecated /etc/sysconfig/network which was used by IPA to store static hostname for the IPA machine. See https://bugzilla.redhat.com/show_bug.cgi?id=881785 for details. Change Fedora platform files to store the hostname to /etc/hostname instead. https://fedorahosted.org/freeipa/ticket/3279 --- freeipa.spec.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'freeipa.spec.in') diff --git a/freeipa.spec.in b/freeipa.spec.in index 870aaa62..8a095db4 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -280,8 +280,13 @@ package. %build export CFLAGS="$CFLAGS %{optflags}" export CPPFLAGS="$CPPFLAGS %{optflags}" -# use fedora16 platform which introduced systemd support +%if 0%{?fedora} >= 18 +# use fedora18 platform which is based on fedora16 platform with systemd +# support + fedora18 changes +export SUPPORTED_PLATFORM=fedora18 +%else export SUPPORTED_PLATFORM=fedora16 +%endif # Force re-generate of platform support rm -f ipapython/services.py make version-update @@ -302,7 +307,13 @@ make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} client %install rm -rf %{buildroot} +%if 0%{?fedora} >= 18 +# use fedora18 platform which is based on fedora16 platform with systemd +# support + fedora18 changes +export SUPPORTED_PLATFORM=fedora18 +%else export SUPPORTED_PLATFORM=fedora16 +%endif # Force re-generate of platform support rm -f ipapython/services.py %if ! %{ONLY_CLIENT} -- cgit