aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nut22
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2007-05-30 02:07:10 +0800
committerlwhsu <lwhsu@FreeBSD.org>2007-05-30 02:07:10 +0800
commit1452342fd863754d9f0f329f278ca067354ad11d (patch)
treec6f62ef880fe3656e68ee81d34f3732a1ddac4fc /sysutils/nut22
parent98983717ff1b71ae86ffb4c237eb7d00eee09a71 (diff)
downloadfreebsd-ports-gnome-1452342fd863754d9f0f329f278ca067354ad11d.tar.gz
freebsd-ports-gnome-1452342fd863754d9f0f329f278ca067354ad11d.tar.zst
freebsd-ports-gnome-1452342fd863754d9f0f329f278ca067354ad11d.zip
- Fix pkg-plist when building with cgi support
PR: 111928 Submitted by: Dima Panov <fluffy AT ns.ael.RU> Approved by: Joerg Pulz <Joerg.Pulz AT frm2.tum.de> (maintainer) clsung (mentor, implicitly)
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%%