pecl-pcntl-1.0, PHP support for process control i.e. fork(2)

this functionality exists in php itself but is disabled when building
with PHP_SAPI=apache hence this workaround.
This commit is contained in:
jolan 2009-08-10 05:18:19 +00:00
parent b2709f3797
commit 028f9e1f52
6 changed files with 80 additions and 0 deletions

44
www/pecl-pcntl/Makefile Normal file
View File

@ -0,0 +1,44 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/10 05:18:19 jolan Exp $
SHARED_ONLY= Yes
COMMENT= PHP support for process control
DISTNAME= pecl-pcntl-1.0
MASTER_SITES= http://openbsddistfiles.org/~jolan/
CATEGORIES= www
# PHP License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
AUTOCONF_VERSION= 2.62
AUTOMAKE_VERSION= 1.9
BUILD_DEPENDS= :pear-*:www/pear \
${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
RUN_DEPENDS= :php5-core-*:www/php5/core
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION}
PREFIX= /var/www
DESTDIRNAME= INSTALL_ROOT
NO_REGRESS= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS+= --tag=disable-static
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample
@echo "extension=pcntl.so" > \
${PREFIX}/conf/php5.sample/pcntl.ini
.include <bsd.port.mk>

5
www/pecl-pcntl/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (pecl-pcntl-1.0.tar.gz) = B5XY4DhSo5LVt7OKey6ITw==
RMD160 (pecl-pcntl-1.0.tar.gz) = mbEG+4xB1pE1YKaXbaHcph+KLHA=
SHA1 (pecl-pcntl-1.0.tar.gz) = j7vaQ1JHrTPjWuPR2r/dSATTi6g=
SHA256 (pecl-pcntl-1.0.tar.gz) = o4s9VYAvF9Hs5rt2qaZ4DaCitdZVVY/SD42Sng/FsBc=
SIZE (pecl-pcntl-1.0.tar.gz) = 6763

1
www/pecl-pcntl/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
pecl-chroot is a PECLized version of the pcntl functions.

View File

@ -0,0 +1,10 @@
You can enable this module by creating a symbolic
link from ${PREFIX}/conf/php5.sample/pcntl.ini to
${PREFIX}/conf/php5/pcntl.ini.
ln -fs ${PREFIX}/conf/php5.sample/pcntl.ini \
${PREFIX}/conf/php5/pcntl.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.

11
www/pecl-pcntl/pkg/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/10 05:18:19 jolan Exp $
@comment conf/php5.sample/
@group bin
conf/php5.sample/pcntl.ini
@comment lib/
@comment lib/php/
@comment lib/php/modules/
@owner root
lib/php/modules/pcntl.so
@owner
@group

View File

@ -0,0 +1,9 @@
You can disable this module by removing the
${PREFIX}/conf/php5/pcntl.ini symbolic link by
issuing the following command:
rm -f ${PREFIX}/conf/php5/pcntl.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.