aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_php5
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1997-10-04 22:53:11 +0800
committerandreas <andreas@FreeBSD.org>1997-10-04 22:53:11 +0800
commitdc455bf77d858e5f8db750ad52b0bd9e0e76c7e7 (patch)
treee51fa8c140763137c360a0842b51812f87ef266f /www/mod_php5
parent8dc1d5515f125f5cd602d83ac185f4b4d34986a2 (diff)
downloadfreebsd-ports-gnome-dc455bf77d858e5f8db750ad52b0bd9e0e76c7e7.tar.gz
freebsd-ports-gnome-dc455bf77d858e5f8db750ad52b0bd9e0e76c7e7.tar.zst
freebsd-ports-gnome-dc455bf77d858e5f8db750ad52b0bd9e0e76c7e7.zip
cosmetic changes using portlint, a really nice tool ;-)
Diffstat (limited to 'www/mod_php5')
-rw-r--r--www/mod_php5/Makefile48
1 files changed, 23 insertions, 25 deletions
diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile
index d5e125bc0f60..6e44a4a57df3 100644
--- a/www/mod_php5/Makefile
+++ b/www/mod_php5/Makefile
@@ -3,7 +3,7 @@
# Date created: Wed Sep 3 18:28:20 CEST 1997
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
-# $Id: Makefile,v 1.40 1997/09/03 18:49:53 andreas Exp $
+# $Id: Makefile,v 1.41 1997/09/09 10:01:36 asami Exp $
#
DISTNAME= apache_1.2.1
@@ -11,26 +11,25 @@ PKGNAME= apache-php-1.2.1
CATEGORIES= www
MASTER_SITES= ftp://www.apache.org/apache/dist/ \
ftp://ftp.nerosworld.com/pub/php/dist/ \
- ftp://ftp.u-aizu.ac.jp/pub/net/www/php \
+ ftp://ftp.u-aizu.ac.jp/pub/net/www/php/ \
ftp://ftpza.co.za/pub/mirrors/php/
-DISTFILES= apache_1.2.1.tar.gz \
- php-2.0b12.tar.gz
+DISTFILES= apache_1.2.1.tar.gz php-2.0b12.tar.gz
MAINTAINER= andreas@FreeBSD.ORG
NO_PACKAGE= "Too many questions"
+BROKEN= "php conf-dialogue needs knowledge of include and library paths"
IS_INTERACTIVE= yes
-BROKEN= "Am working on it..."
#
# Currently we support two db's: msql and mysql
#
.if !defined(PHP_DBTYPE)
pre-fetch:
- @echo
- @echo "You must set variable PHP_DBTYPE to msql or mysql by typing"
- @echo "make PHP_DBTYPE=[ msql | mysql ]"
- @false
+ @ ${ECHO}
+ @ ${ECHO} "You must set variable PHP_DBTYPE to msql or mysql by typing"
+ @ ${ECHO} "make PHP_DBTYPE=[ msql | mysql ]"
+ @ ${FALSE}
.elif defined(PHP_DBTYPE)
.if ${PHP_DBTYPE} == msql
@@ -48,40 +47,39 @@ VERS_ID = php-2.0b12/andreas
.if defined(VERS_ID)
post-patch:
- @cd ${WRKSRC}/src && \
- mv Configuration Configuration.old && \
- sed 's;^#*OPTIM=.*;OPTIM= -DSERVER_SUBVERSION=\\"${VERS_ID}\\";' \
+ @ cd ${WRKSRC}/src && \
+ ${MV} Configuration Configuration.old && \
+ ${SED} 's;^#*OPTIM=.*;OPTIM= -DSERVER_SUBVERSION=\\"${VERS_ID}\\";' \
< Configuration.old > Configuration
.endif
-
pre-configure:
- echo "Don\'t forget to add ${PREFIX}/include/gd to additional path !!!"
+ ${ECHO} "Don\'t forget to add ${PREFIX}/include/gd to additional path !"
( cd ${WRKDIR}/php-2.0b12; ./install )
( cd ${WRKDIR}/php-2.0b12/src; make )
( cd ${WRKDIR}/php-2.0b12/src \
- && cp mod_php.c mod_php.h libphp.a ../../apache_1.2.1/src )
+ && ${CP} mod_php.c mod_php.h libphp.a ../../apache_1.2.1/src )
( cd ${WRKDIR}/apache_1.2.1/src \
- && echo "Module php_module mod_php.o" \
+ && ${ECHO} "Module php_module mod_php.o" \
>> Configuration \
.if ${PHP_DBTYPE} == msql
- && echo "EXTRA_LIBS=-lmd libphp.a -L/usr/local/lib -lmsql -lgd -lm" \
+ && ${ECHO} "EXTRA_LIBS=-lmd libphp.a -L/usr/local/lib -lmsql -lgd -lm" \
.else
- && echo "EXTRA_LIBS=-lmd libphp.a -L/usr/local/lib/mysql -lmysql -L/usr/local/lib -lgd -lm" \
+ && ${ECHO} "EXTRA_LIBS=-lmd libphp.a -L/usr/local/lib/mysql -lmysql -L/usr/local/lib -lgd -lm" \
.endif
>> Configuration )
post-install:
- @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
- echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
- echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \
- echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh; \
+ @ if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
+ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
+ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \
+ ${ECHO} "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && ${ECHO} -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh; \
chmod 751 ${PREFIX}/etc/rc.d/apache.sh; \
fi
- echo "AddType application/x-httpd-php .phtml" \
+ ${ECHO} "AddType application/x-httpd-php .phtml" \
> ${PREFIX}/etc/apache/srm.conf.php
- echo "Don't forget to enable php support in \
+ ${ECHO} "Don't forget to enable php support in \
${PREFIX}/etc/apache/srm.conf"
- echo "See ${PREFIX}/etc/apache/srm.conf.php"
+ ${ECHO} "See ${PREFIX}/etc/apache/srm.conf.php"
.include <bsd.port.mk>