diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-04-23 16:34:39 +0000 | 
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-04-23 16:34:39 +0000 | 
| commit | c65eb7dc0ec96144ef1a218665852f0ed15bed9b (patch) | |
| tree | f75b9a46b95d7603975291ecc7559f6eb811da64 /sysutils | |
| parent | - PHP 5.2 slave port (diff) | |
- PHP 5.2 slave port
PR:		145772
Submitted by:	Alex Keda
Diffstat (limited to 'sysutils')
| -rw-r--r-- | sysutils/Makefile | 1 | ||||
| -rw-r--r-- | sysutils/php52-posix/Makefile | 14 | ||||
| -rw-r--r-- | sysutils/php52-posix/files/patch-posix.c | 38 | 
3 files changed, 53 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 355812574563..0311efe148c5 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -622,6 +622,7 @@      SUBDIR += philesight      SUBDIR += php4-posix      SUBDIR += php5-posix +    SUBDIR += php52-posix      SUBDIR += pidof      SUBDIR += pipemeter      SUBDIR += plconfig diff --git a/sysutils/php52-posix/Makefile b/sysutils/php52-posix/Makefile new file mode 100644 index 000000000000..107f4d5d3b0c --- /dev/null +++ b/sysutils/php52-posix/Makefile @@ -0,0 +1,14 @@ +# New ports collection makefile for:	php52-posix +# Date created:			17 Apr 2010 +# Whom:				Alex Keda <admin@lissyara.su> +# +# $FreeBSD$ +# + +CATEGORIES=	sysutils + +MASTERDIR=	${.CURDIR}/../../lang/php52 + +PKGNAMESUFFIX=	-posix + +.include "${MASTERDIR}/Makefile" diff --git a/sysutils/php52-posix/files/patch-posix.c b/sysutils/php52-posix/files/patch-posix.c new file mode 100644 index 000000000000..d2365b249569 --- /dev/null +++ b/sysutils/php52-posix/files/patch-posix.c @@ -0,0 +1,38 @@ +--- posix.c.orig	Fri Feb 23 00:40:39 2007 ++++ posix.c	Sun May 13 17:52:27 2007 +@@ -838,7 +838,7 @@ + #if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX) + 	buflen = sysconf(_SC_GETGR_R_SIZE_MAX); + 	if (buflen < 1) { +-		RETURN_FALSE; ++		buflen = 1024; + 	} + 	buf = emalloc(buflen); + 	g = &gbuf; +@@ -888,7 +888,7 @@ + 	 + 	grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); + 	if (grbuflen < 1) { +-		RETURN_FALSE; ++		grbuflen = 1024; + 	} +  + 	grbuf = emalloc(grbuflen); +@@ -955,7 +955,7 @@ + #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R) + 	buflen = sysconf(_SC_GETPW_R_SIZE_MAX); + 	if (buflen < 1) { +-		RETURN_FALSE; ++		buflen = 1024; + 	} + 	buf = emalloc(buflen); + 	pw = &pwbuf; +@@ -1004,7 +1004,7 @@ + #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWUID_R) + 	pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); + 	if (pwbuflen < 1) { +-		RETURN_FALSE; ++		pwbuflen = 1024; + 	} + 	pwbuf = emalloc(pwbuflen); +   | 
