aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache20/Makefile
blob: 81575c1b2c22033954f62718e1f610130b3fee91 (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
# New ports collection makefile for:    apache HTTPD
# Version required:     1.0.5
# Date created:         Fri Aug 25 16:42:36 CDT 1995
# Whom:                 erich@rrnet.com
#
# $Id: Makefile,v 1.12 1996/06/15 16:58:06 jkh Exp $
#

DISTNAME=       apache_1.0.5
PKGNAME=        apache-1.0.5
CATEGORIES+=    www
MASTER_SITES=   ftp://www.apache.org/apache/dist/ \
        ftp://www.apache.org/apache/dist/contrib/modules/
DISTFILES=      ${DISTNAME}.tar.gz mod_env.c

MAINTAINER= pst@freebsd.org

EXTRACT_ONLY=   ${DISTNAME}.tar.gz

post-extract:
    cp ${DISTDIR}/mod_env.c ${WRKSRC}/src

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>