aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/nut/Makefile7
-rw-r--r--sysutils/nut/pkg-plist5
-rw-r--r--sysutils/nut22/Makefile7
-rw-r--r--sysutils/nut22/pkg-plist5
4 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile
index 79fb7590a05f..44221c04776f 100644
--- a/sysutils/nut/Makefile
+++ b/sysutils/nut/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/nut/pkg-plist b/sysutils/nut/pkg-plist
index c050dba648fa..ff9f544227ba 100644
--- a/sysutils/nut/pkg-plist
+++ b/sysutils/nut/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%%
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%%