summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-server.spec.in
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-01-30 09:58:15 -0500
committerRob Crittenden <rcritten@redhat.com>2008-01-30 09:58:15 -0500
commitd73dd8b427449be8fe40f394542591aeea15cc8e (patch)
tree53e5fa771eec9fac11a8f88db5582da0d6fafffa /ipa-server/ipa-server.spec.in
parentaad14c5d5472045bced425c94a4a61653e7fd047 (diff)
downloadfreeipa-d73dd8b427449be8fe40f394542591aeea15cc8e.tar.gz
freeipa-d73dd8b427449be8fe40f394542591aeea15cc8e.tar.xz
freeipa-d73dd8b427449be8fe40f394542591aeea15cc8e.zip
Put user-modifiable files into /etc/ipa/html so they can be marked as
config(noreplace). Resolves 430004
Diffstat (limited to 'ipa-server/ipa-server.spec.in')
-rw-r--r--ipa-server/ipa-server.spec.in34
1 files changed, 32 insertions, 2 deletions
diff --git a/ipa-server/ipa-server.spec.in b/ipa-server/ipa-server.spec.in
index d77e98a10..7c117557e 100644
--- a/ipa-server/ipa-server.spec.in
+++ b/ipa-server/ipa-server.spec.in
@@ -1,6 +1,6 @@
Name: ipa-server
Version: VERSION
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: IPA authentication server
Group: System Environment/Base
@@ -67,6 +67,16 @@ rm %{buildroot}/%{plugin_dir}/libipa_pwd_extop.la
rm %{buildroot}/%{plugin_dir}/libipa-memberof-plugin.la
rm %{buildroot}/%{plugin_dir}/libipa-dna-plugin.la
+# Some user-modifiable HTML files are provided. Move these to /etc
+# and link back.
+mkdir -p %{buildroot}/%{_sysconfdir}/ipa/html
+mv %{buildroot}/%{_usr}/share/ipa/html/ssbrowser.html %{buildroot}/%{_sysconfdir}/ipa/html
+mv %{buildroot}/%{_usr}/share/ipa/html/unauthorized.html %{buildroot}/%{_sysconfdir}/ipa/html
+ln -s ../../../..%{_sysconfdir}/ipa/html/ssbrowser.html \
+ %{buildroot}%{_usr}/share/ipa/html/ssbrowser.html
+ln -s ../../../..%{_sysconfdir}/ipa/html/unauthorized.html \
+ %{buildroot}%{_usr}/share/ipa/html/unauthorized.html
+
%clean
rm -rf %{buildroot}
@@ -103,7 +113,23 @@ fi
%attr(755,root,root) %{_initrddir}/ipa_webgui
%dir %{_usr}/share/ipa
-%{_usr}/share/ipa/*
+%{_usr}/share/ipa/*.ldif
+%{_usr}/share/ipa/*.template
+%dir %{_usr}/share/ipa/html
+%{_usr}/share/ipa/html/ssbrowser.html
+%{_usr}/share/ipa/html/unauthorized.html
+%dir %{_sysconfdir}/ipa
+%dir %{_sysconfdir}/ipa/html
+%config(noreplace) %{_sysconfdir}/ipa/html/ssbrowser.html
+%config(noreplace) %{_sysconfdir}/ipa/html/unauthorized.html
+%{_usr}/share/ipa/ipa_webgui.cfg
+%{_usr}/share/ipa/ipa.conf
+%dir %{_usr}/share/ipa/ipagui
+%{_usr}/share/ipa/ipagui/*
+%dir %{_usr}/share/ipa/ipa_gui.egg-info
+%{_usr}/share/ipa/ipa_gui.egg-info/*
+%dir %{_usr}/share/ipa/ipaserver
+%dir %{_usr}/share/ipa/ipaserver/*
%dir %{python_sitelib}/ipaserver
%{python_sitelib}/ipaserver/*.py*
@@ -117,6 +143,10 @@ fi
%attr(700,apache,apache) %dir %{_localstatedir}/cache/ipa/sessions
%changelog
+* Tue Jan 29 2008 Rob Crittenden <rcritten@redhat.com> 0.6.0-5
+- Put user-modifiable files into /etc/ipa so they can be marked as
+ config(noreplace).
+
* Thu Jan 24 2008 Rob Crittenden <rcritten@redhat.com> = 0.6.0-4
- Use new name of pyasn1, python-pyasn1, in Requires