freebsd-ports/www/apache13-ssl/Makefile
Mark Murray 26d8503878 Upgrade to Apache 1.2.5+SSL 1.13.
Lots of bug fixes, plus repair to the "make certificate" target.

NOTE!! NOTE!! NOTE!!

This port is broken for NorteAmericanos. Someone who has the latest
RSAref would make me eternally grateful by fixing this for the
.US/.CA case and sending me patches.
1998-02-17 12:53:47 +00:00

90 lines
2.7 KiB
Makefile

# New ports collection makefile for: apache HTTPSD
# Version required: 1.2.5
# Date created: 15th August 1997
# Whom: Mark Murray <mark@grondar.za>
#
# $Id: Makefile,v 1.41 1997/10/13 15:03:39 markm Exp $
DISTNAME= apache_1.2.5
PKGNAME= apacheSSL-1.2.5
CATEGORIES= www security
MASTER_SITES= ftp://www.apache.org/apache/dist/ \
ftp://ftp.ox.ac.uk/pub/crypto/SSL/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} apache_1.2.5+ssl_1.13.tar.gz
MAINTAINER= markm@freebsd.org
BUILD_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay
RUN_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
RESTRICTED= "Contains cryptography"
post-extract:
@cd ${WRKSRC} && tar xzf ${DISTDIR}/apache_1.2.5+ssl_1.13.tar.gz
pre-patch:
@cd ${WRKSRC} && ${PATCH} ${PATCH_DIST_ARGS} < SSLpatch
MAN1= htpasswd.1
MAN8= httpd.8
DOCDIR= ${PREFIX}/share/doc/apache
# Set it for local-supplied patch, f.e.
# VERS_ID = mods-1.0/me
.if defined(VERS_ID)
post-patch:
@cd ${WRKSRC}/src && \
${MV} Configuration Configuration.old && \
${SED} 's;^#*OPTIM=.*;OPTIM= -DSERVER_SUBVERSION=\\"${VERS_ID}\\";' \
< Configuration.old > Configuration
.endif
post-install:
@if [ ! -f ${PREFIX}/etc/rc.d/apacheSSL.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/apacheSSL.sh startup file."; \
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apacheSSL.sh; \
${ECHO} "[ -x ${PREFIX}/sbin/httpsd ] && ${PREFIX}/sbin/httpsd && ${ECHO} -n ' httpsd'" >> ${PREFIX}/etc/rc.d/apacheSSL.sh; \
chmod 751 ${PREFIX}/etc/rc.d/apacheSSL.sh; \
fi
.for i in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/support/$i ${PREFIX}/man/man1
.endfor
.for i in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/support/$i ${PREFIX}/man/man8
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCDIR}
.for i in README LICENSE ABOUT_APACHE
${INSTALL_DATA} ${WRKSRC}/$i ${DOCDIR}
.endfor
@cd ${WRKSRC}/htdocs; tar cf - . | (cd ${DOCDIR}; tar xf -)
.endif
.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
@${ECHO} resident or to NO if you aren\'t USA resident to build
@${ECHO} this package.
@false
.elif defined(USA_RESIDENT)
.if ${USA_RESIDENT} == YES
pre-build:
@${ECHO} If you are USA resident, then this port is broken for you.
@${ECHO} I am unable to get some of the necessary goodies, so
@${ECHO} please assist by fixing this and sending me the patches.
@${ECHO} Thanks\!
${PATCH} <${FILESDIR}/Makefile.rsa.patch
BROKEN= "RSAref code doesn't apply cleanly"
.endif
.endif
certificate:
cd ${WRKSRC}; ${MAKE} ${MAKE_ENV} $@
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem ${PREFIX}/certs/cert.pem
.include <bsd.port.mk>