1998-11-10 01:56:01 +00:00
|
|
|
# New ports collection makefile for: apache HTTPD w/FrontPage Module
|
|
|
|
# Version required: 1.3* 3.0.4 (3.0.2.1330)
|
|
|
|
# Date created: Sat Oct 31 16:30:00 CDT 1997
|
1998-05-29 04:46:56 +00:00
|
|
|
# Whom: hetzels@westbend.net
|
|
|
|
#
|
1999-03-26 14:07:16 +00:00
|
|
|
# $Id: Makefile,v 1.10 1999/03/13 17:57:44 billf Exp $
|
1998-05-29 04:46:56 +00:00
|
|
|
#
|
|
|
|
|
1999-01-26 02:27:31 +00:00
|
|
|
DISTNAME= apache_${AP_VERS}
|
|
|
|
PKGNAME= apache_fp-${AP_VERS}
|
1998-05-29 04:46:56 +00:00
|
|
|
CATEGORIES= www
|
1999-03-13 17:11:04 +00:00
|
|
|
MASTER_SITES= http://www.apache.org/dist/ \
|
1998-11-19 22:48:42 +00:00
|
|
|
ftp://ftp.microsoft.com/products/frontpage/ \
|
1999-03-13 17:57:44 +00:00
|
|
|
ftp://sunsite.doc.ic.ac.uk/Mirrors/ftp.microsoft.com/Products/frontpage/ \
|
1999-03-13 17:11:04 +00:00
|
|
|
ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/ \
|
|
|
|
ftp://ftp.rge.com/pub/infosystems/apache/dist/ \
|
|
|
|
ftp://apache.compuex.com/pub/apache/dist/ \
|
|
|
|
ftp://apache.arctic.org/pub/apache/dist/ \
|
|
|
|
ftp://ftp.epix.net/pub/apache/dist/ \
|
|
|
|
ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apache/dist/ \
|
|
|
|
ftp://ftp.connectnet.com/pub/www/apache/ \
|
|
|
|
ftp://apache.technomancer.com/mirrors/apache/dist/ \
|
|
|
|
ftp://ftp.raver.net/pub/ftp.apache.org/ \
|
|
|
|
ftp://www3.service.digital.com/apache/dist/ \
|
|
|
|
ftp://galileo.galilei.com/pub/apache/ \
|
|
|
|
ftp://ftp.mtnranch.net/pub/apache/dist/ \
|
|
|
|
ftp://ftp.iodynamics.com/pub/mirror/apache/dist/ \
|
|
|
|
ftp://apache.nextpath.com/pub/apache/dist/
|
1999-01-26 02:27:31 +00:00
|
|
|
DISTFILES= ${APACHE} ${FRONTPAGE}
|
|
|
|
|
|
|
|
MAINTAINER= hetzels@westbend.net
|
|
|
|
|
1999-03-13 17:11:04 +00:00
|
|
|
#PATCH_SITES= http://www.apache.org/dist//patches/apply_to_${AP_VERS}/ \
|
1999-01-26 02:27:31 +00:00
|
|
|
# http://www.apache.org/dist/patches/apply_to_${AP_VERS}/
|
|
|
|
#PATCHFILES=
|
1998-05-29 04:46:56 +00:00
|
|
|
|
|
|
|
.if defined(PATCH_DEBUG)
|
1998-11-10 01:56:01 +00:00
|
|
|
PATCH_DIST_ARGS= -d ${WRKSRC}/src -E ${PATCH_DIST_STRIP}
|
1998-05-29 04:46:56 +00:00
|
|
|
.else
|
1998-11-10 01:56:01 +00:00
|
|
|
PATCH_DIST_ARGS= -d ${WRKSRC}/src --forward --quiet -E ${PATCH_DIST_STRIP}
|
1998-05-29 04:46:56 +00:00
|
|
|
.endif
|
|
|
|
|
1999-01-26 02:27:31 +00:00
|
|
|
AP_VERS= 1.3.4
|
1998-11-10 01:56:01 +00:00
|
|
|
APACHE= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
FRONTPAGE= fp30.bsdi3.tar.Z
|
|
|
|
|
1998-05-29 04:46:56 +00:00
|
|
|
EXTRACT_ONLY= ${APACHE}
|
|
|
|
|
|
|
|
IS_INTERACTIVE= YES
|
|
|
|
NO_PACKAGE= \
|
|
|
|
"The FrontPage Installer needs to create FrontPage Admin user and password"
|
|
|
|
|
|
|
|
FPINSTALL= frontpage/version3.0/fp_install.sh
|
|
|
|
CHANGESERVER= frontpage/version3.0/change_server.sh
|
1998-11-10 01:56:01 +00:00
|
|
|
MOD_FP= ${FILESDIR}/mod_frontpage.c
|
1998-05-29 04:46:56 +00:00
|
|
|
|
|
|
|
INSTALL_FILE=${INSTALL} -c -m 555 -o bin -g bin
|
|
|
|
|
1999-01-26 02:27:31 +00:00
|
|
|
Y2K= http://www.apache.org/docs/misc/FAQ.html#year2000
|
|
|
|
|
1998-11-10 01:56:01 +00:00
|
|
|
#
|
|
|
|
# Set APACHE_PERF_TUNING env. variable to YES to get maximum performance
|
|
|
|
#
|
|
|
|
|
1999-03-26 14:07:16 +00:00
|
|
|
HAS_CONFIGURE= yes
|
1998-11-10 01:56:01 +00:00
|
|
|
CONFIGURE_ARGS= \
|
1999-01-26 02:27:31 +00:00
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--with-layout=GNU \
|
1998-11-10 01:56:01 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/apache \
|
|
|
|
--includedir=${PREFIX}/include/apache \
|
1999-01-26 02:27:31 +00:00
|
|
|
--localstatedir=/var \
|
1998-11-10 01:56:01 +00:00
|
|
|
--datadir=${PREFIX}/www \
|
|
|
|
--proxycachedir=${PREFIX}/www/proxy \
|
|
|
|
--libexecdir=${PREFIX}/libexec/apache \
|
|
|
|
--without-confadjust \
|
|
|
|
--enable-shared=remain \
|
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
|
|
|
--disable-module=auth_dbm \
|
|
|
|
--add-module=${MOD_FP} \
|
|
|
|
--enable-shared=frontpage
|
|
|
|
|
|
|
|
# Currently perl version doesn't matter
|
1999-01-26 02:27:31 +00:00
|
|
|
USE_PERL5= YES
|
|
|
|
CONFIGURE_ARGS+= --with-perl=${PERL5}
|
1998-11-10 01:56:01 +00:00
|
|
|
|
|
|
|
OPTIM=-DHARD_SERVER_LIMIT=512 \
|
|
|
|
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
|
|
|
|
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"
|
|
|
|
|
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
|
|
|
OPTIM+= -DBUFFERED_LOGS
|
|
|
|
CFLAGS+= -O6 -fomit-frame-pointer
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV= OPTIM='${OPTIM}'
|
|
|
|
|
|
|
|
MAN1= ab.1 apachectl.1 dbmmanage.1 htdigest.1 htpasswd.1
|
|
|
|
MAN8= apxs.8 httpd.8 logresolve.8 rotatelogs.8
|
|
|
|
|
|
|
|
.if defined(SUEXEC)
|
|
|
|
HTTPD_USER?=www
|
|
|
|
USER_DIR?=public_html
|
|
|
|
CONFIGURE_ARGS+= --enable-suexec \
|
|
|
|
--suexec-caller=${HTTPD_USER} \
|
1999-01-26 02:27:31 +00:00
|
|
|
--suexec-docroot=${PREFIX}/www/data \
|
|
|
|
--suexec-logfile=/var/log/httpd-suexec.log \
|
|
|
|
--suexec-userdir=${USER_DIR} \
|
|
|
|
--suexec-safepath='/bin:/usr/bin:${PREFIX}/bin'
|
1998-11-10 01:56:01 +00:00
|
|
|
MAN8+= suexec.8
|
|
|
|
.endif
|
1998-05-29 04:46:56 +00:00
|
|
|
|
1998-12-02 00:32:38 +00:00
|
|
|
pre-extract:
|
1998-11-10 01:56:01 +00:00
|
|
|
@if ! ${LDCONFIG} -r | ${GREP} -q -e "-ldescrypt"; then \
|
1998-05-29 04:46:56 +00:00
|
|
|
${ECHO} ; \
|
1998-11-10 01:56:01 +00:00
|
|
|
${ECHO} "WARNING: MS FrontPage Extentions require the DES Library"; \
|
1998-05-29 04:46:56 +00:00
|
|
|
${ECHO} "WARNING: Install the DES Library, then build apache-fp"; \
|
|
|
|
${ECHO} ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
post-extract:
|
1998-11-10 01:56:01 +00:00
|
|
|
@${ECHO} "===> Extracting FrontPage install scripts"
|
1998-05-29 04:46:56 +00:00
|
|
|
@cd ${WRKSRC} && \
|
1999-02-03 11:12:01 +00:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${FRONTPAGE} ${EXTRACT_AFTER_ARGS} ${FPINSTALL} ${CHANGESERVER}
|
1998-05-29 04:46:56 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-11-25 20:49:02 +00:00
|
|
|
@${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh file."
|
1998-11-10 01:56:01 +00:00
|
|
|
@${CAT} ${FILESDIR}/apache.sh.tmpl | \
|
|
|
|
${SED} -e 's;PREFIX;${PREFIX};' -e 's;PERL5;${PERL};' \
|
1998-11-25 20:49:02 +00:00
|
|
|
> ${PREFIX}/etc/rc.d/apache.sh
|
|
|
|
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
|
1999-01-26 02:27:31 +00:00
|
|
|
@${CAT} ${WRKSRC}/${FPINSTALL} | \
|
|
|
|
${SED} -e 's;PREFIX;${PREFIX};' > ${WRKDIR}/tmp.fpinstall
|
|
|
|
@${SH} ${WRKDIR}/tmp.fpinstall
|
|
|
|
@${INSTALL_FILE} ${WRKDIR}/tmp.fpinstall ${PREFIX}/${FPINSTALL}
|
|
|
|
@${CAT} ${WRKSRC}/${CHANGESERVER} | \
|
|
|
|
${SED} -e 's;PREFIX;${PREFIX};' > ${WRKDIR}/tmp.changeserver
|
|
|
|
@${INSTALL_FILE} ${WRKDIR}/tmp.changeserver ${PREFIX}/${CHANGESERVER}
|
1998-05-29 04:46:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|