2001-04-13 00:43:48 -04:00
|
|
|
# New ports collection makefile for: apache2
|
|
|
|
# Date created: 7 April 2001
|
|
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
1995-08-28 09:28:45 -04:00
|
|
|
#
|
1999-08-30 22:43:35 -04:00
|
|
|
# $FreeBSD$
|
1995-08-28 09:28:45 -04:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:07:29 -04:00
|
|
|
PORTNAME= apache
|
2001-04-13 00:43:48 -04:00
|
|
|
PORTVERSION= 2.0.16
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= www
|
2001-04-13 00:43:48 -04:00
|
|
|
MASTER_SITES= http://httpd.apache.org/dist/httpd/ \
|
|
|
|
http://www.cybernic.com/mirror/dist/httpd/ \
|
|
|
|
http://mirrors.partnersforever.net/apache/dist/httpd/ \
|
|
|
|
http://www.technotopia.com/vroom/apache/dist/httpd/ \
|
|
|
|
http://www.tux.org/pub/net/apache/dist/httpd/ \
|
|
|
|
ftp://ftp.raver.net/pub/ftp.apache.org/httpd/ \
|
2001-04-06 20:41:51 -04:00
|
|
|
ftp://ftp.epix.net/pub/apache/dist/httpd/ \
|
|
|
|
ftp://ftp.connectnet.com/pub/www/apache/httpd/ \
|
2001-04-13 00:43:48 -04:00
|
|
|
ftp://ftp.digex.net/pub/packages/network/apache/httpd/ \
|
|
|
|
ftp://ftp.cuckoo.com/pub/mirrors/apache/httpd/
|
|
|
|
DISTNAME= httpd-${PORTVERSION:S/./_/g}-beta
|
1998-02-20 06:09:09 -05:00
|
|
|
|
2001-04-13 00:43:48 -04:00
|
|
|
MAINTAINER?= perky@python.or.kr
|
2001-02-12 11:19:19 -05:00
|
|
|
|
2001-04-13 00:43:48 -04:00
|
|
|
WRKSRC= ${WRKDIR}/httpd-${PORTVERSION:S/./_/g}
|
|
|
|
FIND?= find
|
|
|
|
XARGS?= xargs
|
1996-05-20 03:37:06 -04:00
|
|
|
|
2001-04-13 00:43:48 -04:00
|
|
|
# apache2 doesn't process '--enable-share=max' option yet.
|
|
|
|
# and some modules are very unstable at DSO mode.
|
|
|
|
SHARED_MODS?= unique_id mime_magic rewrite speling auth_db \
|
|
|
|
auth_anon digest headers cern_meta expires include \
|
|
|
|
cgid status info usertrack dav dav_fs imap proxy \
|
|
|
|
auth_digest file_cache echo optional_fn_import \
|
|
|
|
optional_fn_export
|
|
|
|
STATIC_MODS?= so env setenvif dir autoindex access auth negotiation \
|
|
|
|
userdir alias asis cgi mime log_config vhost_alias actions
|
1998-06-24 15:54:05 -04:00
|
|
|
|
2001-04-13 00:43:48 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2000-08-21 23:41:05 -04:00
|
|
|
CONFIGURE_ARGS= \
|
|
|
|
--prefix=${PREFIX} \
|
2001-04-13 00:43:48 -04:00
|
|
|
--enable-layout=FreeBSD \
|
2000-08-21 23:41:05 -04:00
|
|
|
--with-perl=${PERL} \
|
2001-04-13 00:43:48 -04:00
|
|
|
--with-suexec-docroot=${PREFIX}/www/data \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-threads \
|
|
|
|
--with-mpm=prefork # Apache's thread doesn't work well in FreeBSD
|
1998-04-21 17:58:18 -04:00
|
|
|
|
2001-04-13 00:43:48 -04:00
|
|
|
OPTIM+= -DHARD_SERVER_LIMIT=512 \
|
|
|
|
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"
|
1998-06-24 15:54:05 -04:00
|
|
|
|
2000-08-21 23:41:05 -04:00
|
|
|
CONFIGURE_ENV= OPTIM='${OPTIM}'
|
1998-04-21 17:58:18 -04:00
|
|
|
|
2000-08-21 23:41:05 -04:00
|
|
|
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
|
2001-04-13 00:43:48 -04:00
|
|
|
MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 suexec.8
|
|
|
|
|
|
|
|
.for mod in ${SHARED_MODS}
|
|
|
|
CONFIGURE_ARGS+= --enable-${mod}=shared
|
|
|
|
.endfor
|
|
|
|
.for mod in ${STATIC_MODS}
|
|
|
|
CONFIGURE_ARGS+= --enable-${mod}=yes
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name "*.orig"|${XARGS} ${RM} -f
|
1997-10-22 19:51:35 -04:00
|
|
|
|
1996-06-15 12:58:09 -04:00
|
|
|
post-install:
|
1996-06-15 13:51:08 -04:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
|
1999-08-27 18:30:39 -04:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
|
2000-07-05 08:37:06 -04:00
|
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \
|
1996-06-15 13:51:08 -04:00
|
|
|
fi
|
1996-06-15 12:58:09 -04:00
|
|
|
|
1995-08-28 09:28:45 -04:00
|
|
|
.include <bsd.port.mk>
|