Hello community, here is the log from the commit of package icingaweb2 for openSUSE:Factory checked in at 2020-11-26 23:15:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/icingaweb2 (Old) and /work/SRC/openSUSE:Factory/.icingaweb2.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "icingaweb2" Thu Nov 26 23:15:29 2020 rev:19 rq:850986 version:2.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/icingaweb2/icingaweb2.changes 2020-08-24 15:14:09.954717513 +0200 +++ /work/SRC/openSUSE:Factory/.icingaweb2.new.5913/icingaweb2.changes 2020-11-26 23:16:20.653081884 +0100 @@ -1,0 +2,6 @@ +Thu Nov 26 09:26:13 UTC 2020 - Eric Schirra <[email protected]> + +- Add missing requires php-curl, php-imagick. +- Add a2enmod mod_php and mod_rewrite at post section. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ icingaweb2.spec ++++++ --- /var/tmp/diff_new_pack.CB4deM/_old 2020-11-26 23:16:21.217082323 +0100 +++ /var/tmp/diff_new_pack.CB4deM/_new 2020-11-26 23:16:21.225082329 +0100 @@ -151,7 +151,7 @@ Requires: %{name}-vendor-zf1 = %{version}-%{release} %{?amzn:Requires: %{php}-pecl-imagick} %{?fedora:Requires: php-pecl-imagick} -%{?suse_version:Requires: %{php}-gettext %{php}-json %{php}-openssl %{php}-posix %{php}-ctype %{php}-pdo %{php}-xml} +%{?suse_version:Requires: %{php}-gettext %{php}-json %{php}-openssl %{php}-posix %{php}-ctype %{php}-pdo %{php}-xml %{php}-imagick %{php}-curl} %description -n php-Icinga Icinga Web 2 PHP library. @@ -336,6 +336,27 @@ %endif exit 0 +%post +# enable required apache modules +if [ -x %{_sbindir}/a2enmod ]; then + echo "Info: adding rewrite to APACHE_MODULES..." + %{_sbindir}/a2enmod rewrite >/dev/null || : +fi + +%post -n php-Icinga +# enable required apache modules +if [ -x %{_sbindir}/a2enmod ]; then + a2enmod -q version || a2enmod version + # get installed php_version (5 or 7) + # ap_mpm=$(awk '/Server MPM/ {print $3}' <<<$(start_apache2 -V)) + # php_version=$(awk -F[." "] '/cli/ {print $2}' <<< $(php -v)) + php_version=$(php -v | sed -n 's/^PHP\ \([[:digit:]]\+\)\..*$/\1/p') + if [[ -n ${php_version} ]] && start_apache2 -V | grep -q prefork; then + echo "Info: adding php${php_version} to APACHE_MODULES..." + a2enmod -q "php${php_version}" || a2enmod "php${php_version}" + fi +fi + %files %defattr(-,root,root) %{basedir}/application/controllers _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
