1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Fix build with Apache 2.4.

PR:		193200
Submitted by:	Daniel Austin <freebsd-ports@dan.me.uk>
This commit is contained in:
Bryan Drewery 2015-07-28 23:43:01 +00:00
parent 40addee0d2
commit caee385065
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393137
2 changed files with 15 additions and 3 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= suphp
PORTVERSION= 0.7.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.suphp.org/download/ \
LOCAL/bdrewery/${PORTNAME}/ \
@ -16,7 +16,7 @@ GNU_CONFIGURE= yes
USES= autoreconf libtool
SUB_FILES= pkg-message
USE_APACHE= 22
USE_APACHE= 22+
CFLAGS+= -I${LOCALBASE}/include
USE_CSTD= gnu89
USE_PHP= yes
@ -28,7 +28,8 @@ MYPORTDOCS= apache/CONFIG \
CONFIG LICENSE \
INSTALL README
CONFIGURE_ARGS= CFLAGS="${CFLAGS}" --with-apxs=${APXS}
CONFIGURE_ARGS= CFLAGS="${CFLAGS} -I`${LOCALBASE}/bin/apr-1-config --includedir`" \
--with-apxs=${APXS}
# WITH_SETID_MODE should be a value of "owner", "force", or "paranoid".
# It's important that you understand the differences between each mode.

View File

@ -0,0 +1,11 @@
--- configure.ac.orig 2014-08-31 10:39:02.982846403 +0100
+++ configure.ac 2014-08-31 10:39:31.763844267 +0100
@@ -15343,7 +15343,7 @@
| cut -f2 -d"/" \
| cut -f1 -d" "`
major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
- if test "$major_version" = "2.0" -o "$major_version" = "2.2"; then
+ if test "$major_version" = "2.0" -o "$major_version" = "2.2" -o "$major_version" = "2.4"; then
APACHE_VERSION_2=true
APACHE_VERSION_1_3=false
else