1998-07-04 21:38:12 +02:00
|
|
|
# New ports collection makefile for: boa
|
|
|
|
# Date created: 21 May 1998
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1998-07-04 21:38:12 +02:00
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= boa
|
2002-03-09 19:23:59 +01:00
|
|
|
PORTVERSION= 0.94.12.r3
|
1998-07-04 21:38:12 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.boa.org/
|
2002-02-25 06:38:30 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
1998-07-04 21:38:12 +02:00
|
|
|
|
2002-02-25 06:38:30 +01:00
|
|
|
MAINTAINER= sysadmin@alexdupre.com
|
1998-07-04 21:38:12 +02:00
|
|
|
|
2000-04-30 22:13:49 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2000-08-23 10:09:25 +02:00
|
|
|
MAN8= boa.8
|
2000-04-30 22:13:49 +02:00
|
|
|
|
|
|
|
post-patch:
|
2002-02-25 06:38:30 +01:00
|
|
|
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/defines.h \
|
|
|
|
${WRKSRC}/../boa.conf
|
1998-07-04 21:38:12 +02:00
|
|
|
|
2002-03-09 19:23:59 +01:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/../docs && ${MAKE} boa.info boa.html boa.txt
|
|
|
|
|
1998-07-04 21:38:12 +02:00
|
|
|
do-install:
|
2002-02-25 06:38:30 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/boa ${PREFIX}/sbin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/boa_indexer ${PREFIX}/sbin
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/../docs/boa.8 ${PREFIX}/man/man8
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../boa.conf ${PREFIX}/etc/boa.conf.sample
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../examples/* ${EXAMPLESDIR}
|
1998-07-04 21:38:12 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-02-25 06:38:30 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../docs/boa.texi ${DOCSDIR}
|
2002-03-09 19:23:59 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../docs/boa.html ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../docs/boa.txt ${DOCSDIR}
|
2002-02-25 06:38:30 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../docs/boa_banner.png ${DOCSDIR}
|
2002-03-09 19:23:59 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../docs/boa.info ${PREFIX}/info
|
|
|
|
@install-info ${PREFIX}/info/boa.info ${PREFIX}/info/dir
|
1998-07-04 21:38:12 +02:00
|
|
|
.endif
|
|
|
|
|
2002-02-25 06:38:30 +01:00
|
|
|
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
|
|
|
|
|
1998-07-04 21:38:12 +02:00
|
|
|
.include <bsd.port.mk>
|