summaryrefslogtreecommitdiff
path: root/www/apache13-ssl/Makefile
blob: 27e9eba41badedf49cdb116795fb720af95c72b2 (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
# New ports collection makefile for:    apache HTTPSD
# Version required:     1.2.1
# Date created:     	15th August 1997
# Whom:			Richard Seaman <dick@tar.com>
#
# $Id: Makefile,v 1.37 1997/08/15 15:44:27 markm Exp $

DISTNAME=       apache_1.2.1
PKGNAME=        apacheSSL-1.2.1
CATEGORIES=	www
MASTER_SITES=   ftp://www.apache.org/apache/dist/ \
		ftp://ftp.ox.ac.uk/pub/crypto/SSL/

MAIN_SRC=	${DISTNAME}${EXTRACT_SUFX}
SSL_EXTRAS=	apache_1.2.0+ssl_1.8.tar.gz
DISTFILES=	${MAIN_SRC} ${SSL_EXTRAS}
EXTRACT_ONLY=	${MAIN_SRC}
BUILD_DEPENDS=	ssleay:${PORTSDIR}/security/SSLeay
RESTRICTED=     "Contains cryptography"

MAINTAINER=	markm@freebsd.org

post-extract:
	@cd ${WRKSRC} && tar xzf ${DISTDIR}/${SSL_EXTRAS}

# SSLpatch from SSL_EXTRAS is for apache_1.2.0 ... if/when it is upgraded
# we can revert to the commented out line.  There are only minor tweaks needed
# to get to SSLpatch-1.2.1 
pre-patch:
#       @cd ${WRKSRC} && ${PATCH} ${PATCH_DIST_ARGS} < SSLpatch
	@cd ${WRKSRC} && ${PATCH} ${PATCH_DIST_ARGS} \
		< ${FILESDIR}/SSLpatch-1.2.1

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

.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
pre-fetch:
	@echo
	@echo You must set variable USA_RESIDENT to YES, if you are USA resident
	@echo or to NO, if you aren\'t USA resident to build this package.
	@echo You must also have installed RSAREF if you are USA resident.
	@false
.elif defined(USA_RESIDENT)
.if ${USA_RESIDENT} == YES
pre-build:
	${PATCH} <${FILESDIR}/Makefile.rsa.patch
.endif
.endif

.include <bsd.port.mk>