summaryrefslogtreecommitdiffstats
path: root/freeipa.spec.in
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-12-05 10:50:05 +0100
committerMartin Kosek <mkosek@redhat.com>2012-12-05 13:30:31 +0100
commit3896bf370a142eb95a4341e381ee7b1ff0f0c3e2 (patch)
treef6f803315b928cd73d9c2115a93ee0f593d252f7 /freeipa.spec.in
parentc6efd4c7aaf6961142b6fae5d30dd9691a493447 (diff)
downloadfreeipa-3896bf370a142eb95a4341e381ee7b1ff0f0c3e2.tar.gz
freeipa-3896bf370a142eb95a4341e381ee7b1ff0f0c3e2.tar.xz
freeipa-3896bf370a142eb95a4341e381ee7b1ff0f0c3e2.zip
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
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r--freeipa.spec.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index 870aaa62c..8a095db41 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}