From: Elan Ruusamäe Date: Sun, 4 Nov 2007 19:31:42 +0000 (+0000) Subject: - apache1-apxs no longer exists, kill old trigger X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_suphp.git;a=commitdiff_plain;h=3ca501a22af783aeb8f00f1e2b5b77d72300d681 - apache1-apxs no longer exists, kill old trigger Changed files: apache1-mod_suphp.spec -> 1.16 --- diff --git a/apache1-mod_suphp.spec b/apache1-mod_suphp.spec index cabf17f..1462f44 100644 --- a/apache1-mod_suphp.spec +++ b/apache1-mod_suphp.spec @@ -24,9 +24,6 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libstdc++-devel BuildRequires: rpmbuild(macros) >= 1.268 -Requires(triggerpostun): %{apxs} -Requires(triggerpostun): grep -Requires(triggerpostun): sed >= 4.0 Requires: apache1 Requires: php-cgi Conflicts: logrotate < 3.7-4 @@ -57,7 +54,7 @@ moduł w celu zmiany uid procesu uruchamiającego interpreter PHP. %{__autoconf} %{__autoheader} %{__automake} -export APACHE_VERSION=$(rpm -q --qf '%%{version}' apache1-apxs) +export APACHE_VERSION=$(rpm -q --qf '%{V}' apache1-devel) %configure \ %{?with_checkpath: --enable-checkpath} \ %{!?with_checkpath: --disable-checkpath} \ @@ -82,8 +79,7 @@ install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{mod_name}.conf install -d $RPM_BUILD_ROOT/etc/logrotate.d -# TODO: apache1-mod_suphp + trigger -install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/apache-mod_suphp +install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/apache1-mod_suphp %clean rm -rf $RPM_BUILD_ROOT @@ -96,17 +92,6 @@ if [ "$1" = "0" ]; then %service -q apache restart fi -# TODO remove the trigger, if no longer needed -%triggerpostun -- %{name} <= 0.5.2-1 -if grep -q '^Include conf\.d' /etc/apache/apache.conf; then - %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 - sed -i -e ' - /^Include.*mod_%{mod_name}\.conf/d - ' /etc/apache/apache.conf - - %service -q apache restart -fi - %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog README doc