Projects
Kolab:3.4
roundcubemail
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 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
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
.