openbsd-ports/www/apache/Makefile
1997-11-17 23:01:02 +00:00

36 lines
1.0 KiB
Makefile

# New ports collection makefile for: apache HTTPD
# Version required: 1.3a1
# Date created: 17 Nov 1997
# Whom: ejovi
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/11/17 23:01:02 joey Exp $
#
DISTNAME= apache_1.3a1
PKGNAME= apache-1.3a1
CATEGORIES= www
MASTER_SITES= ftp://www.apache.org/apache/dist/
MAINTAINER= joey@OpenBSD.ORG
# 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/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
.include <bsd.port.mk>