[Midnightbsd-cvs] mports [20634] trunk/sysutils: php 5.5 and 5.6 fileinfo and posix

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Nov 1 13:06:49 EST 2015


Revision: 20634
          http://svnweb.midnightbsd.org/mports/?rev=20634
Author:   laffer1
Date:     2015-11-01 13:06:48 -0500 (Sun, 01 Nov 2015)
Log Message:
-----------
php 5.5 and 5.6 fileinfo and posix

Modified Paths:
--------------
    trunk/sysutils/Makefile

Added Paths:
-----------
    trunk/sysutils/php55-fileinfo/
    trunk/sysutils/php55-fileinfo/Makefile
    trunk/sysutils/php55-fileinfo/files/
    trunk/sysutils/php55-fileinfo/files/patch-config.m4
    trunk/sysutils/php55-posix/
    trunk/sysutils/php55-posix/Makefile
    trunk/sysutils/php55-posix/files/
    trunk/sysutils/php55-posix/files/patch-posix.c
    trunk/sysutils/php56-fileinfo/
    trunk/sysutils/php56-fileinfo/Makefile
    trunk/sysutils/php56-fileinfo/files/
    trunk/sysutils/php56-fileinfo/files/patch-config.m4
    trunk/sysutils/php56-posix/
    trunk/sysutils/php56-posix/Makefile
    trunk/sysutils/php56-posix/files/
    trunk/sysutils/php56-posix/files/patch-posix.c

Modified: trunk/sysutils/Makefile
===================================================================
--- trunk/sysutils/Makefile	2015-11-01 18:05:15 UTC (rev 20633)
+++ trunk/sysutils/Makefile	2015-11-01 18:06:48 UTC (rev 20634)
@@ -82,6 +82,10 @@
 SUBDIR += pbreg
 SUBDIR += php5-fileinfo
 SUBDIR += php5-posix
+SUBDIR += php55-fileinfo
+SUBDIR += php55-posix
+SUBDIR += php56-fileinfo
+SUBDIR += php56-posix
 SUBDIR += policykit
 SUBDIR += policykit-gnome
 SUBDIR += polkit

Added: trunk/sysutils/php55-fileinfo/Makefile
===================================================================
--- trunk/sysutils/php55-fileinfo/Makefile	                        (rev 0)
+++ trunk/sysutils/php55-fileinfo/Makefile	2015-11-01 18:06:48 UTC (rev 20634)
@@ -0,0 +1,9 @@
+# $MidnightBSD$
+
+CATEGORIES=	sysutils
+
+MASTERDIR=	${.CURDIR}/../../lang/php55
+
+PKGNAMESUFFIX=	-fileinfo
+
+.include "${MASTERDIR}/Makefile"


Property changes on: trunk/sysutils/php55-fileinfo/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/php55-fileinfo/files/patch-config.m4
===================================================================
--- trunk/sysutils/php55-fileinfo/files/patch-config.m4	                        (rev 0)
+++ trunk/sysutils/php55-fileinfo/files/patch-config.m4	2015-11-01 18:06:48 UTC (rev 20634)
@@ -0,0 +1,21 @@
+--- config.m4.orig	2010-09-07 15:45:30.000000000 +0200
++++ config.m4	2010-09-07 15:46:50.000000000 +0200
+@@ -4,6 +4,9 @@
+ PHP_ARG_ENABLE(fileinfo, for fileinfo support,
+ [  --disable-fileinfo      Disable fileinfo support], yes)
+ 
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[  --with-pcre-dir           FILEINFO: pcre install prefix], no, no)
++
+ if test "$PHP_FILEINFO" != "no"; then
+ 
+   libmagic_sources=" \
+@@ -13,6 +16,8 @@
+     libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
+     libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
+ 
++  PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++
+   PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I at ext_srcdir@/libmagic)
+   PHP_ADD_BUILD_DIR($ext_builddir/libmagic)
+ 


