blob: 6b911bf6d6c17313dfb1a9ab40f6947e51b17cdc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# New ports collection makefile for: apache HTTPD and HTTPSD
# Version required: 1.1.1
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.19 1996/10/31 17:42:13 markm Exp $
#
DISTNAME= apache_1.1.1
PKGNAME= apache-1.1.1
CATEGORIES+= www
MASTER_SITES= ftp://www.apache.org/apache/dist/
MAINTAINER= ache@freebsd.org
# User-controlled variables list
# CHARSET_ACHE - add charset negotiation to .var files and charset guessing
# DIR_ACHE - add SuppressHTMLPreamble option to directory index
# ALL_ACHE - both patches from above
# 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
.if defined(SECURE_SERVER)
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>
|