Projects
Kolab:3.4
roundcubemail-plugins-kolab
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 74
View file
roundcubemail-plugins-kolab.spec
Changed
@@ -930,15 +930,27 @@ ) >> plugins.files ( - echo "%post -n roundcubemail-plugin-$(basename $plugin)" - echo "if [ -f \"%%{php_inidir}/apc.ini\" ]; then" - echo " if [ ! -z \"\$(grep ^apc.enabled=1 %%{php_inidir}/apc.ini)\" ]; then" + echo "%pre -n roundcubemail-plugin-$(basename $plugin)" + echo "if [ ! -f \"%%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted\" ]; then" + echo " %%{__rm} -f \"%%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted\"" + echo "fi" + echo "" + ) >> plugins.pre + + ( + echo "%posttrans -n roundcubemail-plugin-$(basename $plugin)" + echo "if [ ! -f \"%%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted\" ]; then" + echo " if [ -f \"%%{php_inidir}/apc.ini\" ]; then" + echo " if [ ! -z \"\$(grep ^apc.enabled=1 %%{php_inidir}/apc.ini)\" ]; then" echo "%if 0%%{?with_systemd}" - echo " /bin/systemctl condrestart %%{httpd_name}.service" + echo " /bin/systemctl condrestart %%{httpd_name}.service" echo "%else" - echo " /sbin/service %%{httpd_name} condrestart" + echo " /sbin/service %%{httpd_name} condrestart" echo "%endif" + echo " fi" echo " fi" + echo " %%{__mkdir_p} %%{_localstatedir}/lib/rpm-state/roundcubemail/" + echo " touch %%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" echo "fi" echo "" if [ ! -z "$(find ${plugin} -type d -name \"SQL\")" ]; then @@ -1317,6 +1329,9 @@ done done +# Provide the rpm state directory +%{__mkdir_p} %{buildroot}/%{_localstatedir}/lib/rpm-state/roundcubemail/ + # Install the logo %{__mkdir_p} ${asset_path}/skins/kolab/images/ %{__install} -pm 644 %{SOURCE10} ${asset_path}/skins/kolab/images/kolab_logo.png @@ -1328,235 +1343,424 @@ -e '/^(%dir )*\/var\//d' \ *.files -%post -n roundcubemail-plugin-calendar -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%pre -n roundcubemail-plugin-calendar +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_activesync +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_addressbook +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_auth +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_config +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_delegation +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_files +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_folders +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_notes +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_tags +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-kolab_zpush +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-ldap_authentication +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-libcalendaring +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-libkolab +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-logon_page +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-odfviewer +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-owncloud +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-pdfviewer +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-piwik_analytics +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-tasklist +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%pre -n roundcubemail-plugin-tinymce_config +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + %{__rm} -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" +fi + +%posttrans -n roundcubemail-plugin-calendar +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + if [ -f "%{php_inidir}/apc.ini" ]; then + if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then %if 0%{?with_systemd} - /bin/systemctl condrestart %{httpd_name}.service + /bin/systemctl condrestart %{httpd_name}.service %else - /sbin/service %{httpd_name} condrestart + /sbin/service %{httpd_name} condrestart %endif + fi fi + %{__mkdir_p} %{_localstatedir}/lib/rpm-state/roundcubemail/ + touch %{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted fi -%post -n roundcubemail-plugin-kolab_activesync -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans -n roundcubemail-plugin-kolab_activesync +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + if [ -f "%{php_inidir}/apc.ini" ]; then + if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then %if 0%{?with_systemd} - /bin/systemctl condrestart %{httpd_name}.service + /bin/systemctl condrestart %{httpd_name}.service %else - /sbin/service %{httpd_name} condrestart + /sbin/service %{httpd_name} condrestart %endif + fi fi + %{__mkdir_p} %{_localstatedir}/lib/rpm-state/roundcubemail/ + touch %{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted fi -%post -n roundcubemail-plugin-kolab_addressbook -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans -n roundcubemail-plugin-kolab_addressbook +if [ ! -f "%{_localstatedir}/lib/rpm-state/roundcubemail/httpd.restarted" ]; then + if [ -f "%{php_inidir}/apc.ini" ]; then + if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then %if 0%{?with_systemd}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.