Projects
Kolab:3.4
roundcubemail
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 33
View file
roundcubemail.spec
Changed
@@ -1382,15 +1382,27 @@ ) >> plugins.files ( - echo "%post 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 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 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 @@ -1949,6 +1961,9 @@ done done +# Provide the rpm state directory +%{__mkdir_p} %{buildroot}/%{_localstatedir}/lib/rpm-state/roundcubemail/ + %{__sed} -r -i \ -e 's|%{buildroot}||g' \ -e '/^%dir\s*$/d' \ @@ -1964,7 +1979,7 @@ %clean %{__rm} -rf %{buildroot} -%post core +%posttrans core # replace default des string in config file for better security function makedesstr () { chars=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A @@ -1984,14 +1999,18 @@ %{__sed} -i -r -e "s/.*(\s*define\(\s*'RCMAIL_VERSION'\s*,\s*').*('\);)/\1%{version}-%{release}\2/g" \ %{datadir}/program/include/iniset.php || : -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "`grep ^apc.enabled=1 %{php_inidir}/apc.ini`" ]; then +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 /usr/share/roundcubemail/bin/updatedb.sh \ @@ -2001,356 +2020,484 @@ exit 0 -%post plugin-acl -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-acl +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 plugin-additional_message_headers -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-additional_message_headers +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 plugin-archive -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-archive +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 plugin-attachment_reminder -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-attachment_reminder +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 plugin-autologon -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-autologon +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 plugin-database_attachments -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-database_attachments +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 plugin-debug_logger -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-debug_logger +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 plugin-emoticons -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-emoticons +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 plugin-enigma -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-enigma +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 plugin-example_addressbook -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-example_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} - /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 plugin-filesystem_attachments -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-filesystem_attachments +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 plugin-help -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-help +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 plugin-hide_blockquote -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-hide_blockquote +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 plugin-http_authentication -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-http_authentication +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 plugin-identity_select -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-identity_select +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 plugin-jqueryui -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-jqueryui +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 plugin-legacy_browser -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-legacy_browser +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 plugin-managesieve -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-managesieve +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 plugin-markasjunk -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-markasjunk +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 plugin-new_user_dialog -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-new_user_dialog +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 plugin-new_user_identity -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-new_user_identity +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 plugin-newmail_notifier -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-newmail_notifier +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 plugin-password -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-password +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 plugin-redundant_attachments -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-redundant_attachments +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 plugin-show_additional_headers -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-show_additional_headers +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 plugin-squirrelmail_usercopy -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-squirrelmail_usercopy +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 plugin-subscriptions_option -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-subscriptions_option +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 plugin-userinfo -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-userinfo +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 plugin-vcard_attachments -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-vcard_attachments +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 plugin-virtuser_file -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-virtuser_file +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 plugin-virtuser_query -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-virtuser_query +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 plugin-zipdownload -if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "$(grep ^apc.enabled=1 %{php_inidir}/apc.ini)" ]; then +%posttrans plugin-zipdownload +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 %files @@ -2367,6 +2514,8 @@ %attr(0640,root,%{httpd_group}) %{confdir}/defaults.inc.php %attr(0770,root,%{httpd_group}) %dir /var/log/roundcubemail %attr(0770,root,%{httpd_group}) %dir /var/lib/roundcubemail +%dir %{_localstatedir}/lib/rpm-state/ +%dir %{_localstatedir}/lib/rpm-state/roundcubemail/ %files core-assets -f core-assets.files %defattr(-,root,root,-)
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
.