e02e606e73
fixes many vulnerabilities just as usual. for more information read http://www.php.net/releases/5_2_3.php add a no_suhosin pseudo-flavor because horde has some problems with the suhosin security patchset
78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
# $OpenBSD: Makefile.inc,v 1.16 2007/07/02 08:53:17 robert Exp $
|
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
# and has Apache that supports DSO's.
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
|
|
|
V= 5.2.3
|
|
SUHOSIN_V= 0.9.6.2
|
|
DISTNAME?= php-${V}
|
|
CATEGORIES= www lang
|
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
|
HOMEPAGE= http://www.php.net/
|
|
|
|
MASTER_SITES= http://us2.php.net/distributions/ \
|
|
http://se.php.net/distributions/ \
|
|
http://no.php.net/distributions/ \
|
|
http://uk.php.net/distributions/
|
|
MASTER_SITES0= http://anoncvs.silihost.hu/
|
|
MASTER_SITES1= http://www.hardened-php.net/suhosin/_media/
|
|
|
|
# UPGRADERS: please read BOTH the PHP and Zend licenses
|
|
# and make sure they are safe before an upgrade
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PHP_CONFIG_PATH= /var/www/conf
|
|
PHP_CONFIG_FILE= ${PHP_CONFIG_PATH}/php.ini
|
|
|
|
# where the main php5 module is stored (outside the chroot)
|
|
APACHE_MODULE_SUBDIR= lib/php
|
|
APACHE_MODULE_DIR= ${LOCALBASE}/${APACHE_MODULE_SUBDIR}
|
|
|
|
# where the PEAR and extension modules are (inside the chroot)
|
|
CHROOT_DIR?= /var/www
|
|
MODULES_SUBDIR= lib/php/modules
|
|
MODULES_DIR= ${CHROOT_DIR}/${MODULES_SUBDIR}
|
|
|
|
.if ${USE_GCC3:L:Myes}
|
|
PHP_LDFLAGS= -lstdc++ -lm
|
|
.endif
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
AUTOCONF_VERSION= 2.52
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -pthread" \
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PHP_LDFLAGS} -pthread" \
|
|
EXTENSION_DIR=${MODULES_DIR}
|
|
MAKE_ENV= ${CONFIGURE_ENV}
|
|
|
|
CONFIGURE_ARGS+= --enable-shared \
|
|
--disable-static \
|
|
--disable-rpath \
|
|
--with-config-file-path=${PHP_CONFIG_PATH} \
|
|
--enable-inline-optimization \
|
|
--with-pic
|
|
|
|
# default included extensions
|
|
CONFIGURE_ARGS+= --with-openssl \
|
|
--with-zlib
|
|
|
|
REGRESS_TARGET= test
|
|
REGRESS_FLAGS= NO_INTERACTION=1
|
|
|
|
CHECKSUM_FILE= ${.CURDIR}/../distinfo
|
|
PATCH_LIST= ${.CURDIR}/../patches/patch-* \
|
|
patch-*
|
|
|
|
PSEUDO_FLAVORS+= no_suhosin
|
|
FLAVOR?=
|
|
.if ${FLAVOR:L:Mno_suhosin}
|
|
SUPDISTFILES= suhosin-patch-${V}-${SUHOSIN_V}.patch.gz:1
|
|
.else
|
|
PATCHFILES= suhosin-patch-${V}-${SUHOSIN_V}.patch.gz:1
|
|
PATCH_DIST_STRIP= -p1
|
|
.endif
|