Update of /cvsroot/fink/experimental/thesin/finkinfo
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv6261

Modified Files:
        php5-adodb.info 
Log Message:
 * Enable php5.5 config setup


Index: php5-adodb.info
===================================================================
RCS file: /cvsroot/fink/experimental/thesin/finkinfo/php5-adodb.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- php5-adodb.info     13 Aug 2013 22:10:46 -0000      1.3
+++ php5-adodb.info     14 Aug 2013 15:11:03 -0000      1.4
@@ -47,13 +47,99 @@
 PHP_EX=$(%p/bin/php-config5 --extension-dir); \
 install -d -m 0755 %d/${PHP_EX}; \
 install -m 0644 modules/adodb.so %d/${PHP_EX}/adodb.so
-install -d -m 0755 %i/etc/php5/conf.d
-install -m 0644 fink/adodb.ini %i/etc/php5/conf.d/adodb.ini
+install -d -m755 %i/etc/php5/mods-available/
+install -m 0644 fink/adodb.ini %i/etc/php5/mods-available/adodb.ini
 <<
 ###
-ConfFiles: %p/etc/php5/conf.d/adodb.ini
+ConfFiles: %p/etc/php5/mods-available/adodb.ini
 DocFiles: CREDITS README.txt
 ###
+PreInstScript: <<
+set -e
+
+dpkg-maintscript-helper mv_conffile %p/etc/php5/conf.d/adodb.ini \
+       %p/etc/php5/mods-available/adodb.ini 5.04-1~ -- "$@"
+
+case "$1" in
+    install|upgrade)
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+<<
+PostInstScript: <<
+set -e
+
+dpkg-maintscript-helper mv_conffile %p/etc/php5/conf.d/adodb.ini \
+       %p/etc/php5/mods-available/adodb.ini 5.04-1~ -- "$@"
+
+# Verify path in ini file is correct
+EXT_DIR=$(%p/bin/php-config5 --extension-dir)
+if [ -n "$EXT_DIR" ]; then
+       sed -e "s@\(zend_extension=\).*\(adodb.so\)@\1$EXT_DIR/\2@g" -i 
%p/etc/php5/mods-available/adodb.ini
+fi
+
+case "$1" in
+    configure)
+       php5enmod adodb
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+<<
+PreRmScript: <<
+set -e
+
+case "$1" in
+    remove|upgrade|deconfigure)
+       php5dismod adodb
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+<<
+PostRmScript: <<
+set -e
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+       dpkg-maintscript-helper mv_conffile %p/etc/php5/conf.d/adodb.ini \
+               %p/etc/php5/mods-available/adodb.ini 5.04-1~ -- "$@"
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+<<
+###
 Description: Extension optimising the ADOdb library
 DescDetail: <<
 It provides up to 100% speedup on some drivers by replacing parts of ADOdb


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to