1996-08-11 14:50:01 +00:00
|
|
|
# New ports collection makefile for: apache HTTPD and HTTPSD
|
1996-07-11 11:04:01 +00:00
|
|
|
# Version required: 1.1.1
|
1995-08-28 13:28:45 +00:00
|
|
|
# Date created: Fri Aug 25 16:42:36 CDT 1995
|
|
|
|
# Whom: erich@rrnet.com
|
|
|
|
#
|
1996-11-18 11:44:27 +00:00
|
|
|
# $Id: Makefile,v 1.21 1996/11/07 01:53:14 ache Exp $
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
|
|
|
|
1996-07-11 11:04:01 +00:00
|
|
|
DISTNAME= apache_1.1.1
|
|
|
|
PKGNAME= apache-1.1.1
|
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/
|
1995-08-28 13:28:45 +00:00
|
|
|
|
1996-07-12 10:27:53 +00:00
|
|
|
MAINTAINER= ache@freebsd.org
|
1996-05-20 07:37:06 +00:00
|
|
|
|
1996-11-07 01:49:57 +00:00
|
|
|
# User-controlled variables list
|
1996-11-07 01:53:14 +00:00
|
|
|
# CHARSET_ACHE - add charset negotiation to .var files and charset guessing
|
|
|
|
# see http://www.nagual.ru/~ache/apache_var.html
|
|
|
|
# DIR_ACHE - add SuppressHTMLPreamble option to directory index
|
|
|
|
# see http://www.nagual.ru/~ache/apache_dir.html
|
|
|
|
# ALL_ACHE - both patches from above
|
|
|
|
#
|
1996-11-07 01:49:57 +00:00
|
|
|
# SECURE_SERVER - build Apache with SSL
|
|
|
|
|
|
|
|
.if defined(ALL_ACHE)
|
|
|
|
CHARSET_ACHE=YES
|
|
|
|
DIR_ACHE=YES
|
|
|
|
.endif
|
|
|
|
.if defined(CHARSET_ACHE) || defined(DIR_ACHE)
|
|
|
|
PATCH_SITES+= http://www.nagual.ru/~ache/
|
|
|
|
.endif
|
|
|
|
.if defined(CHARSET_ACHE)
|
|
|
|
PATCHFILES+= mod.patch
|
|
|
|
VERS_ID1= charset/
|
|
|
|
.endif
|
|
|
|
.if defined(DIR_ACHE)
|
|
|
|
PATCHFILES+= dir.patch
|
|
|
|
VERS_ID2= dir/
|
|
|
|
.endif
|
|
|
|
.if defined(VERS_ID1) || defined(VERS_ID2)
|
|
|
|
VERS_ID= ${VERS_ID1}${VERS_ID2}ache
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(VERS_ID)
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC}/src; \
|
|
|
|
mv httpd.h httpd.h.old; \
|
|
|
|
sed 's=SERVER_VERSION *"\(.*\)"=SERVER_VERSION "\1 '"${VERS_ID}"'"=' \
|
|
|
|
< httpd.h.old > httpd.h
|
|
|
|
.endif
|
|
|
|
|
1996-08-11 14:50:01 +00:00
|
|
|
.if defined(SECURE_SERVER)
|
1996-10-26 18:49:52 +00:00
|
|
|
|
1996-08-11 14:50:01 +00:00
|
|
|
PKGNAME= apache_SSL-1.1.1
|
|
|
|
MAIN_SRC= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
SSL_EXTRAS= ${DISTNAME}+1.3.ssl${EXTRACT_SUFX}
|
|
|
|
DISTFILES= ${MAIN_SRC} ${SSL_EXTRAS}
|
|
|
|
MASTER_SITES+= ftp://ftp.ox.ac.uk/pub/crypto/SSL/
|
|
|
|
EXTRACT_ONLY= ${MAIN_SRC}
|
|
|
|
MD5_FILE= ${FILESDIR}/md5.SSL
|
|
|
|
PATCHDIR= ${.CURDIR}/patches.SSL
|
|
|
|
PKGDIR= ${.CURDIR}/pkg.SSL
|
|
|
|
CONFIGURE_SCRIPT= configure.SSL
|
1996-10-31 17:42:13 +00:00
|
|
|
DEPENDS= ${PORTSDIR}/security/SSLeay
|
1996-08-11 14:50:01 +00:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && tar xzf ${DISTDIR}/${SSL_EXTRAS}
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@cd ${WRKSRC} && ${PATCH} ${PATCH_DIST_ARGS} < SSLpatch
|
1996-10-26 18:49:52 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/apache_ssl.sh ]; then \
|
|
|
|
echo "Installing ${PREFIX}/etc/rc.d/apache_ssl.sh startup file."; \
|
|
|
|
echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache_ssl.sh; \
|
|
|
|
echo "[ -x /usr/local/sbin/httpsd ] && /usr/local/sbin/httpsd && echo -n ' httpsd'" >> ${PREFIX}/etc/rc.d/apache_ssl.sh; \
|
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/apache_ssl.sh; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.else
|
1996-08-11 14:50:01 +00:00
|
|
|
|
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
|
|
|
|
1996-10-26 18:49:52 +00:00
|
|
|
.endif
|
|
|
|
|
1995-08-28 13:28:45 +00:00
|
|
|
.include <bsd.port.mk>
|