pkgsrc/www/php3/Makefile
jlam da63540a46 Update php3 and ap-php3 to 3.0.18nb1. Changes from version 3.0.18 are
a security fix for a file-upload bug.

			<===> SECURITY NOTE <===>

Note that the buffer overflow fix is a major security fix.  Quoting from
the security advisory at:

        http://security.e-matters.de/advisories/012002.html

"PHP supports multipart/form-data POST requests (as described in RFC1867)
known as POST fileuploads. Unfourtunately there are several flaws in the
php_mime_split function that could be used by an attacker to execute
arbitrary code. During our research we found out that not only PHP4 but
also older versions from the PHP3 tree are vulnerable.
2002-02-28 15:07:16 +00:00

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.33 2002/02/28 15:07:17 jlam Exp $
PKGNAME= php-${BASE_VERS}
PKGREVISION?= 1
CATEGORIES+= lang
COMMENT= HTML-embedded programming language
USE_BUILDLINK_ONLY= yes
.include "Makefile.common"
BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
CPPFLAGS+= -DPHP_INTERNAL_FUNCS
FILES_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
CGIDIR= ${PREFIX}/libexec/cgi-bin
EGDIR= ${PREFIX}/share/examples/php3
DATADIR= ${PREFIX}/share/php3
OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
CONF_FILES= ${EGDIR}/php3.ini.example ${PKG_SYSCONFDIR}/php3.ini
post-build:
cd ${WRKSRC}/convertor; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
pre-install:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/php3.ini.example \
> ${WRKDIR}/php3.ini.example
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/php ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/convertor/convertor \
${PREFIX}/bin/php2convert
${LN} -sf ../../bin/php ${CGIDIR}/php
${INSTALL_DATA_DIR} ${DATADIR} ${EGDIR}
cd ${WRKSRC}/extra/icons; ${INSTALL_DATA} * ${DATADIR}
cd ${WRKSRC}/examples; ${INSTALL_DATA} README* *.php3 ${EGDIR}
${INSTALL_DATA} ${WRKDIR}/php3.ini.example ${EGDIR}
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"