1997-08-12 13:49:12 +02:00
|
|
|
# New ports collection makefile for: apache HTTPD
|
1997-07-08 15:04:19 +02:00
|
|
|
# Version required: 1.2.1
|
1995-08-28 15:28:45 +02:00
|
|
|
# Date created: Fri Aug 25 16:42:36 CDT 1995
|
|
|
|
# Whom: erich@rrnet.com
|
|
|
|
#
|
1997-08-26 01:11:21 +02:00
|
|
|
# $Id: Makefile,v 1.37 1997/08/13 15:05:03 ache Exp $
|
1995-08-28 15:28:45 +02:00
|
|
|
#
|
|
|
|
|
1997-07-08 15:04:19 +02:00
|
|
|
DISTNAME= apache_1.2.1
|
|
|
|
PKGNAME= apache-1.2.1
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= www
|
1996-07-11 13:04:01 +02:00
|
|
|
MASTER_SITES= ftp://www.apache.org/apache/dist/
|
1995-08-28 15:28:45 +02:00
|
|
|
|
1997-08-13 17:05:03 +02:00
|
|
|
MAINTAINER= ports@freebsd.org
|
1996-05-20 09:37:06 +02:00
|
|
|
|
1997-08-13 17:05:03 +02:00
|
|
|
# Set it for local-supplied patch, f.e.
|
|
|
|
# VERS_ID = mods-1.0/me
|
1996-11-07 02:49:57 +01:00
|
|
|
|
|
|
|
.if defined(VERS_ID)
|
|
|
|
post-patch:
|
1996-12-25 23:53:28 +01:00
|
|
|
@cd ${WRKSRC}/src && \
|
|
|
|
mv Configuration Configuration.old && \
|
1997-05-31 22:34:09 +02:00
|
|
|
sed 's;^#*OPTIM=.*;OPTIM= -DSERVER_SUBVERSION=\\"${VERS_ID}\\";' \
|
1996-12-25 23:53:28 +01:00
|
|
|
< Configuration.old > Configuration
|
1996-11-07 02:49:57 +01:00
|
|
|
.endif
|
|
|
|
|
1996-06-15 18:58:09 +02:00
|
|
|
post-install:
|
1996-06-15 19:51:08 +02: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 18:58:09 +02:00
|
|
|
|
1995-08-28 15:28:45 +02:00
|
|
|
.include <bsd.port.mk>
|