1997-08-12 11:49:12 +00:00
|
|
|
# New ports collection makefile for: apache HTTPD
|
1998-02-20 11:09:09 +00:00
|
|
|
# Version required: 1.3
|
1995-08-28 13:28:45 +00:00
|
|
|
# Date created: Fri Aug 25 16:42:36 CDT 1995
|
1997-08-12 18:20:06 +00:00
|
|
|
# Whom: ache@nagual.pp.ru
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
1998-02-20 11:09:09 +00:00
|
|
|
# $Id: Makefile,v 1.43 1998/01/07 22:19:03 ache Exp $
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
|
|
|
|
1998-02-20 11:09:09 +00:00
|
|
|
DISTNAME= apache_1.3b5
|
|
|
|
PKGNAME= apache-1.3b5
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1996-07-11 11:04:01 +00:00
|
|
|
MASTER_SITES= ftp://www.apache.org/apache/dist/
|
1998-02-20 11:09:09 +00:00
|
|
|
|
|
|
|
#PATCH_SITES= ftp://www.apache.org/apache/dist/patches/apply_to_1.3b5/
|
|
|
|
#PATCHFILES=
|
|
|
|
#PATCH_DIST_ARGS= -d ${WRKSRC}/src/main -E -p0
|
1995-08-28 13:28:45 +00:00
|
|
|
|
1997-04-14 18:54:34 +00:00
|
|
|
MAINTAINER= ache@freebsd.org
|
1996-05-20 07:37:06 +00:00
|
|
|
|
1997-08-12 18:20:06 +00:00
|
|
|
# Set it for local-supplied patch, f.e.
|
|
|
|
# VERS_ID = mods-1.0/me
|
1996-11-07 01:49:57 +00:00
|
|
|
|
|
|
|
post-patch:
|
1997-10-22 23:51:35 +00:00
|
|
|
@cd ${WRKSRC}/conf && \
|
|
|
|
for I in access.conf-dist srm.conf-dist; do \
|
|
|
|
sed -e "s#@@ServerRoot@@#${PREFIX}/www#g" < $${I} > $${I}.new; \
|
|
|
|
mv $${I}.new $${I}; \
|
|
|
|
done
|
|
|
|
@cd ${WRKSRC}/conf && \
|
|
|
|
sed -e "s#@@ServerRoot@@#${PREFIX}/etc/apache#g" < \
|
|
|
|
httpd.conf-dist > httpd.conf-dist.new && \
|
|
|
|
mv httpd.conf-dist.new httpd.conf-dist
|
|
|
|
@${RM} -rf ${WRKSRC}/icons/CVS
|
|
|
|
.if defined(VERS_ID)
|
1996-12-25 22:53:28 +00:00
|
|
|
@cd ${WRKSRC}/src && \
|
|
|
|
mv Configuration Configuration.old && \
|
1997-05-31 20:34:09 +00:00
|
|
|
sed 's;^#*OPTIM=.*;OPTIM= -DSERVER_SUBVERSION=\\"${VERS_ID}\\";' \
|
1996-12-25 22:53:28 +00:00
|
|
|
< Configuration.old > Configuration
|
1996-11-07 01:49:57 +00:00
|
|
|
.endif
|
|
|
|
|
1997-10-22 23:51:35 +00:00
|
|
|
CONF_DIR= ${PREFIX}/etc/apache
|
1997-11-21 21:10:28 +00:00
|
|
|
MAN1= apachectl.1 htpasswd.1
|
1997-10-22 23:51:35 +00:00
|
|
|
MAN8= httpd.8
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
install -d -m 755 -o bin -g bin ${CONF_DIR} ${PREFIX}/www/data \
|
|
|
|
${PREFIX}/www/icons ${PREFIX}/www/cgi-bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/httpd ${PREFIX}/sbin
|
|
|
|
cd ${WRKSRC}/src/support && \
|
|
|
|
${INSTALL_PROGRAM} htdigest htpasswd logresolve rotatelogs \
|
|
|
|
${PREFIX}/sbin
|
|
|
|
cd ${WRKSRC}/src/support && \
|
|
|
|
${INSTALL_SCRIPT} apachectl dbmmanage log_server_status \
|
|
|
|
${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} -o nobody ${WRKSRC}/icons/* ${PREFIX}/www/icons
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/support/httpd.8 \
|
|
|
|
${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/support/htpasswd.1 \
|
1997-11-21 21:10:28 +00:00
|
|
|
${WRKSRC}/src/support/apachectl.1 \
|
1997-10-22 23:51:35 +00:00
|
|
|
${PREFIX}/man/man1
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
for file in httpd.conf srm.conf access.conf ; do \
|
|
|
|
if [ ! -f ${CONF_DIR}/$$file ] ; then \
|
|
|
|
${INSTALL_DATA} conf/$$file-dist ${CONF_DIR}/$$file ; \
|
|
|
|
fi ; \
|
|
|
|
${INSTALL_DATA} conf/$$file-dist ${CONF_DIR} ; \
|
|
|
|
done
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
for file in mime.types magic ; do \
|
|
|
|
if [ ! -f ${CONF_DIR}/$$file ] ; then \
|
|
|
|
${INSTALL_DATA} conf/$$file ${CONF_DIR} ; \
|
|
|
|
fi ; \
|
|
|
|
${INSTALL_DATA} conf/$$file ${CONF_DIR}/$${file}-dist ; \
|
|
|
|
done
|
|
|
|
|
1996-06-15 16:58:09 +00:00
|
|
|
post-install:
|
1996-06-15 17:51:08 +00: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 16:58:09 +00:00
|
|
|
|
1995-08-28 13:28:45 +00:00
|
|
|
.include <bsd.port.mk>
|