summaryrefslogtreecommitdiff
path: root/www/boa/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/boa/Makefile')
-rw-r--r--www/boa/Makefile29
1 files changed, 19 insertions, 10 deletions
diff --git a/www/boa/Makefile b/www/boa/Makefile
index 61eb6a9a12fb..537a6ea6f0fb 100644
--- a/www/boa/Makefile
+++ b/www/boa/Makefile
@@ -6,24 +6,33 @@
#
PORTNAME= boa
-PORTVERSION= 0.92
+PORTVERSION= 0.94.6
CATEGORIES= www
MASTER_SITES= http://www.boa.org/
MAINTAINER= ports@FreeBSD.org
-do-build:
- @ cd ${WRKSRC}/src; make
+FETCH_BEFORE_ARGS= -b
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+
+BOA_DOCS= boa-1.html boa-2.html boa-3.html boa-4.html boa.html \
+ boa.ps boa.txt boa_banner.png
+
+post-patch:
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/defines.h
do-install:
- @ ${INSTALL_PROGRAM} ${WRKSRC}/src/boa ${PREFIX}/sbin
- @ ${MKDIR} ${PREFIX}/share/examples/boa
- @ ${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/share/examples/boa
+ ${INSTALL_PROGRAM} ${WRKSRC}/boa ${PREFIX}/sbin
+ ${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}/README ${PREFIX}/share/doc/boa
-.for file in Changelog Gnu_License biblio.html details.html details.txt logos.html newboa7.gif poweredbyboa.gif readme.html readme.txt todo.txt
- @ ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${PREFIX}/share/doc/boa
+ @${MKDIR} ${PREFIX}/share/doc/boa
+.for file in ${BOA_DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/../docs/${file} ${PREFIX}/share/doc/boa
.endfor
.endif