2001-04-13 00:43:48 -04:00
|
|
|
# New ports collection makefile for: apache2
|
|
|
|
# Date created: 7 April 2001
|
2001-10-24 12:03:38 -04:00
|
|
|
# Whom: Hye-Shik Chang <perky@fallin.lv>
|
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-11-19 17:47:47 -05:00
|
|
|
PORTVERSION= 2.0.28
|
2001-12-13 05:12:38 -05:00
|
|
|
PORTREVISION= 4
|
2001-04-13 10:48:48 -04:00
|
|
|
CATEGORIES= www ipv6
|
2001-11-19 17:47:47 -05:00
|
|
|
MASTER_SITES= http://www.apache.org/dist/httpd/ \
|
|
|
|
http://apache.mirrorcentral.com/dist/httpd/ \
|
|
|
|
http://apache.missouri.edu/dist/httpd/ \
|
|
|
|
http://ftp.epix.net/apache/dist/httpd/ \
|
2001-04-13 00:43:48 -04:00
|
|
|
ftp://ftp.digex.net/pub/packages/network/apache/httpd/ \
|
2001-11-19 17:47:47 -05:00
|
|
|
ftp://ftp.cuckoo.com/pub/mirrors/apache/dist/httpd/
|
2001-04-13 00:43:48 -04:00
|
|
|
DISTNAME= httpd-${PORTVERSION:S/./_/g}-beta
|
1998-02-20 06:09:09 -05:00
|
|
|
|
2001-11-23 00:03:13 -05:00
|
|
|
PATCH_SITES= http://fallin.lv/distfiles/
|
2001-12-01 10:34:47 -05:00
|
|
|
PATCHFILES= ${PORTNAME}-${PORTVERSION}_1.diff
|
2001-11-23 00:03:13 -05:00
|
|
|
|
2001-10-24 12:03:38 -04:00
|
|
|
MAINTAINER?= perky@fallin.lv
|
2001-02-12 11:19:19 -05:00
|
|
|
|
2001-11-06 16:37:06 -05:00
|
|
|
LATEST_LINK= apache2
|
|
|
|
|
2001-04-13 00:43:48 -04:00
|
|
|
WRKSRC= ${WRKDIR}/httpd-${PORTVERSION:S/./_/g}
|
2001-11-19 17:47:47 -05:00
|
|
|
FIND= find
|
|
|
|
|
|
|
|
WITH_MPM?= prefork # or perchild, threaded
|
|
|
|
HTTP_PORT?= 80
|
1998-06-24 15:54:05 -04:00
|
|
|
|
2001-04-13 00:43:48 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2001-11-19 17:47:47 -05: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-11-19 17:47:47 -05:00
|
|
|
--enable-so \
|
2001-04-13 00:43:48 -04:00
|
|
|
--with-suexec-docroot=${PREFIX}/www/data \
|
2001-11-19 17:47:47 -05:00
|
|
|
--with-mpm=${WITH_MPM} \
|
|
|
|
--with-port=${HTTP_PORT} \
|
|
|
|
--includedir=${PREFIX}/include/apache # for apr, apr-util
|
|
|
|
CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
SHARED_MODULES= all cgid
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
MAKE_ENV+= NOPORTDOCS=YES
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SSL) && exists(/usr/lib/libcrypto.so)
|
|
|
|
SHARED_MODULES+= ssl
|
|
|
|
PLIST_SUB+= SSLOPT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SSLOPT="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_PROXY)
|
|
|
|
SHARED_MODULES+= proxy proxy-connect proxy-ftp proxy-http
|
|
|
|
PLIST_SUB+= PROXYOPT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PROXYOPT="@comment "
|
|
|
|
.endif
|
1998-04-21 17:58:18 -04:00
|
|
|
|
2001-11-19 17:47:47 -05:00
|
|
|
.if !defined(WITHOUT_CACHE)
|
|
|
|
SHARED_MODULES+= cache mem-cache file-cache #disk-cache
|
|
|
|
PLIST_SUB+= CACHEOPT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CACHEOPT="@comment "
|
|
|
|
.endif
|
1998-06-24 15:54:05 -04:00
|
|
|
|
2001-11-19 17:47:47 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-mods-shared="${SHARED_MODULES}"
|
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
|
|
|
|
|
2001-11-19 17:47:47 -05:00
|
|
|
pre-extract:
|
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
@${ECHO_MSG} "You can disable support for SSL by defining WITHOUT_SSL."
|
|
|
|
.endif
|
2001-04-13 00:43:48 -04:00
|
|
|
|
|
|
|
post-patch:
|
2001-11-19 17:47:47 -05:00
|
|
|
@${FIND} ${WRKSRC} -name "*.orig" -exec rm -f {} \;
|
1997-10-22 19:51:35 -04:00
|
|
|
|
2001-10-24 12:03:38 -04:00
|
|
|
pre-install:
|
2001-10-29 15:11:04 -05:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
|
2001-10-24 12:03:38 -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>
|