aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-07-19 17:42:01 +0800
committerale <ale@FreeBSD.org>2004-07-19 17:42:01 +0800
commit5c8f33922e7a2a31b714ab4008b5963c0fa11c48 (patch)
tree04fc6d04c091377f9e414550b5c92a161f4c395f /textproc
parente37d3a3622c720172f1e766c040d4597f792ee44 (diff)
downloadfreebsd-ports-gnome-5c8f33922e7a2a31b714ab4008b5963c0fa11c48.tar.gz
freebsd-ports-gnome-5c8f33922e7a2a31b714ab4008b5963c0fa11c48.tar.zst
freebsd-ports-gnome-5c8f33922e7a2a31b714ab4008b5963c0fa11c48.zip
Switch to the new PHP infrastructure.
Submitted by: maintainer
Diffstat (limited to 'textproc')
-rw-r--r--textproc/cdsware/Makefile25
-rw-r--r--textproc/cdsware/files/pkg-message.in2
2 files changed, 1 insertions, 26 deletions
diff --git a/textproc/cdsware/Makefile b/textproc/cdsware/Makefile
index 4582894632b1..a87cd5345740 100644
--- a/textproc/cdsware/Makefile
+++ b/textproc/cdsware/Makefile
@@ -85,7 +85,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX}/cdsware \
USE_GMAKE= yes
USE_APACHE= yes
WITH_APACHE2= yes
-USE_PHP= yes
+USE_PHP= zlib pcntl
WANT_PHP_MOD= yes
WANT_PHP_CLI= yes
USE_MYSQL= yes
@@ -111,12 +111,7 @@ ADMINEMAIL?= cds.admin@${unamen}
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST_SUB= WEBDIR=${WEBDIR}
-LDD= /usr/bin/ldd
-
-MOD_DIR= libexec/apache2
APACHE_CONF= ${LOCALBASE}/etc/apache2/httpd.conf
-PHPSO= ${LOCALBASE}/${MOD_DIR}/libphp4.so
-PHPBIN= ${LOCALBASE}/bin/php
CDSWARE_INC= ${PREFIX}/etc/${PORTNAME}
LCDSWARE_CNF= config.wml
CDSWARE_CNF= ${PREFIX}/${PORTNAME}/lib/wml/${PORTNAME}/${LCDSWARE_CNF}
@@ -181,24 +176,6 @@ post-configure:
${WRKSRC}/config/${LCDSWARE_CNF}
.endif
-pre-install:
-.if !defined(PACKAGE_BUILDING)
- @if ! ${PHPBIN} -i | ${GREP} -q -e "pcntl support"; then \
- ${ECHO_MSG} ; \
- ${ECHO_MSG} "Please configure PHP with PCNTL support." ; \
- ${ECHO_MSG} ; \
- ${FALSE} ; \
- fi
-.endif
- @if (! ${LDD} ${PHPSO} | ${GREP} -q -e "libz.so") \
- || (! ${LDD} ${PHPBIN} | ${GREP} -q -e "libz.so"); then \
- ${ECHO_MSG} ; \
- ${ECHO_MSG} "Please configure PHP with ZLIB support." ; \
- ${ECHO_MSG} ; \
- ${FALSE} ; \
- fi ; \
- fi
-
post-install:
@${CHMOD} go-rx ${CDSBIN}/dbexec
@for p in `${LS} ${CDSBIN}` ; \
diff --git a/textproc/cdsware/files/pkg-message.in b/textproc/cdsware/files/pkg-message.in
index 97c79bd5ec6a..6337f01df3b2 100644
--- a/textproc/cdsware/files/pkg-message.in
+++ b/textproc/cdsware/files/pkg-message.in
@@ -16,6 +16,4 @@ To test your installation, you might type `make create-demo-site' and
Don't miss mod_python's pkg-message about threads!
-To run this package, PHP CLI should be compiled with the process control
-support (WITH_PCNTL).
=============================================================================