]> git.pld-linux.org Git - packages/ZendGuardLoader.git/commitdiff
- let there be possibitlity to have etc symlink be correct in both php versions
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 30 Sep 2005 10:44:52 +0000 (10:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ZendGuardLoader.spec -> 1.19.2.10

ZendGuardLoader.spec

index 277c8f34c29617012e54a6e4ae752a80d59fb16b..4be73f5d9784184b31eae8f0011cfa45264bc164 100644 (file)
@@ -8,7 +8,7 @@ Summary:        Zend Optimizer - PHP code optimizer
 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
@@ -108,9 +108,15 @@ if [ "$1" = "0" ]; then
 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
@@ -118,6 +124,11 @@ if [ "$1" = "0" ]; then
 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
 
@@ -132,7 +143,7 @@ fi
 
 %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
@@ -145,7 +156,7 @@ fi
 %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)
This page took 0.089107 seconds and 4 git commands to generate.