mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
5ac7b1c319
add myself as maintainer of the SSL version.
78 lines
2.3 KiB
Makefile
78 lines
2.3 KiB
Makefile
# New ports collection makefile for: apache HTTPD and HTTPSD
|
|
# Version required: 1.2b2
|
|
# Date created: Fri Aug 25 16:42:36 CDT 1995
|
|
# Whom: erich@rrnet.com
|
|
#
|
|
# $Id: Makefile,v 1.23 1996/12/11 19:09:59 ache Exp $
|
|
#
|
|
|
|
DISTNAME= apache_1.2b2
|
|
PKGNAME= apache-1.2b2
|
|
CATEGORIES= www
|
|
MASTER_SITES= ftp://www.apache.org/apache/dist/
|
|
|
|
MAINTAINER= ache@freebsd.org
|
|
|
|
# User-controlled variables list
|
|
# DIR_ACHE - add SuppressHTMLPreamble option to directory index
|
|
# see http://www.nagual.ru/~ache/apache_dir.html
|
|
# SECURE_SERVER - build Apache with SSL
|
|
|
|
.if defined(DIR_ACHE)
|
|
PATCH_SITES+= http://www.nagual.ru/~ache/
|
|
PATCHFILES+= dir.patch
|
|
VERS_ID= dir/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
|
|
|
|
.if defined(SECURE_SERVER)
|
|
|
|
BROKEN= "SSLeay has changed, and the patches for apache need more work"
|
|
MAINTAINER= markm@freebsd.org
|
|
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>
|