1997-08-12 07:49:12 -04:00
|
|
|
# New ports collection makefile for: apache HTTPD
|
1997-07-08 09:04:19 -04:00
|
|
|
# Version required: 1.2.1
|
1995-08-28 09:28:45 -04:00
|
|
|
# Date created: Fri Aug 25 16:42:36 CDT 1995
|
|
|
|
# Whom: erich@rrnet.com
|
|
|
|
#
|
1997-08-12 07:49:12 -04:00
|
|
|
# $Id: Makefile,v 1.35 1997/07/08 13:04:09 ache Exp $
|
1995-08-28 09:28:45 -04:00
|
|
|
#
|
|
|
|
|
1997-07-08 09:04:19 -04:00
|
|
|
DISTNAME= apache_1.2.1
|
|
|
|
PKGNAME= apache-1.2.1
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= www
|
1996-07-11 07:04:01 -04:00
|
|
|
MASTER_SITES= ftp://www.apache.org/apache/dist/
|
1995-08-28 09:28:45 -04:00
|
|
|
|
1997-04-14 14:54:34 -04:00
|
|
|
MAINTAINER= ache@freebsd.org
|
1996-05-20 03:37:06 -04:00
|
|
|
|
1996-11-06 20:49:57 -05:00
|
|
|
# User-controlled variables list
|
1996-11-06 20:53:14 -05:00
|
|
|
# DIR_ACHE - add SuppressHTMLPreamble option to directory index
|
|
|
|
# see http://www.nagual.ru/~ache/apache_dir.html
|
1996-11-06 20:49:57 -05:00
|
|
|
# SECURE_SERVER - build Apache with SSL
|
|
|
|
|
|
|
|
.if defined(DIR_ACHE)
|
1997-05-31 16:16:08 -04:00
|
|
|
PATCH_SITES+= http://www.nagual.pp.ru/~ache/
|
1996-11-06 20:49:57 -05:00
|
|
|
PATCHFILES+= dir.patch
|
1996-12-11 14:10:06 -05:00
|
|
|
VERS_ID= dir/ache
|
1996-11-06 20:49:57 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(VERS_ID)
|
|
|
|
post-patch:
|
1996-12-25 17:53:28 -05:00
|
|
|
@cd ${WRKSRC}/src && \
|
|
|
|
mv Configuration Configuration.old && \
|
1997-05-31 16:34:09 -04:00
|
|
|
sed 's;^#*OPTIM=.*;OPTIM= -DSERVER_SUBVERSION=\\"${VERS_ID}\\";' \
|
1996-12-25 17:53:28 -05:00
|
|
|
< Configuration.old > Configuration
|
1996-11-06 20:49:57 -05:00
|
|
|
.endif
|
|
|
|
|
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 \
|
|
|
|
echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
|
|
|
|
echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \
|
|
|
|
echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh; \
|
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/apache.sh; \
|
|
|
|
fi
|
1996-06-15 12:58:09 -04:00
|
|
|
|
1995-08-28 09:28:45 -04:00
|
|
|
.include <bsd.port.mk>
|