1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/www/apache13/Makefile

81 lines
2.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: apache HTTPD and HTTPSD
1997-05-02 18:22:12 +00:00
# Version required: 1.2b10
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
1997-05-02 18:22:12 +00:00
# $Id: Makefile,v 1.29 1997/04/14 18:54:26 ache Exp $
#
1997-05-02 18:22:12 +00:00
DISTNAME= apache_1.2b10
PKGNAME= apache-1.2b10
CATEGORIES= www
1996-07-11 11:04:01 +00:00
MASTER_SITES= ftp://www.apache.org/apache/dist/
1997-04-14 18:54:34 +00:00
.if !defined(SECURE_SERVER)
MAINTAINER= ache@freebsd.org
.else
MAINTAINER= markm@freebsd.org
.endif
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
# DIR_ACHE - add SuppressHTMLPreamble option to directory index
# see http://www.nagual.ru/~ache/apache_dir.html
1996-11-07 01:49:57 +00:00
# SECURE_SERVER - build Apache with SSL
.if defined(DIR_ACHE)
1996-12-11 19:10:06 +00:00
PATCH_SITES+= http://www.nagual.ru/~ache/
1996-11-07 01:49:57 +00:00
PATCHFILES+= dir.patch
1996-12-11 19:10:06 +00:00
VERS_ID= dir/ache
1996-11-07 01:49:57 +00:00
.endif
.if defined(VERS_ID)
post-patch:
@cd ${WRKSRC}/src && \
mv Configuration Configuration.old && \
sed 's;^OPTIM=.*;& -DSERVER_SUBVERSION=\\"${VERS_ID}\\";' \
< Configuration.old > Configuration
1996-11-07 01:49:57 +00:00
.endif
.if defined(SECURE_SERVER)
BROKEN= "SSLeay has changed, and the patches for apache need more work"
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
DEPENDS= ${PORTSDIR}/security/SSLeay
post-extract:
@cd ${WRKSRC} && tar xzf ${DISTDIR}/${SSL_EXTRAS}
pre-patch:
@cd ${WRKSRC} && ${PATCH} ${PATCH_DIST_ARGS} < SSLpatch
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
post-install:
@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
.endif
.include <bsd.port.mk>