aboutsummaryrefslogtreecommitdiffstats
path: root/www/boa/Makefile
blob: fb47528fa86925fe3976bbc191cec77d63f190b7 (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:    boa
# Date created:             21 May 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   boa
PORTVERSION=    0.94.14.r21
PORTEPOCH=  1
CATEGORIES= www ipv6
MASTER_SITES=   http://www.boa.org/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.r/rc/}

MAINTAINER= ale@FreeBSD.org
COMMENT=    High performance single-tasking web server

USE_BZIP2=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes

INFO=       boa
MAN8=       boa.8

PORTDOCS=   boa.texi boa.html boa.txt boa_banner.png

post-patch:
    @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
        ${WRKSRC}/examples/boa.conf ${WRKSRC}/src/defines.h

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/src/boa ${PREFIX}/sbin
    @${INSTALL_PROGRAM} ${WRKSRC}/src/boa_indexer ${PREFIX}/sbin
    @${INSTALL_MAN} ${WRKSRC}/docs/boa.8 ${PREFIX}/man/man8
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/examples/boa.conf ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/examples/cgi-test.cgi ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/examples/nph-test.cgi ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/examples/resolver.pl ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.endfor
.endif
    @${INSTALL_DATA} ${WRKSRC}/docs/boa.info ${PREFIX}/info

post-install:
    @if [ ! -f ${PREFIX}/etc/rc.d/boa.sh ]; then \
        ${ECHO} "Installing ${PREFIX}/etc/rc.d/boa.sh.sample \
            startup file."; \
        ${INSTALL_SCRIPT} ${FILESDIR}/boa.sh.sample \
            ${PREFIX}/etc/rc.d; \
    fi

.include <bsd.port.mk>