Author: glen Date: Fri Sep 30 10:45:22 2005 GMT Module: SPECS Tag: DEVEL ---- Log message: - let there be possibitlity to have etc symlink be correct in both php versions
---- Files affected: SPECS: ZendOptimizer.spec (1.19.2.9 -> 1.19.2.10) ---- Diffs: ================================================================ Index: SPECS/ZendOptimizer.spec diff -u SPECS/ZendOptimizer.spec:1.19.2.9 SPECS/ZendOptimizer.spec:1.19.2.10 --- SPECS/ZendOptimizer.spec:1.19.2.9 Fri Sep 30 12:33:14 2005 +++ SPECS/ZendOptimizer.spec Fri Sep 30 12:44:52 2005 @@ -9,7 +9,7 @@ Summary(pl): Zend Optimizer - optymalizator kodu PHP Name: ZendOptimizer Version: 2.5.10a -Release: 0.14 +Release: 0.17 License: Zend License, distributable only if unmodified and for free (see LICENSE) Group: Libraries Source0: http://downloads.zend.com/optimizer/2.5.10/%{name}-%{version}-linux-glibc21-i386.tar.gz @@ -109,9 +109,15 @@ fi %post -n php4-%{name} +# let /usr/lib/Zend/etc point to php's config dir. php which installed first wins. +# not sure how critical is existence of this etc link at all. +if [ ! -L %{_libdir}/Zend/etc ]; then + ln -snf /etc/php4 %{_libdir}/Zend/etc +fi [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart + %preun -n php-%{name} if [ "$1" = "0" ]; then [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart @@ -119,6 +125,11 @@ fi %post -n php-%{name} +# let /usr/lib/Zend/etc point to php's config dir. php which installed first wins. +# not sure how critical is existence of this etc link at all. +if [ ! -L %{_libdir}/Zend/etc ]; then + ln -snf /etc/php %{_libdir}/Zend/etc +fi [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart @@ -133,7 +144,7 @@ %files %defattr(644,root,root,755) -%doc data/doc LICENSE +%doc data/doc/* LICENSE %attr(755,root,root) %{_bindir}/zendid %dir %{_libdir}/Zend %dir %{_libdir}/Zend/lib @@ -146,7 +157,7 @@ %attr(755,root,root) %{_libdir}/Zend/lib/ZendExtensionManager.so %attr(755,root,root) %{_libdir}/Zend/lib/ZendExtensionManager_TS.so %{_libdir}/Zend/bin -%{_libdir}/Zend/etc +%ghost %{_libdir}/Zend/etc %files -n php4-%{name} %defattr(644,root,root,755) @@ -166,6 +177,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.19.2.10 2005/09/30 10:44:52 glen +- let there be possibitlity to have etc symlink be correct in both php versions + Revision 1.19.2.9 2005/09/30 10:33:14 glen - clean up requires ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/ZendOptimizer.spec?r1=1.19.2.9&r2=1.19.2.10&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
