# New ports collection makefile for: apache2 # Date created: 7 April 2001 # Whom: Hye-Shik Chang # # $FreeBSD$ # PORTNAME= apache PORTVERSION= 2.0.32 CATEGORIES= www ipv6 MASTER_SITES= http://www.apache.org/dist/httpd/ \ http://www.freebsd.org/gifs/ \ http://apache.mirrorcentral.com/dist/httpd/ \ http://www2.freebsd.org/gifs/ \ http://apache.missouri.edu/dist/httpd/ \ http://ftp.epix.net/apache/dist/httpd/ \ ftp://ftp.digex.net/pub/packages/network/apache/httpd/ \ ftp://ftp.cuckoo.com/pub/mirrors/apache/dist/httpd/ DISTNAME= httpd-${PORTVERSION}-beta DISTFILES= ${DISTNAME}.tar.gz powerlogo.gif EXTRACT_ONLY= ${DISTNAME}.tar.gz MAINTAINER?= perky@fallin.lv LATEST_LINK= apache2 WRKSRC= ${WRKDIR}/httpd-${PORTVERSION} WITH_MPM?= prefork # or worker, perchild (neither of them is working yet) HTTP_PORT?= 80 GNU_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} \ --enable-layout=FreeBSD \ --with-perl=${PERL} \ --enable-so \ --with-suexec-docroot=${PREFIX}/www/data \ --with-mpm=${WITH_MPM} \ --with-port=${HTTP_PORT} \ --libdir=${PREFIX}/lib/apache \ --includedir=${PREFIX}/include/apache CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" \ LDFLAGS="${LDFLAGS}" SHARED_MODULES= all cgid cache file-cache disk-cache proxy proxy-connect \ proxy-ftp proxy-http .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 ${WITH_MPM} != "prefork" CONFIGURE_ARGS+= --enable-threads SHARED_MODULES+= mem-cache PLIST_SUB+= THREADONLY="" PKGNAMESUFFIX= -${WITH_MPM} .else PLIST_SUB+= THREADONLY="@comment " .endif CONFIGURE_ARGS+= --enable-mods-shared="${SHARED_MODULES}" MAN1= dbmmanage.1 htdigest.1 htpasswd.1 MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 suexec.8 pre-extract: .if !defined(WITHOUT_SSL) @${ECHO_MSG} "You can disable support for SSL by defining WITHOUT_SSL." .endif post-extract: @${CP} ${DISTDIR}/powerlogo.gif ${WRKSRC}/docs/icons/freebsd.gif post-patch: @cd ${WRKSRC}/docs/docroot && \ for f in index.html.*; do (\ ${PERL} -pi -e 's,apache_pb,icons/freebsd.gif" ALT="[Powered by FreeBSD]">