aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nut22
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2007-05-29 18:07:10 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2007-05-29 18:07:10 +0000
commit88701bde9187b38374ee70b68a21bb28ae2779c9 (patch)
tree6cf5ad1bd1f69cfb0056fc391ce4fc6c93f4c586 /sysutils/nut22
parent98612b7fdec3d144771d5e816d7310e7ee4a675a (diff)
downloadports-88701bde9187b38374ee70b68a21bb28ae2779c9.tar.gz
ports-88701bde9187b38374ee70b68a21bb28ae2779c9.zip
Notes
Diffstat (limited to 'sysutils/nut22')
-rw-r--r--sysutils/nut22/Makefile7
-rw-r--r--sysutils/nut22/pkg-plist5
2 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile
index 79fb7590a05f..44221c04776f 100644
--- a/sysutils/nut22/Makefile
+++ b/sysutils/nut22/Makefile
@@ -66,16 +66,23 @@ MAN5+= hosts.conf.5 upsset.conf.5 upsstats.html.5
MAN8+= upsset.cgi.8 upsstats.cgi.8 upsimage.cgi.8
.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
CGIDIR?= share/apache/cgi-bin
+WWWDIR?= share/apache/htdocs
.else
CGIDIR?= www/cgi-bin
+WWWDIR?= www/data
.endif
CONFIGURE_ARGS+= --with-cgi --with-cgipath=${PREFIX}/${CGIDIR}/nut \
+ --with-htmlpath=${PREFIX}/${WWWDIR}/nut \
--with-gd-includes=-I${PREFIX}/include \
--with-gd-libs="-L${PREFIX}/lib -lgd"
+PLIST_SUB+= WWWFILES="${WWWDIR}/nut/"
+PLIST_SUB+= WWWDIRRM="@dirrm ${WWWDIR}/nut"
PLIST_SUB+= CGIFILES="${CGIDIR}/nut/"
PLIST_SUB+= CGIDIRRM="@dirrm ${CGIDIR}/nut"
PLIST_SUB+= CGIETC="etc/nut/"
.else
+PLIST_SUB+= WWWFILES="@comment "
+PLIST_SUB+= WWWDIRRM="@comment "
PLIST_SUB+= CGIFILES="@comment "
PLIST_SUB+= CGIDIRRM="@comment "
PLIST_SUB+= CGIETC="@comment "
diff --git a/sysutils/nut22/pkg-plist b/sysutils/nut22/pkg-plist
index c050dba648fa..ff9f544227ba 100644
--- a/sysutils/nut22/pkg-plist
+++ b/sysutils/nut22/pkg-plist
@@ -65,6 +65,10 @@ sbin/upssched
%%CGIETC%%upsset.conf.sample
%%CGIETC%%upsstats.html.sample
%%CGIETC%%upsstats-single.html.sample
+%%WWWFILES%%bottom.html
+%%WWWFILES%%header.html
+%%WWWFILES%%index.html
+%%WWWFILES%%nut-banner.png
%%PORTDOCS%%@exec mkdir %D/%%DOCSDIR%%
%%PORTDOCS%%@exec mkdir %D/%%DOCSDIR%%/cables
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
@@ -113,3 +117,4 @@ sbin/upssched
@dirrmtry libexec/nut
@dirrmtry %%STATEDIR%%
%%CGIDIRRM%%
+%%WWWDIRRM%%