summaryrefslogtreecommitdiffstats
path: root/freeipa.spec.in
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-06-08 08:31:37 +0200
committerRob Crittenden <rcritten@redhat.com>2012-06-10 21:23:10 -0400
commitc856fb60737612781fab30760bceeb8bbf6312d9 (patch)
treebea9c1f3240e876ac28eeb5db3eea2c5b9a036b3 /freeipa.spec.in
parent4507dcda58bbe663597c43672f91af7225e2a9b4 (diff)
downloadfreeipa-c856fb60737612781fab30760bceeb8bbf6312d9.tar.gz
freeipa-c856fb60737612781fab30760bceeb8bbf6312d9.tar.xz
freeipa-c856fb60737612781fab30760bceeb8bbf6312d9.zip
Add sysupgrade state file
When IPA package is being updated, some of the configuration files are also updated. Sometimes it may be useful to store upgrade meta information for next package upgrades. For example an information that some config file was already updated and we don't want to update it again if user purposedly reverted the change. This patch adds a new StateFile in /var/lib/ipa/sysupgrade which is capable of holding this information. New sysupgrade.py module was created to provide simple API to access the upgrade state information.
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r--freeipa.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index 987ba9082..1ab2db2c2 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -357,6 +357,7 @@ rm %{buildroot}/%{_libdir}/samba/pdb/ipasam.la
# and link back.
mkdir -p %{buildroot}/%{_sysconfdir}/ipa/html
mkdir -p %{buildroot}/%{_localstatedir}/cache/ipa/sysrestore
+mkdir -p %{buildroot}/%{_localstatedir}/cache/ipa/sysupgrade
mkdir %{buildroot}%{_usr}/share/ipa/html/
ln -s ../../../..%{_sysconfdir}/ipa/html/ssbrowser.html \
%{buildroot}%{_usr}/share/ipa/html/ssbrowser.html
@@ -620,6 +621,7 @@ fi
%attr(755,root,root) %{plugin_dir}/libipa_cldap.so
%dir %{_localstatedir}/lib/ipa
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/sysrestore
+%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/sysupgrade
%dir %{_localstatedir}/cache/ipa
%attr(700,apache,apache) %dir %{_localstatedir}/cache/ipa/sessions
%attr(755,root,root) %{_libdir}/krb5/plugins/kdb/ipadb.so
@@ -701,6 +703,9 @@ fi
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/ca.crt
%changelog
+* Fri Jun 8 2012 Martin Kosek <mkosek@redhat.com> - 2.99.0-32
+- Add directory /var/lib/ipa/sysupgrade for package upgrade metadata
+
* Mon Jun 4 2012 Alexander Bokovoy <abokovoy@redhat.com> - 2.99.0-31
- Add python-crypto to build dependencies for AD server-side code