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

PORTNAME=   boa
PORTVERSION=    0.94.8.2
CATEGORIES= www
MASTER_SITES=   http://www.boa.org/

MAINTAINER= ports@FreeBSD.org

FORBIDDEN=  "Remote users can access files outside the document root"

FETCH_BEFORE_ARGS=  -b

WRKSRC=     ${WRKDIR}/${DISTNAME}/src
USE_GMAKE=  yes
GNU_CONFIGURE=  yes

MAN8=       boa.8

post-patch:
    @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/defines.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/boa ${PREFIX}/sbin
    ${INSTALL_MAN} ${WRKSRC}/../docs/boa.8 ${PREFIX}/man/man8
    ${INSTALL_DATA} ${WRKSRC}/../boa.conf ${PREFIX}/etc/boa.conf.sample
    @${MKDIR} ${PREFIX}/share/examples/boa
    ${INSTALL_DATA} ${WRKSRC}/../examples/* ${PREFIX}/share/examples/boa
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/boa
    ${INSTALL_DATA} ${WRKSRC}/../docs/boa.sgml ${PREFIX}/share/doc/boa
    ${INSTALL_DATA} ${WRKSRC}/../docs/boa_banner.png ${PREFIX}/share/doc/boa
.endif

.include <bsd.port.mk>