this should have been stubbed out in the first place.
This commit is contained in:
parent
8341a3a165
commit
caf65a64d4
@ -1,83 +1,16 @@
|
||||
# $OpenBSD: Makefile,v 1.44 2002/08/07 22:16:54 avsm Exp $
|
||||
# $OpenBSD: Makefile,v 1.45 2002/09/09 22:16:20 brad Exp $
|
||||
|
||||
BROKEN= "unsupported with possible security holes - use php4 instead"
|
||||
IGNORE= "has been superseded by php4"
|
||||
|
||||
COMMENT= "server-side HTML-embedded scripting language"
|
||||
|
||||
# This port currently only works with archs supporting dynamic loading
|
||||
# and has Apache that supports DSO's.
|
||||
ONLY_FOR_ARCHS= alpha i386 m68k powerpc sparc sparc64
|
||||
|
||||
VERSION= 3.0.18
|
||||
DISTNAME= php-${VERSION}
|
||||
PKGNAME= php3-${VERSION}p2
|
||||
PKGNAME= php3
|
||||
CATEGORIES= www lang
|
||||
NEED_VERSION= 1.500
|
||||
|
||||
HOMEPAGE= http://www.php.net/
|
||||
|
||||
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
||||
|
||||
MASTER_SITES= http://www.php.net/distributions/ \
|
||||
http://us.php.net/distributions/ \
|
||||
http://se.php.net/distributions/ \
|
||||
http://no.php.net/distributions/
|
||||
DISTFILES=
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
|
||||
--with-pcre-regex \
|
||||
--with-xml \
|
||||
--with-config-file-path=/var/www/conf
|
||||
|
||||
LIB_DEPENDS+= expat.2::textproc/expat
|
||||
LIB_DEPENDS+= gdbm::databases/gdbm
|
||||
|
||||
FLAVORS= imap gd mysql postgresql
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:L:Mimap}
|
||||
CONFIGURE_ARGS+= --with-imap=${LOCALBASE}
|
||||
LIB_DEPENDS+= c-client.3:c-client->=4.40p1:mail/c-client
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-imap
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mgd}
|
||||
CONFIGURE_ARGS+= --with-gd --with-jpegdir=${LOCALBASE}/lib
|
||||
LIB_DEPENDS+= gd.18::graphics/gd
|
||||
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -ljpeg"
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-gd
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mmysql}
|
||||
CONFIGURE_ARGS+= --with-mysql
|
||||
LIB_DEPENDS+= lib/mysql/mysqlclient.10:mysql-client-3.23.*:databases/mysql
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-mysql
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mpostgresql}
|
||||
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
|
||||
LIB_DEPENDS+= pq.2::databases/postgresql
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-pgsql
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKBUILD}/libphp3.so ${PREFIX}/lib
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php3
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/php3
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/php3
|
||||
${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/share/doc/php3
|
||||
@sed 's,y0y0y0,${TRUEPREFIX},' \
|
||||
<${FILESDIR}/php3-enable >${PREFIX}/sbin/php3-enable
|
||||
@chown ${BINOWN}:${BINGRP} ${PREFIX}/sbin/php3-enable
|
||||
@chmod ${BINMODE} ${PREFIX}/sbin/php3-enable
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +0,0 @@
|
||||
MD5 (php-3.0.18.tar.gz) = b4b8f7f1151ce66d5f3910a066651133
|
||||
RMD160 (php-3.0.18.tar.gz) = 6ccc72b9766869d114de5d6b589d4116e95b6278
|
||||
SHA1 (php-3.0.18.tar.gz) = 49550006e1dbf8f792bc0b9499b3f0bd7b14427c
|
@ -1,16 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: php3-enable,v 1.2 2000/07/12 11:03:10 jakob Exp $
|
||||
|
||||
MODULE=y0y0y0/lib/libphp3.so
|
||||
INI=y0y0y0/share/doc/php3/php3.ini-dist
|
||||
|
||||
if [ ! -f ${MODULE} ]; then
|
||||
echo "can't find php3 module (${MODULE})"
|
||||
exit 1
|
||||
else
|
||||
echo "enabling php3 module..."
|
||||
/usr/sbin/apxs -i -a -n php3 ${MODULE}
|
||||
echo "note: a sample php3.ini file can be found as ${INI} and should be"
|
||||
echo " installed into /var/www/conf."
|
||||
fi
|
@ -1,112 +0,0 @@
|
||||
$OpenBSD: patch-configure,v 1.4 2002/04/06 21:16:16 brad Exp $
|
||||
--- configure.orig Fri Oct 20 15:05:17 2000
|
||||
+++ configure Sat Apr 6 15:55:22 2002
|
||||
@@ -1493,7 +1493,7 @@ fi
|
||||
echo "$ac_t""$php_cv_cc_rpath" 1>&6
|
||||
if test $php_cv_cc_rpath = "yes"; then
|
||||
ld_runpath_switch="-Wl,-rpath,"
|
||||
- apxs_runpath_switch="-Wl,'-rpath "
|
||||
+ apxs_runpath_switch="-Wl,'-Wl,-rpath,"
|
||||
else
|
||||
ld_runpath_switch="-L"
|
||||
apxs_runpath_switch="-L'"
|
||||
@@ -5157,8 +5157,8 @@ if test "${with_imap+set}" = set; then
|
||||
fi
|
||||
if test "$withval" != "no" && test "$withval" != "yes"; then
|
||||
IMAP_DIR=$withval
|
||||
- if test -f $IMAP_DIR/include/imap/mail.h; then
|
||||
- IMAP_INC_DIR=$IMAP_DIR/include/imap
|
||||
+ if test -f $IMAP_DIR/include/c-client/mail.h; then
|
||||
+ IMAP_INC_DIR=$IMAP_DIR/include/c-client
|
||||
else
|
||||
IMAP_INC_DIR=$withval/include
|
||||
fi
|
||||
@@ -5317,7 +5317,7 @@ if test "${with_imap+set}" = set; then
|
||||
ai_p="`pwd`/$IMAP_INC_DIR"
|
||||
fi
|
||||
|
||||
-
|
||||
+
|
||||
unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9`
|
||||
cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
|
||||
if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
||||
@@ -5328,6 +5328,79 @@ if test "${with_imap+set}" = set; then
|
||||
fi
|
||||
|
||||
fi
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
+ unique=`echo $ac_n "gssapi$ac_c" | tr -c -d a-zA-Z0-9`
|
||||
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
|
||||
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
||||
+ eval "LIBRARY$unique=set"
|
||||
+
|
||||
+ EXTRA_LIBS="$EXTRA_LIBS -lgssapi"
|
||||
+
|
||||
+ fi
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
+ unique=`echo $ac_n "krb$ac_c" | tr -c -d a-zA-Z0-9`
|
||||
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
|
||||
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
||||
+ eval "LIBRARY$unique=set"
|
||||
+
|
||||
+ EXTRA_LIBS="$EXTRA_LIBS -lkrb"
|
||||
+
|
||||
+ fi
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
+ unique=`echo $ac_n "krb5$ac_c" | tr -c -d a-zA-Z0-9`
|
||||
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
|
||||
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
||||
+ eval "LIBRARY$unique=set"
|
||||
+
|
||||
+ EXTRA_LIBS="$EXTRA_LIBS -lkrb5"
|
||||
+
|
||||
+ fi
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
+ unique=`echo $ac_n "asn1$ac_c" | tr -c -d a-zA-Z0-9`
|
||||
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
|
||||
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
||||
+ eval "LIBRARY$unique=set"
|
||||
+
|
||||
+ EXTRA_LIBS="$EXTRA_LIBS -lasn1"
|
||||
+
|
||||
+ fi
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
+ unique=`echo $ac_n "com_err$ac_c" | tr -c -d a-zA-Z0-9`
|
||||
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
|
||||
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
||||
+ eval "LIBRARY$unique=set"
|
||||
+
|
||||
+ EXTRA_LIBS="$EXTRA_LIBS -lcom_err_pic"
|
||||
+
|
||||
+ fi
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
+ unique=`echo $ac_n "kafs$ac_c" | tr -c -d a-zA-Z0-9`
|
||||
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
|
||||
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
||||
+ eval "LIBRARY$unique=set"
|
||||
+
|
||||
+ EXTRA_LIBS="$EXTRA_LIBS -lkafs"
|
||||
+
|
||||
+ fi
|
||||
+
|
||||
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_IMAP 1
|
@ -1,24 +0,0 @@
|
||||
$OpenBSD: patch-functions_mime_c,v 1.1 2002/02/27 16:31:59 brad Exp $
|
||||
--- functions/mime.c.orig Mon Oct 16 21:30:59 2000
|
||||
+++ functions/mime.c Wed Feb 27 10:12:11 2002
|
||||
@@ -85,7 +85,9 @@ void php3_mime_split(char *buf, int cnt,
|
||||
SAFE_RETURN;
|
||||
}
|
||||
loc = memchr(ptr, '\n', rem);
|
||||
+ rem -= loc - ptr;
|
||||
name = strstr(ptr, " name=");
|
||||
+ ptr = loc;
|
||||
if (name && name < loc) {
|
||||
name += 6;
|
||||
s = memchr(name, '\"', loc - name);
|
||||
@@ -138,6 +140,10 @@ void php3_mime_split(char *buf, int cnt,
|
||||
sprintf(lbuf, "%s_name[]", abuf);
|
||||
sbuf=estrdup(abuf);
|
||||
} else {
|
||||
+ if (abuf) {
|
||||
+ efree(abuf);
|
||||
+ abuf = NULL;
|
||||
+ }
|
||||
sprintf(lbuf, "%s_name", namebuf);
|
||||
sbuf=estrdup(namebuf);
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: DEINSTALL,v 1.3 2000/12/15 13:29:33 naddy Exp $
|
||||
#
|
||||
# php3 de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
CONF=`apxs -q SYSCONFDIR`/httpd.conf
|
||||
|
||||
rm -f /usr/lib/apache/modules/libphp3.so
|
||||
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you"
|
||||
echo "| need to perform these steps as root:"
|
||||
echo "|"
|
||||
echo "| edit ${CONF}"
|
||||
echo "| remove the line LoadModule php3_module"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing php3"
|
||||
echo "| package at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
|
||||
exit 0
|
@ -1,9 +0,0 @@
|
||||
At the most basic level, PHP can do anything any other CGI program can
|
||||
do, such as collect form data, generate dynamic page content, or send
|
||||
and receive cookies.
|
||||
|
||||
PHP also has support for talking to other services using protocols
|
||||
such as IMAP, SNMP, NNTP, POP3, or even HTTP. You can also open raw
|
||||
network sockets and interact using other protocols.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
@ -1,47 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: INSTALL,v 1.2 2000/12/15 13:29:33 naddy Exp $
|
||||
#
|
||||
# php3 installation
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To finish the install, you need to enable the php3"
|
||||
echo "| module using the following command"
|
||||
echo "|"
|
||||
echo "| $PREFIX/sbin/php3-enable"
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
do_notice $1
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
1350
www/php3/pkg/PLIST
1350
www/php3/pkg/PLIST
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user