1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
|
Source: php4-dbase
Section: web
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.5.8
Upstream-Source: <URI:http://www.php.net/>
Description: dBase module for php4
Origin: debian
Copyright: .
--------------------------------------------------------------------
The PHP License, version 2.02
Copyright (c) 1999, 2000 The PHP Group. All rights reserved.
--------------------------------------------------------------------
.
Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
.
3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior permission from the
PHP Group. This does not apply to add-on libraries or tools
that work in conjunction with PHP. In such a case the PHP
name may be used to indicate that the product supports PHP.
.
4. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the
terms of that version. You may also choose to use such covered
code under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.
.
5. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP, freely available from
http://www.php.net/".
.
6. The software incorporates the Zend Engine, a product of Zend
Technologies, Ltd. ("Zend"). The Zend Engine is licensed to the
PHP Association (pursuant to a grant from Zend that can be
found at http://www.php.net/license/ZendGrant/) for
distribution to you under this license agreement, only as a
part of PHP. In the event that you separate the Zend Engine
(or any portion thereof) from the rest of the software, or
modify the Zend Engine, or any portion thereof, your use of the
separated or modified Zend Engine software shall not be governed
by this license, and instead shall be governed by the license
set forth at http://www.zend.com/license/ZendLicense/.
.
.
.
THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
.
--------------------------------------------------------------------
.
This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.
.
The PHP Group can be contacted via Email at group@php.net.
.
For more information on the PHP Group and the PHP project,
please see <http://www.php.net>.
Patches: *.diff
Major-Changes:
The module is extracted from upstream php4 source.
.
[001] sources for version 4:4.2.3-3
Build-Depends: libc-client2002-dev, php4-dev, apache-dev, libtool
Build: sh
CFLAGS="-Wall -g -fsigned-char"
if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
CFLAGS="$CFLAGS -O0"
else
CFLAGS="$CFLAGS -O2"
fi
.
cd ext/dbase
phpize
./configure --enable-dbase \
--enable-debug --with-layout=GNU --disable-rpath --disable-static
make CFLAGS="$CFLAGS"
Clean: sh
make distclean || true
Package: php4-dbase
Architecture: any
Depends: ${zend:Depends}, []
Description: dBase module for php4
This package provides a module for dBase functions in PHP scripts.
.
PHP4 is an HTML-embedded scripting language. Much of its syntax is borrowed
from C, Java and Perl with a couple of unique PHP-specific features thrown
in. The goal of the language is to allow web developers to write
dynamically generated pages quickly.
Install: sh
(
cd ext/dbase
make install moduledir="$ROOT/\$(EXTENSION_DIR)"
)
find $ROOT/usr/lib/php4 -type f | xargs chmod -x
yada strip
yada dpkg-shlibdeps
zendapiver=$(dpkg -s php4|grep ^Provides:|sed 's/.*zendapi-\([0-9]*\).*/\1/')
echo "zend:Depends=zendapi-$zendapiver" \
>> debian/substvars
Postinst: sh
if [ -f /etc/php4/apache/php.ini ]; then
if ! grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*dbase.so" /etc/php4/apache/php.ini; then
echo "You are installing dbase support for php4, but it's not"
echo "enabled in your /etc/php4/apache/php.ini."
echo
echo "To enable it you need to add this line:"
echo
echo "extension=dbase.so"
echo
echo -n "Do you want me to add it now [Y/n] ?"
read a
if ! echo $a | grep -iq ^n; then
echo "extension=dbase.so" >> /etc/php4/apache/php.ini
fi
fi
fi
.
if [ -f /etc/php4/cgi/php.ini ]; then
if ! grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*dbase.so" /etc/php4/cgi/php.ini; then
echo "You are installing dbase support for php4, but it's not"
echo "enabled in your /etc/php4/cgi/php.ini."
echo
echo "To enable it you need to add this line:"
echo
echo "extension=dbase.so"
echo
echo -n "Do you want me to add it now [Y/n] ?"
read a
if ! echo $a | grep -iq ^n; then
echo "extension=dbase.so" >> /etc/php4/cgi/php.ini
fi
fi
fi
Prerm: sh
if [ -f /etc/php4/apache/php.ini ]; then
if grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*dbase.so" /etc/php4/apache/php.ini; then
echo "You are removing dbase support for php4, but it is still"
echo "enabled in your /etc/php4/apache/php.ini."
echo
echo "You should remove this line:"
echo
echo "extension=dbase.so"
echo
echo -n "Do you want me to do it now [Y/n] ?"
read a
if ! echo $a | grep -iq ^n; then
cat /etc/php4/apache/php.ini | grep -v "^[[:space:]]*extension[[:space:]]*=[[:space:]]*dbase.so" > /etc/php4/apache/php.ini.dbaseremove
mv /etc/php4/apache/php.ini.dbaseremove /etc/php4/apache/php.ini
fi
fi
fi
.
if [ -f /etc/php4/cgi/php.ini ]; then
if grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*dbase.so" /etc/php4/cgi/php.ini; then
echo "You are removing dbase support for php4, but it is still"
echo "enabled in your /etc/php4/cgi/php.ini."
echo
echo "You should remove this line:"
echo
echo "extension=dbase.so"
echo
echo -n "Do you want me to do it now [Y/n] ?"
read a
if ! echo $a | grep -iq ^n; then
cat /etc/php4/cgi/php.ini | grep -v "^[[:space:]]*extension[[:space:]]*=[[:space:]]*dbase.so" > /etc/php4/cgi/php.ini.dbaseremove
mv /etc/php4/cgi/php.ini.dbaseremove /etc/php4/cgi/php.ini
fi
fi
fi
|