Property changes on: trunk/sysutils/php55-fileinfo/files/patch-config.m4
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/php55-posix/Makefile
===================================================================
--- trunk/sysutils/php55-posix/Makefile	                        (rev 0)
+++ trunk/sysutils/php55-posix/Makefile	2015-11-01 18:06:48 UTC (rev 20634)
@@ -0,0 +1,9 @@
+# $MidnightBSD$
+
+CATEGORIES=	sysutils
+
+MASTERDIR=	${.CURDIR}/../../lang/php55
+
+PKGNAMESUFFIX=	-posix
+
+.include "${MASTERDIR}/Makefile"


Property changes on: trunk/sysutils/php55-posix/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/php55-posix/files/patch-posix.c
===================================================================
--- trunk/sysutils/php55-posix/files/patch-posix.c	                        (rev 0)
+++ trunk/sysutils/php55-posix/files/patch-posix.c	2015-11-01 18:06:48 UTC (rev 20634)
@@ -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);
+ 


Property changes on: trunk/sysutils/php55-posix/files/patch-posix.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/php56-fileinfo/Makefile
===================================================================
--- trunk/sysutils/php56-fileinfo/Makefile	                        (rev 0)
+++ trunk/sysutils/php56-fileinfo/Makefile	2015-11-01 18:06:48 UTC (rev 20634)
@@ -0,0 +1,9 @@
+# $MidnightBSD$
+
+CATEGORIES=	sysutils
+
+MASTERDIR=	${.CURDIR}/../../lang/php56
+
+PKGNAMESUFFIX=	-fileinfo
+
+.include "${MASTERDIR}/Makefile"


Property changes on: trunk/sysutils/php56-fileinfo/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/php56-fileinfo/files/patch-config.m4
===================================================================
--- trunk/sysutils/php56-fileinfo/files/patch-config.m4	                        (rev 0)
+++ trunk/sysutils/php56-fileinfo/files/patch-config.m4	2015-11-01 18:06:48 UTC (rev 20634)
@@ -0,0 +1,21 @@
+--- config.m4.orig	2010-09-07 15:45:30.000000000 +0200
++++ config.m4	2010-09-07 15:46:50.000000000 +0200
+@@ -4,6 +4,9 @@
+ PHP_ARG_ENABLE(fileinfo, for fileinfo support,
+ [  --disable-fileinfo      Disable fileinfo support], yes)
+ 
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[  --with-pcre-dir           FILEINFO: pcre install prefix], no, no)
++
+ if test "$PHP_FILEINFO" != "no"; then
+ 
+   libmagic_sources=" \
+@@ -13,6 +16,8 @@
+     libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
+     libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
+ 
++  PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++
+   PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I at ext_srcdir@/libmagic)
+   PHP_ADD_BUILD_DIR($ext_builddir/libmagic)
+ 


Property changes on: trunk/sysutils/php56-fileinfo/files/patch-config.m4
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/php56-posix/Makefile
===================================================================
--- trunk/sysutils/php56-posix/Makefile	                        (rev 0)
+++ trunk/sysutils/php56-posix/Makefile	2015-11-01 18:06:48 UTC (rev 20634)
@@ -0,0 +1,9 @@
+# $MidnightBSD$
+
+CATEGORIES=	sysutils
+
+MASTERDIR=	${.CURDIR}/../../lang/php56
+
+PKGNAMESUFFIX=	-posix
+
+.include "${MASTERDIR}/Makefile"


Property changes on: trunk/sysutils/php56-posix/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/php56-posix/files/patch-posix.c
===================================================================
--- trunk/sysutils/php56-posix/files/patch-posix.c	                        (rev 0)
+++ trunk/sysutils/php56-posix/files/patch-posix.c	2015-11-01 18:06:48 UTC (rev 20634)
@@ -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);
+ 


Property changes on: trunk/sysutils/php56-posix/files/patch-posix.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list