Browse code

pecl-crack: dictionary-fix fuer 64 bit

Hanno Böck authored on 09/09/2012 08:00:24
Showing 7 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,112 @@
1
+# ChangeLog for dev-php/pecl-crack
2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
3
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-crack/ChangeLog,v 1.4 2012/08/24 05:00:58 xmw Exp $
4
+
5
+  24 Aug 2012; Michael Weber <xmw@gentoo.org> pecl-crack-0.4-r2.ebuild:
6
+  ppc stable (bug 427024).
7
+
8
+  22 Aug 2012; Agostino Sarubbo <ago@gentoo.org> pecl-crack-0.4-r2.ebuild:
9
+  Stable for amd64, wrt bug #427024
10
+
11
+*pecl-crack-0.4-r2 (19 Aug 2012)
12
+
13
+  19 Aug 2012; Ole Markus With <olemarkus@gentoo.org>
14
+  +files/fix-php-5-4-support.patch, +pecl-crack-0.4-r2.ebuild:
15
+  Revbump that should work with php 5.4. Bug 423869. Thanks to hanno for digging
16
+  up the patch
17
+
18
+  30 Jan 2011; Raúl Porcel <armin76@gentoo.org> pecl-crack-0.4.ebuild:
19
+  Drop sparc keywords
20
+
21
+  08 Jan 2011; Brent Baude <ranger@gentoo.org> pecl-crack-0.4-r1.ebuild:
22
+  Marking pecl-crack-0.4-r1 ~ppc for bug 349659
23
+
24
+  04 Jan 2011; Markos Chandras <hwoarang@gentoo.org> pecl-crack-0.4-r1.ebuild:
25
+  Stable on amd64 wrt bug #349659
26
+
27
+  04 Jan 2011; Christian Faulhammer <fauli@gentoo.org>
28
+  pecl-crack-0.4-r1.ebuild:
29
+  stable x86, bug 349659
30
+
31
+  28 Dec 2010; Brent Baude <ranger@gentoo.org> pecl-crack-0.4-r1.ebuild:
32
+  Marking pecl-crack-0.4-r1 ~ppc64 for bug 349659
33
+
34
+*pecl-crack-0.4-r1 (04 Nov 2010)
35
+
36
+  04 Nov 2010; Matti Bickel <mabi@gentoo.org> +pecl-crack-0.4-r1.ebuild:
37
+  add version that supports minor version slotting
38
+
39
+  09 May 2008; Christian Hoffmann <hoffie@gentoo.org> pecl-crack-0.4.ebuild:
40
+  explicitly call phpize, not src_unpack (bug 220519)
41
+
42
+  07 May 2008; Christian Hoffmann <hoffie@gentoo.org> pecl-crack-0.4.ebuild:
43
+  calling php-ext-source-r1_src_unpack explicitly, bug 220519
44
+
45
+  06 Dec 2007; Markus Ullmann <jokey@gentoo.org> pecl-crack-0.4.ebuild:
46
+  LICENSE fix from project overlay
47
+
48
+  02 Dec 2007; Jakub Moc <jakub@gentoo.org> pecl-crack-0.4.ebuild:
49
+  Fix LICENSE
50
+
51
+  20 Aug 2007; Markus Ullmann <jokey@gentoo.org> pecl-crack-0.4.ebuild:
52
+  Stable on x86 wrt bug #187234
53
+
54
+  14 Aug 2007; Markus Rothe <corsair@gentoo.org> pecl-crack-0.4.ebuild:
55
+  Stable on ppc64; bug #187234
56
+
57
+  10 Aug 2007; Steve Dibb <beandog@gentoo.org> pecl-crack-0.4.ebuild:
58
+  amd64 stable, bug 187234
59
+
60
+  07 Aug 2007; nixnut <nixnut@gentoo.org> pecl-crack-0.4.ebuild:
61
+  Stable on ppc wrt bug 187234
62
+
63
+  17 Mar 2007; Luca Longinotti <chtekk@gentoo.org> pecl-crack-0.4.ebuild:
64
+  Cleanup.
65
+
66
+  08 Oct 2006; Sebastian Bergmann <sebastian@gentoo.org>
67
+  +files/fix-pecl-bug-5765.patch, pecl-crack-0.4.ebuild:
68
+  Fix for http://pecl.php.net/bugs/bug.php?id=5765. Patch by Lars Strojny
69
+  <lars@strojny.net>.
70
+
71
+*pecl-crack-0.4 (29 Sep 2006)
72
+
73
+  29 Sep 2006; Sebastian Bergmann <sebastian@gentoo.org>
74
+  -pecl-crack-0.2.ebuild, -pecl-crack-0.3.ebuild, +pecl-crack-0.4.ebuild:
75
+  Version bump.
76
+
77
+  10 Apr 2006; Simon Stelling <blubb@gentoo.org> pecl-crack-0.3.ebuild:
78
+  added ~amd64 keyword
79
+
80
+  03 Feb 2006; <nixnut@gentoo.org> pecl-crack-0.3.ebuild:
81
+  Added ~ppc keyword. bug 121024
82
+
83
+  26 Nov 2005; Luca Longinotti <chtekk@gentoo.org> pecl-crack-0.2.ebuild,
84
+  pecl-crack-0.3.ebuild:
85
+  Fix var ordering.
86
+
87
+  19 Nov 2005; Markus Rothe <corsair@gentoo.org> pecl-crack-0.2.ebuild,
88
+  pecl-crack-0.3.ebuild:
89
+  Added ~ppc64 keyword; bug #102649
90
+
91
+  24 Sep 2005; Jason Wever <weeve@gentoo.org> pecl-crack-0.3.ebuild:
92
+  Added ~sparc keyword back into pecl-crack because it got dropped. :(
93
+
94
+  15 Sep 2005; Michael Sterrett <mr_bones_@gentoo.org>
95
+  pecl-crack-0.2.ebuild:
96
+  dekeyword for amd64 until php5 is keyworded as well
97
+
98
+*pecl-crack-0.3 (10 Sep 2005)
99
+
100
+  10 Sep 2005; Sebastian Bergmann <sebastian@gentoo.org>
101
+  +pecl-crack-0.3.ebuild:
102
+  Version bump, DEPEND on cracklib no longer needed.
103
+
104
+  10 Sep 2005; Jason Wever <weeve@gentoo.org> pecl-crack-0.2.ebuild:
105
+  Added ~sparc keyword.
106
+
107
+  07 Sep 2005; Sebastian Bergmann <sebastian@gentoo.org>
108
+  pecl-crack-0.2.ebuild:
109
+  Marked ~amd64 per bug 99551.
110
+
111
+  18 Aug 2005; <stuart@gentoo.org> ChangeLog:
112
+  Initial version; replaces older dev-php/* packages
0 113
new file mode 100644
... ...
@@ -0,0 +1,7 @@
1
+AUX fix-pecl-bug-5765.patch 375 SHA256 1a4f72c1c51cbc95eaa68776fdc677a740ae2cc04e21000a2260548fb7f85b74 SHA512 21f7d76242c630334e88c8bf1f6e4fe9718943c36c6886f8de6503c9c616beab7007e31127b40b1df66763893d692a65f20483addb1607e0cfc7ec7b92ff4500 WHIRLPOOL 040ae981d77681384f96f4c4713a0668b33e7e3c8551edbc1c80c0372f6387b457920b4695c8b8bffbcad2afaae3fce8ac5c3960992c70af61c1c7bef88b4ab9
2
+AUX fix-php-5-4-support.patch 704 SHA256 174cbbf61218b3e34b0d615c3bd9568a1c55d58eb29f7afcc6b05bf0deb05ee2 SHA512 e42a28874f538ef5ae1e2dcf5e9aac40a051a3af1a85afe47a283affcd38fe846c37ac1f46dae3bbe3ebdb9fc4dac5245f5ba3023f315bf188ba0a9af910f294 WHIRLPOOL d658c30934f8580f369461fef5f9b0a3273a1cb524fd0eeeee3fc01f413c6c71eedd6b1c40e5899d9c39685356f44de3d54adf02b2eb9e3aa63cc10259ef7979
3
+DIST crack-0.4.tgz 25524 SHA256 00a5250a6c82b39c1aefcb6e1ce0980da5df49c9bfc6ade9a8e867d89e87f560 SHA512 0dec64d1ce859bb3d7e2b834e4bcc4ef8c6f3e88e5b61884e40dddc366a992a7c85bfad4227224d4401aad7f26843678709f29acd2dcc75563658040b8067d7f WHIRLPOOL 2b6d26cf65912f6fac72733711ed48e0c859df28a3c7a2b351e607edcc51f15fea7cfef01419b3fd56267ddf9c57f4a75f93e64015c0db9d14e5799ac1a411c7
4
+EBUILD pecl-crack-0.4-r1.ebuild 690 SHA256 a59c84497adbc3dcec57966276f6d28efa30911535a0d4b3312a369c6b1a66f7 SHA512 e5e6a9755728b05e2f44b14c4181890b47d1b88b3ae33b66c3fb6c72f0b7bb7f5a12ed12324882dbfa6a3a4be43f9432842fbaeada983d4750fd5a1e07e7c3db WHIRLPOOL ece56e598b79b8d9545266bc03c663f73fc25cc1a4db543801ddc54e778e2ad648c8d5748457ffaebc5924c456d56b4b31e20afb3cf17f4d99aca709a3805b66
5
+EBUILD pecl-crack-0.4-r2.ebuild 720 SHA256 2c2c5f66ea373260dd20dba9b447ad1cf1f4babdc2282b24a99e2a98f861e7d2 SHA512 8c959b95b72eb76136b763c9a7cc5fa516ce36a6bfd10143fbc7791720eb30eca948d69c7b86230ca5ffd532f7de32332a078981ccccf51b9509e22819c82d99 WHIRLPOOL b08ae78c8ac8222b6eb5d33a7116ddf4184aaee11bef6a5d643780323baaf54363a3de4e939ed507e171c5e9e44d6e9a9c4fb87fdbbe2ed054eb731c10970795
6
+MISC ChangeLog 3924 SHA256 82a3550c2a97a7ccc93d7f221095b0bc250b9627034e3e97216619868ec907e2 SHA512 7f903d311458733eb11402634ce93db7af12539b538cea2aa013745e59991807f10530518f94e24c9320bf62d56235d572749488cfde6643ba45f6f017d91d08 WHIRLPOOL cb8f628279e0195ac09c9148d9fb270464aae95518ab7196f13feb4548f0ca62c6c840b64ae5d51a484a3748be8b0941eb7f0c336d5b46d8db850cc4adbc6212
7
+MISC metadata.xml 157 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 SHA512 94adacaefd7d989cc904cc3ee920b15d58fee61df13008ebcbefa66f9b5c58cab2a5fad0499d4b57cd41e5f1ae79c6cf44525d90e649d23ebacd7721466b8947 WHIRLPOOL 66f688809b11b84b1b9d782a3c03cfcefed87989862aaca20c17cb076349ec402da9eaf87f7be02f7b4de178ea42da31029baee1bcd8e563aeabe949d4ed41f9
0 8
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+--- crack-0.4/libcrack/src/cracklib.h   2005-09-21 11:00:06.000000000 +0200
2
+@@ -46,7 +46,7 @@
3
+ 
4
+ typedef unsigned char int8;
5
+ typedef unsigned short int int16;
6
+-typedef unsigned long int int32;
7
++typedef unsigned int int32;
8
+ 
9
+ #ifndef NUMWORDS
10
+ # define NUMWORDS                           16
0 11
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+Gentoo bug: 423869
2
+Thanks to hanno
3
+
4
+--- pecl/crack/trunk/crack.c	2008/07/17 10:02:47	262854
5
+@@ -38,7 +38,7 @@
6
+ 
7
+ /* {{{ crack_functions[]
8
+  */
9
+-function_entry crack_functions[] = {
10
++zend_function_entry crack_functions[] = {
11
+ 	PHP_FE(crack_opendict,			NULL)
12
+ 	PHP_FE(crack_closedict,			NULL)
13
+ 	PHP_FE(crack_check,				NULL)
14
+@@ -94,6 +94,7 @@
15
+ 	int filename_len;
16
+ 	int result = SUCCESS;
17
+ 	
18
++#if PHP_VERSION_ID < 50400
19
+ 	if (PG(safe_mode)) {
20
+ 		filename_len = strlen(path) + 10;
21
+ 		filename = (char *) emalloc(filename_len);
22
+@@ -125,6 +126,7 @@
23
+ 			return FAILURE;
24
+ 		}
25
+ 	}
26
++#endif
27
+ 	
28
+ 	if (php_check_open_basedir(path TSRMLS_CC)) {
29
+ 		return FAILURE;
0 30
new file mode 100644
... ...
@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
+<pkgmetadata>
4
+	<herd>php</herd>
5
+</pkgmetadata>
0 6
new file mode 100644
... ...
@@ -0,0 +1,28 @@
1
+# Copyright 1999-2011 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-crack/pecl-crack-0.4-r1.ebuild,v 1.1 2011/12/14 22:32:31 mabi Exp $
4
+
5
+EAPI="3"
6
+
7
+PHP_EXT_NAME="crack"
8
+PHP_EXT_INI="yes"
9
+PHP_EXT_ZENDEXT="no"
10
+DOCS="EXPERIMENTAL"
11
+
12
+inherit php-ext-pecl-r2
13
+
14
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
15
+
16
+DESCRIPTION="PHP interface to the cracklib libraries."
17
+LICENSE="PHP-3 CRACKLIB"
18
+SLOT="0"
19
+IUSE=""
20
+
21
+src_prepare() {
22
+	for slot in $(php_get_slots) ; do
23
+		cd "${WORKDIR}/${slot}"
24
+		# Patch for http://pecl.php.net/bugs/bug.php?id=5765
25
+		epatch "${FILESDIR}/fix-pecl-bug-5765.patch"
26
+	done
27
+	php-ext-source-r2_src_prepare
28
+}
0 29
new file mode 100644
... ...
@@ -0,0 +1,31 @@
1
+# Copyright 1999-2012 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-crack/pecl-crack-0.4-r2.ebuild,v 1.3 2012/08/24 05:00:58 xmw Exp $
4
+
5
+EAPI="4"
6
+
7
+PHP_EXT_NAME="crack"
8
+PHP_EXT_INI="yes"
9
+PHP_EXT_ZENDEXT="no"
10
+DOCS="EXPERIMENTAL"
11
+
12
+USE_PHP="php5-3 php5-4"
13
+
14
+inherit php-ext-pecl-r2
15
+
16
+KEYWORDS="amd64 ppc ~ppc64 ~x86"
17
+
18
+DESCRIPTION="PHP interface to the cracklib libraries."
19
+LICENSE="PHP-3 CRACKLIB"
20
+SLOT="0"
21
+IUSE=""
22
+
23
+src_prepare() {
24
+	local slot
25
+	for slot in $(php_get_slots) ; do
26
+		cd "${WORKDIR}/${slot}"
27
+		epatch "${FILESDIR}/fix-php-5-4-support.patch"
28
+		epatch "${FILESDIR}/fix-pecl-bug-5765.patch"
29
+	done
30
+	php-ext-source-r2_src_prepare
31
+}