1997-08-12 13:49:12 +02:00
|
|
|
# New ports collection makefile for: apache HTTPD
|
1995-08-28 15:28:45 +02:00
|
|
|
# Date created: Fri Aug 25 16:42:36 CDT 1995
|
1999-09-03 18:07:53 +02:00
|
|
|
# Whom: ache@freebsd.org
|
1995-08-28 15:28:45 +02:00
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1995-08-28 15:28:45 +02:00
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= apache
|
2008-01-21 04:39:57 +01:00
|
|
|
PORTVERSION= 1.3.41
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= www
|
2005-11-25 04:17:11 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
|
2000-08-22 05:41:05 +02:00
|
|
|
DISTNAME= apache_${PORTVERSION}
|
1998-02-20 12:09:09 +01:00
|
|
|
|
2005-11-25 04:17:11 +01:00
|
|
|
#PATCH_SITES= ${MASTER_SITE_APACHE_HTTPD}
|
2008-01-21 04:39:57 +01:00
|
|
|
#PATCH_SITE_SUBDIR= patches/apply_to_1.3.41/
|
2002-06-19 04:02:03 +02:00
|
|
|
#PATCHFILES=
|
|
|
|
#PATCH_DIST_ARGS= -d ${WRKSRC}/src --forward --quiet -E ${PATCH_DIST_STRIP}
|
2001-02-12 17:19:19 +01:00
|
|
|
|
2000-08-22 05:41:05 +02:00
|
|
|
MAINTAINER= ache@freebsd.org
|
2005-11-25 04:17:11 +01:00
|
|
|
COMMENT= The extremely popular Apache http server. Very fast, very clean
|
1996-05-20 09:37:06 +02:00
|
|
|
|
2004-03-18 21:50:09 +01:00
|
|
|
CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.* \
|
|
|
|
apache+mod_ssl+mod_snmp+ipv6-1.* apache+mod_ssl+mod_accel-1.* \
|
|
|
|
apache+mod_ssl+mod_snmp+mod_accel-1.* \
|
|
|
|
apache+ipv6-1.* apache+ssl-1.* apache-2.* apache_fp-1.* \
|
2007-10-13 20:39:52 +02:00
|
|
|
caudium-devel-1.* caudium10-1.* caudium12-1.* \
|
2007-06-15 01:31:27 +02:00
|
|
|
ru-apache+mod_ssl-1.* ru-apache-1.*
|
2005-11-25 04:17:11 +01:00
|
|
|
USE_PERL5= yes
|
2007-10-01 06:00:08 +02:00
|
|
|
USE_RC_SUBR= apache
|
2002-11-04 21:59:13 +01:00
|
|
|
|
2004-05-27 05:31:41 +02:00
|
|
|
.if defined(APACHE_DATADIR)
|
|
|
|
DATADIR=${APACHE_DATADIR}
|
|
|
|
.else
|
2002-05-09 04:12:15 +02:00
|
|
|
DATADIR=${PREFIX}/www
|
2004-05-27 05:31:41 +02:00
|
|
|
.endif
|
|
|
|
.if defined(APACHE_DOCUMENT_ROOT)
|
|
|
|
DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
|
|
|
|
.else
|
2002-05-09 04:12:15 +02:00
|
|
|
DOCUMENT_ROOT=${DATADIR}/data
|
2004-05-27 05:31:41 +02:00
|
|
|
.endif
|
|
|
|
.if defined(APACHE_CGIBIN_ROOT)
|
|
|
|
CGIBIN_ROOT=${APACHE_CGIBIN_ROOT}
|
|
|
|
.else
|
|
|
|
CGIBIN_ROOT=${DATADIR}/cgi-bin
|
|
|
|
.endif
|
2002-05-07 06:33:04 +02:00
|
|
|
DEFAULT_PATH=/bin:/usr/bin:${PREFIX}/bin
|
|
|
|
|
2008-09-23 14:34:37 +02:00
|
|
|
.if defined(WITHOUT_APACHE_EXPAT)
|
2005-11-25 04:17:11 +01:00
|
|
|
EXPAT_CONF+= --disable-rule=EXPAT
|
2003-02-17 00:51:17 +01:00
|
|
|
.else
|
2008-09-23 14:34:37 +02:00
|
|
|
.if !defined(WITH_APACHE_INTERNAL_EXPAT)
|
2006-01-31 00:20:05 +01:00
|
|
|
LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2
|
2003-09-02 01:45:32 +02:00
|
|
|
.endif
|
2005-11-25 04:17:11 +01:00
|
|
|
EXPAT_CONF+= --enable-rule=EXPAT
|
2003-02-17 00:51:17 +01:00
|
|
|
.endif
|
|
|
|
|
2008-09-23 14:34:37 +02:00
|
|
|
.if defined(WITH_APACHE_SUEXEC)
|
2002-05-07 06:33:04 +02:00
|
|
|
|
|
|
|
APACHE_SUEXEC_DOCROOT?=${DOCUMENT_ROOT}
|
2002-10-30 02:56:05 +01:00
|
|
|
APACHE_SUEXEC_LOG?=/var/log/httpd-suexec.log
|
2002-05-07 06:33:04 +02:00
|
|
|
APACHE_SUEXEC_USERDIR?=public_html
|
2003-08-17 20:28:39 +02:00
|
|
|
APACHE_SUEXEC_UIDMIN?=1000
|
|
|
|
APACHE_SUEXEC_GIDMIN?=1000
|
|
|
|
APACHE_SUEXEC_CALLER?=www
|
2002-05-07 06:33:04 +02:00
|
|
|
|
2005-11-25 04:17:11 +01:00
|
|
|
SUEXEC_CONF= \
|
2002-05-07 06:33:04 +02:00
|
|
|
--enable-suexec \
|
|
|
|
--suexec-docroot=${APACHE_SUEXEC_DOCROOT} \
|
2003-08-17 20:28:39 +02:00
|
|
|
--suexec-caller=${APACHE_SUEXEC_CALLER} \
|
|
|
|
--suexec-uidmin=${APACHE_SUEXEC_UIDMIN} \
|
|
|
|
--suexec-gidmin=${APACHE_SUEXEC_GIDMIN} \
|
2002-10-30 02:56:05 +01:00
|
|
|
--suexec-logfile=${APACHE_SUEXEC_LOG} \
|
2002-05-07 06:33:04 +02:00
|
|
|
--suexec-userdir=${APACHE_SUEXEC_USERDIR} \
|
|
|
|
--suexec-safepath=${DEFAULT_PATH}
|
|
|
|
|
|
|
|
.if defined(APACHE_SUEXEC_UMASK)
|
2005-11-25 04:17:11 +01:00
|
|
|
SUEXEC_CONF+= \
|
2002-05-07 06:33:04 +02:00
|
|
|
--suexec-umask=${APACHE_SUEXEC_UMASK}
|
|
|
|
.endif
|
|
|
|
|
2005-11-25 04:17:11 +01:00
|
|
|
PLIST_SUB+= SUB_SUEXEC=""
|
|
|
|
SUEXEC_MAN= suexec.8
|
2002-05-07 06:33:04 +02:00
|
|
|
|
2005-11-25 04:17:11 +01:00
|
|
|
.else # !SUEXEC
|
2002-05-07 06:33:04 +02:00
|
|
|
|
|
|
|
SUEXEC_CONF=
|
2005-11-25 04:17:11 +01:00
|
|
|
PLIST_SUB+= SUB_SUEXEC="@comment "
|
2002-05-07 06:33:04 +02:00
|
|
|
SUEXEC_MAN=
|
|
|
|
|
|
|
|
.endif # !SUEXEC
|
|
|
|
|
2007-10-19 08:57:30 +02:00
|
|
|
.if !defined(NOPORTDOC)
|
|
|
|
PLIST_SUB+= NODOCS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NODOCS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-11-25 04:17:11 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2001-10-28 21:38:44 +01:00
|
|
|
# += for child ports
|
|
|
|
CONFIGURE_ARGS+= \
|
2000-08-22 05:41:05 +02:00
|
|
|
--prefix=${PREFIX} \
|
2001-10-21 19:33:37 +02:00
|
|
|
--server-uid=www \
|
|
|
|
--server-gid=www \
|
2000-08-22 05:41:05 +02:00
|
|
|
--with-perl=${PERL} \
|
2002-01-25 06:40:18 +01:00
|
|
|
--with-layout=FreeBSD \
|
2004-05-27 05:31:41 +02:00
|
|
|
--datadir=${DATADIR} \
|
|
|
|
--htdocsdir=${DOCUMENT_ROOT} \
|
|
|
|
--cgidir=${CGIBIN_ROOT} \
|
2000-08-22 05:41:05 +02:00
|
|
|
--without-confadjust \
|
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
2000-10-12 00:37:56 +02:00
|
|
|
--enable-module=mmap_static \
|
|
|
|
--disable-module=auth_dbm \
|
2002-05-07 06:33:04 +02:00
|
|
|
--enable-shared=max \
|
2003-02-17 00:51:17 +01:00
|
|
|
${SUEXEC_CONF} \
|
|
|
|
${EXPAT_CONF}
|
1998-04-21 23:58:18 +02:00
|
|
|
|
2003-02-19 02:02:48 +01:00
|
|
|
CFLAGS+=-DDOCUMENT_LOCATION=\\\\\"${DOCUMENT_ROOT}\\\\\" \
|
|
|
|
-DDEFAULT_PATH=\\\\\"${DEFAULT_PATH}\\\\\"
|
1998-06-24 21:54:05 +02:00
|
|
|
|
2002-02-19 08:00:34 +01:00
|
|
|
#
|
|
|
|
# Set APACHE_HARD_SERVER_LIMIT env. variable to desired value
|
|
|
|
#
|
|
|
|
.if defined(APACHE_HARD_SERVER_LIMIT)
|
2003-02-16 06:58:22 +01:00
|
|
|
CFLAGS+=-DHARD_SERVER_LIMIT=${APACHE_HARD_SERVER_LIMIT}
|
2002-02-19 08:00:34 +01:00
|
|
|
.else
|
2003-02-16 06:58:22 +01:00
|
|
|
CFLAGS+=-DHARD_SERVER_LIMIT=512
|
2002-02-19 08:00:34 +01:00
|
|
|
.endif
|
|
|
|
|
2001-10-21 19:33:37 +02:00
|
|
|
#
|
2008-09-23 14:34:37 +02:00
|
|
|
# Set WITH_APACHE_PERF_TUNING env. variable to get maximum performance
|
2001-10-21 19:33:37 +02:00
|
|
|
#
|
2008-09-23 14:34:37 +02:00
|
|
|
.if defined(WITH_APACHE_PERF_TUNING)
|
2003-02-16 06:58:22 +01:00
|
|
|
CFLAGS+=-DBUFFERED_LOGS
|
2003-02-17 00:51:17 +01:00
|
|
|
# Don't use OPTIM below, it is inserted _before_ CFLAGS
|
2005-01-30 15:50:21 +01:00
|
|
|
CFLAGS+=-O3
|
1998-06-24 21:54:05 +02:00
|
|
|
.endif
|
|
|
|
|
2005-11-25 04:17:11 +01:00
|
|
|
CONFIGURE_ENV= OPTIM='${OPTIM}' LD_SHLIB='${CC}' LIBS='${LIBS}'
|
2003-02-17 00:51:17 +01:00
|
|
|
|
2008-09-23 14:34:37 +02:00
|
|
|
.if !defined(WITHOUT_APACHE_EXPAT) && !defined(WITH_APACHE_INTERNAL_EXPAT)
|
2005-11-25 04:17:11 +01:00
|
|
|
CONFIGURE_ENV+= \
|
2003-02-16 06:58:22 +01:00
|
|
|
INCLUDES=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS=-L${LOCALBASE}/lib
|
2003-02-17 00:51:17 +01:00
|
|
|
.endif
|
1998-04-21 23:58:18 +02:00
|
|
|
|
2000-08-22 05:41:05 +02:00
|
|
|
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
|
2005-11-25 04:17:11 +01:00
|
|
|
MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 \
|
2002-05-07 06:33:04 +02:00
|
|
|
${SUEXEC_MAN}
|
1997-10-23 01:51:35 +02:00
|
|
|
|
2007-10-19 08:57:30 +02:00
|
|
|
post-patch:
|
|
|
|
.if defined(NOPORTDOC)
|
|
|
|
@(cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/no_port_doc)
|
|
|
|
.endif
|
|
|
|
|
2001-10-21 19:33:37 +02:00
|
|
|
pre-install:
|
2002-10-06 09:29:24 +02:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2001-10-21 19:33:37 +02:00
|
|
|
|
1996-06-15 18:58:09 +02:00
|
|
|
post-install:
|
2002-03-24 21:21:46 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1996-06-15 18:58:09 +02:00
|
|
|
|
2005-12-05 09:29:57 +01:00
|
|
|
.include <bsd.port.mk>
|