File: php4-ldap-bugfix.packages

package info (click to toggle)
yada 0.54
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,132 kB
  • ctags: 115
  • sloc: perl: 3,905; xml: 1,156; makefile: 12
file content (197 lines) | stat: -rw-r--r-- 7,467 bytes parent folder | download | duplicates (4)
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-ldap-bugfix
Section: web
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.5.8
Upstream-Source: <URI:http://www.php.net/>
Description: LDAP module for php4
Origin: debian
Copyright: .
 -------------------------------------------------------------------- 
                   The PHP License, version 3.0
 Copyright (c) 1999 - 2002 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 written permission. For
      written permission, please contact group@php.net.
 .
   4. Products derived from this software may not be called "PHP", nor
      may "PHP" appear in their name, without prior written permission
      from group@php.net.  You may indicate that your software works in
      conjunction with PHP by saying "Foo for PHP" instead of calling
      it "PHP Foo" or "phpfoo"
 .
   5. 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.
 .
   6. Redistributions of any form whatsoever must retain the following
      acknowledgment:
      "This product includes PHP, freely available from
      <http://www.php.net/>".
 .
 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>.
 .
 This product includes the Zend Engine, freely available at
 <http://www.zend.com>.
Patches: patches/*.diff
Major-Changes:
 The module is extracted from upstream php4 source.
 .
 [001] sources for version 4:4.2.3-9
 [002] E_ERROR replaced by E_WARNING
Build-Depends: libldap2-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/ldap
 phpize
 ./configure --with-ldap=shared,/usr --with-imap-ssl --with-kerberos=/usr \
    --enable-debug --with-layout=GNU --disable-rpath --disable-static
 make CFLAGS="$CFLAGS"
Clean: sh
 make distclean || true

Package: php4-ldap-bugfix
Architecture: any
Depends: ${zend:Depends}, []
Provides: php4-ldap
Conflicts: php4-ldap
Replaces: php4-ldap, php4-cgi-ldap
Description: LDAP module for php4
 This package provides a module for LDAP 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.
 .
 This package is compiled with newer version of PHP4 and replaces E_ERROR with
 E_WARNING.
Install: sh
 (
     cd ext/ldap
     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:]]*ldap.so" /etc/php4/apache/php.ini; then
 		echo "You are installing LDAP 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=ldap.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=ldap.so" >> /etc/php4/apache/php.ini
 		fi
 	fi
 fi
 .
 if [ -f /etc/php4/cgi/php.ini ]; then
 	if ! grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*ldap.so" /etc/php4/cgi/php.ini; then
 		echo "You are installing LDAP 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=ldap.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=ldap.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:]]*ldap.so" /etc/php4/apache/php.ini; then
 		echo "You are removing LDAP 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=ldap.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:]]*ldap.so" > /etc/php4/apache/php.ini.ldapremove
 			mv /etc/php4/apache/php.ini.ldapremove /etc/php4/apache/php.ini
 		fi
 	fi
 fi
 .
 if [ -f /etc/php4/cgi/php.ini ]; then
 	if grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*ldap.so" /etc/php4/cgi/php.ini; then
 		echo "You are removing LDAP 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=ldap.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:]]*ldap.so" > /etc/php4/cgi/php.ini.ldapremove
 			mv /etc/php4/cgi/php.ini.ldapremove /etc/php4/cgi/php.ini
 		fi
 	fi
 fi