diff --git a/lang/php/5.3/Makefile b/lang/php/5.3/Makefile index f84d6c74e8e..cb801c86e70 100644 --- a/lang/php/5.3/Makefile +++ b/lang/php/5.3/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.16 2011/09/16 10:31:21 espie Exp $ +# $OpenBSD: Makefile,v 1.17 2011/11/17 12:52:27 robert Exp $ PV= 5.3 V= ${PV}.8 @@ -21,4 +21,11 @@ WANTLIB-fpm= ${WANTLIB-main} RUN_DEPENDS-fpm= ${RUN_DEPENDS-main} \ php-${V}:lang/php/${PV} +# pcntl +MULTI_PACKAGES+= -pcntl +COMMENT-pcntl= PCNTL extensions for php5 +CONFIGURE_ARGS+= --enable-pcntl=shared +LIB_DEPENDS-pcntl= +WANTLIB-pcntl= + .include diff --git a/lang/php/5.3/pkg/DESCR-pcntl b/lang/php/5.3/pkg/DESCR-pcntl new file mode 100644 index 00000000000..7b5d76cb852 --- /dev/null +++ b/lang/php/5.3/pkg/DESCR-pcntl @@ -0,0 +1,5 @@ +Process Control support in PHP implements the Unix style of process +creation, program execution, signal handling and process termination. +Process Control should not be enabled within a web server environment +and unexpected results may happen if any Process Control functions +are used within a web server environment. diff --git a/lang/php/5.3/pkg/PLIST-pcntl b/lang/php/5.3/pkg/PLIST-pcntl new file mode 100644 index 00000000000..74d7a9049d8 --- /dev/null +++ b/lang/php/5.3/pkg/PLIST-pcntl @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST-pcntl,v 1.1 2011/11/17 12:52:27 robert Exp $ +@conflict php5-pcntl->=5.2 +@conflict pecl-pctnl-* +@pkgpath www/pecl-pcntl +lib/php-${PV}/modules/pcntl.so +share/examples/php-${PV}/pcntl.ini +@sample ${SYSCONFDIR}/php-${PV}.sample/pcntl.ini diff --git a/lang/php/Makefile.inc b/lang/php/Makefile.inc index c0933bef219..1278f1d50c5 100644 --- a/lang/php/Makefile.inc +++ b/lang/php/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.22 2011/11/08 10:25:48 sthen Exp $ +# $OpenBSD: Makefile.inc,v 1.23 2011/11/17 12:52:27 robert Exp $ # This port currently only works with archs supporting dynamic loading # and has Apache that supports DSO's. @@ -340,7 +340,7 @@ pre-configure: ${WRKSRC}/scripts/phpize.in \ ${WRKSRC}/scripts/php-config.in -.for i in ${MULTI_PACKAGES:N-main:N-fastcgi:N-fpm:S/-//g} +.for i in ${MULTI_PACKAGES:N-main:N-fastcgi:N-fpm:N-pcntl:S/-//g} MODULE_NAME-${i}= ${i} DESCR-${i}= ${.CURDIR}/../files/DESCR-${i} MESSAGE-${i}= ${.CURDIR}/../files/MESSAGE-ext