SPECS: web-cyradm.spec - use %apache_config triggers for linking a...
glen
glen at pld-linux.org
Wed Aug 24 13:18:51 CEST 2005
Author: glen Date: Wed Aug 24 11:18:51 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %apache_config triggers for linking apache config
---- Files affected:
SPECS:
web-cyradm.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/web-cyradm.spec
diff -u SPECS/web-cyradm.spec:1.5 SPECS/web-cyradm.spec:1.6
--- SPECS/web-cyradm.spec:1.5 Wed Aug 24 13:17:03 2005
+++ SPECS/web-cyradm.spec Wed Aug 24 13:18:46 2005
@@ -103,22 +103,11 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-if [ -d %{_sysconfdir}/httpd/httpd.conf ]; then
- ln -sf %{_sysconfdir}/httpd/%{name}.conf %{_sysconfdir}/httpd/httpd.conf/99_%{name}.conf
+%triggerin -- apache >= 2.0.0
+%apache_config_install -v 2 -c %{_sysconfdir}/httpd/%{name}.conf
- %service -q httpd reload
-fi
-
-%preun
-if [ "$1" = "0" ]; then
- umask 027
- if [ -d %{_sysconfdir}/httpd/httpd.conf ]; then
- rm -f %{_sysconfdir}/httpd/httpd.conf/99_%{name}.conf
-
- %service -q httpd reload
- fi
-fi
+%triggerun -- apache >= 2.0.0
+%apache_config_uninstall -v 2
%files -f %{name}.lang
%defattr(644,root,root,755)
@@ -135,6 +124,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2005/08/24 11:18:46 glen
+- use %apache_config triggers for linking apache config
+
Revision 1.5 2005/08/24 11:17:03 glen
- use %service reload, as it's only config change (ie not modules update)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/web-cyradm.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list