1997-08-12 14:21:12 +00:00
|
|
|
# New ports collection makefile for: apache HTTPSD
|
1997-09-22 19:45:17 +00:00
|
|
|
# Version required: 1.2.4
|
1997-08-15 15:44:58 +00:00
|
|
|
# Date created: 15th August 1997
|
|
|
|
# Whom: Richard Seaman <dick@tar.com>
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
1997-10-13 15:03:41 +00:00
|
|
|
# $Id: Makefile,v 1.40 1997/09/22 19:44:48 markm Exp $
|
1995-08-28 13:28:45 +00:00
|
|
|
|
1997-09-22 19:45:17 +00:00
|
|
|
DISTNAME= apache_1.2.4
|
|
|
|
PKGNAME= apacheSSL-1.2.4
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1997-08-15 15:44:58 +00:00
|
|
|
MASTER_SITES= ftp://www.apache.org/apache/dist/ \
|
1997-08-12 14:21:12 +00:00
|
|
|
ftp://ftp.ox.ac.uk/pub/crypto/SSL/
|
1997-10-13 15:03:41 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} apache_1.2.4+ssl_1.11.tar.gz
|
1997-09-22 19:45:17 +00:00
|
|
|
|
|
|
|
MAINTAINER= markm@freebsd.org
|
|
|
|
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1996-11-07 01:49:57 +00:00
|
|
|
|
1997-08-16 04:45:27 +00:00
|
|
|
BUILD_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay
|
1997-08-12 14:21:12 +00:00
|
|
|
|
1997-09-22 19:45:17 +00:00
|
|
|
RESTRICTED= "Contains cryptography"
|
1997-08-12 14:21:12 +00:00
|
|
|
|
1996-08-11 14:50:01 +00:00
|
|
|
post-extract:
|
1997-10-13 15:03:41 +00:00
|
|
|
@cd ${WRKSRC} && tar xzf ${DISTDIR}/apache_1.2.4+ssl_1.11.tar.gz
|
1996-08-11 14:50:01 +00:00
|
|
|
|
|
|
|
pre-patch:
|
1997-09-22 19:45:17 +00:00
|
|
|
@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 \
|
1997-09-22 19:45:17 +00:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache_ssl.sh startup file."; \
|
|
|
|
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache_ssl.sh; \
|
|
|
|
${ECHO} "[ -x ${PREFIX}/sbin/httpsd ] && ${PREFIX}/sbin/httpsd && ${ECHO} -n ' httpsd'" >> ${PREFIX}/etc/rc.d/apache_ssl.sh; \
|
1996-10-26 18:49:52 +00:00
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/apache_ssl.sh; \
|
|
|
|
fi
|
1997-09-22 19:45:17 +00:00
|
|
|
@${ECHO} "Please note: in order to install a certificate you have to"
|
|
|
|
@${ECHO} "type:"
|
|
|
|
@${ECHO} " make certificate"
|
1996-10-26 18:49:52 +00:00
|
|
|
|
1997-08-15 15:44:58 +00:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
|
|
|
|
pre-fetch:
|
1997-09-22 19:45:17 +00:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} You must set variable USA_RESIDENT to YES, if you are USA
|
|
|
|
@${ECHO} resident or to NO, if you aren\'t USA resident to build
|
|
|
|
@${ECHO} this package.
|
|
|
|
@${ECHO} You must also have installed RSAREF if you are USA resident.
|
1997-08-15 15:44:58 +00:00
|
|
|
@false
|
|
|
|
.elif defined(USA_RESIDENT)
|
|
|
|
.if ${USA_RESIDENT} == YES
|
|
|
|
pre-build:
|
|
|
|
${PATCH} <${FILESDIR}/Makefile.rsa.patch
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
1997-08-16 16:01:10 +00:00
|
|
|
certificate:
|
|
|
|
cd ${WRKSRC}; ${MAKE} ${MAKE_ENV} $@
|
1997-09-22 19:45:17 +00:00
|
|
|
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem ${PREFIX}/certs/cert.pem
|
1997-08-16 16:01:10 +00:00
|
|
|
|
1995-08-28 13:28:45 +00:00
|
|
|
.include <bsd.port.mk>
|