Fwd: cvs commit: ports/www/apache2 Makefile.modules.3rd

Clement Laforet clement at FreeBSD.org
Wed Jan 26 02:04:04 PST 2005


FYI.
----- Forwarded message from Clement Laforet <clement at FreeBSD.org> -----

From: Clement Laforet <clement at FreeBSD.org>
Date: Wed, 26 Jan 2005 10:00:11 +0000 (UTC)
To: ports-committers at FreeBSD.org, cvs-ports at FreeBSD.org,
	cvs-all at FreeBSD.org
Subject: cvs commit: ports/www/apache2 Makefile.modules.3rd

clement     2005-01-26 10:00:11 UTC

  FreeBSD ports repository

  Modified files:
    www/apache2          Makefile.modules.3rd 
  Log:
  Changes in Makefile.modules.3rd
  o Major change(s)
     - in some cases, modules are still built as static modules, making
       modules selection useless and generate a non-desired httpd
  
  o Minor change(s)
     - apxs detection is done only if port isn't a server one.
     - Mark modules ports as IGNORED if apaxhe is built statically
     - fix make show-modules when when WITH_ALL_STATIC_MODULES is defined
  
  Most issues discovered by:      Jason Mealins <jason_mealins at bigfix.com>
  
  Revision  Changes    Path
  1.16      +22 -10    ports/www/apache2/Makefile.modules.3rd

http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/www/apache2/Makefile.modules.3rd.diff?&r1=1.15&r2=1.16&f=h&f=u


===================================================================
RCS file: /usr/local/www/cvsroot/FreeBSD/ports/www/apache2/Makefile.modules.3rd,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- ports/www/apache2/Makefile.modules.3rd	2005/01/25 10:11:34	1.15
+++ ports/www/apache2/Makefile.modules.3rd	2005/01/26 10:00:11	1.16
@@ -1,6 +1,6 @@
 # Makefile.modules.3rd
 #
-# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/ports/www/apache2/Makefile.modules.3rd,v 1.15 2005/01/25 10:11:34 clement Exp $
+# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/ports/www/apache2/Makefile.modules.3rd,v 1.16 2005/01/26 10:00:11 clement Exp $
 #
 # Author: Clement Laforet <clement at FreeBSD.org>
 # If you have questions, please contact me.
@@ -18,15 +18,6 @@ OVERRIDABLE_VARS=	SRC_FILE MODULENAME SH
 			PKGNAMESUFFIX
 
 
-.if exists(${APXS})
-APXS_PREFIX!=	${APXS} -q prefix
-.   if defined(AP_GENPLIST) && ${APXS_PREFIX} != ${PREFIX}
-IGNORE=	PREFIX must be egal to APXS_PREFIX.
-.   endif
-.else
-APXS_PREFIX=	${APXS:S/\/sbin\/apxs//}
-.endif
-
 .if exists(${APXS_PREFIX}/include/apache2/http_core.h)
 WITH_APACHE2=	YES
 .   if defined (WANT_APACHE)
@@ -59,6 +50,18 @@ IGNORE=		"Unknown apache version"
 .endif
 
 .if !defined(PORT_IS_SERVER)
+.if exists(${APXS})
+APXS_PREFIX!=	${APXS} -q prefix 2> /dev/null || true
+.   if defined(APXS_PREFIX)
+IGNORE=	: Your apache does not support DSO modules
+.   endif
+.   if defined(AP_GENPLIST) && ${APXS_PREFIX} != ${PREFIX}
+IGNORE?=	PREFIX must be egal to APXS_PREFIX.
+.   endif
+.else
+APXS_PREFIX=	${APXS:S/\/sbin\/apxs//}
+.endif
+
 .if defined(WITH_APACHE2)
 AP_BUILDEXT=	la
 PLIST_SUB+=	APACHEMODDIR="libexec/apache2"
@@ -147,6 +150,14 @@ ${module}_PLIST_SUB=	"@comment "
 .if ${WANT_APACHE} == common13
 # dirty hack to make sure all modules are disabled before we select them
 CONFIGURE_ARGS+=	--disable-module="all"
+.elif ${WANT_APACHE} == common2
+CONFIGURE_ARGS+=	--disable-access --disable-auth \
+			--disable-charset-lite --disable-include \
+			--disable-log-config --disable-env --disable-setenvif \
+			--disable-mime --disable-status --disable-autoindex \
+			--disable-asis --disable-cgid --disable-cgi \
+			--disable-negotiation --disable-dir --disable-imap \
+			--disable-actions --disable-userdir --disable-alias
 .endif
 
 .if defined(WITH_MODULES)
@@ -243,6 +254,7 @@ _CONFIGURE_ARGS!=	\
 					fi; done
 CONFIGURE_ARGS+=	${_CONFIGURE_ARGS}
 .elif defined(WITH_STATIC_APACHE) || defined(WITH_ALL_STATIC_MODULES)
+WITH_STATIC_MODULES=	${APACHE_MODULES}
 .    if ${WANT_APACHE} == common13
 .      for module in ${APACHE_MODULES}
 CONFIGURE_ARGS+=	--enable-module=${module}

----- End forwarded message -----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-apache/attachments/20050126/a9c5e4ea/attachment.bin


More information about the freebsd-apache mailing list