Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1 @@
ups-nut-cgi provides CGI scripts to monitor UPS status via a web browser.

View File

@@ -0,0 +1,52 @@
# $NetBSD: Makefile,v 1.59 2013/06/04 22:17:08 tron Exp $
.include "../../sysutils/ups-nut/Makefile.common"
PKGNAME= ${DISTNAME:S/nut/ups-nut-cgi/}
PKGREVISION= 5
COMMENT= Network UPS Tools CGI scripts
DEPENDS+= ups-nut-2.*:../../sysutils/ups-nut
INSTALLATION_DIRS+= ${NUT_EGDIR}
INSTALLATION_DIRS+= ${PREFIX}/libexec/cgi-bin
INSTALLATION_DIRS+= ${PREFIX}/share/nut/html
INSTALLATION_DIRS+= ${PREFIX}/${PKGMANDIR}/man5
INSTALLATION_DIRS+= ${PREFIX}/${PKGMANDIR}/man8
CONFIGURE_ARGS+= --with-cgi
CONFIGURE_ARGS+= --with-cgipath=${NUT_CGIDIR:Q}
BUILD_DEFS+= NUT_STATEDIR
CONF_FILES= ${NUT_EGDIR}/hosts.conf.sample ${NUT_CONFDIR}/hosts.conf
CONF_FILES+= ${NUT_EGDIR}/upsset.conf.sample \
${NUT_CONFDIR}/upsset.conf
CONF_FILES+= ${NUT_EGDIR}/upsstats-single.html.sample \
${NUT_CONFDIR}/upsstats-single.html
CONF_FILES+= ${NUT_EGDIR}/upsstats.html.sample \
${NUT_CONFDIR}/upsstats.html
do-install:
(cd ${WRKSRC}/clients && env ${MAKE_ENV} \
${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} install-cgiexecPROGRAMS)
for f in hosts.conf.sample upsset.conf.sample \
upsstats.html.sample upsstats-single.html.sample; do \
${INSTALL_DATA} ${WRKSRC}/conf/$$f ${DESTDIR}${NUT_EGDIR}; \
done
for f in bottom.html header.html index.html nut-banner.png; do \
${INSTALL_DATA} ${WRKSRC}/data/html/$$f \
${DESTDIR}${PREFIX}/share/nut/html; \
done
for f in hosts.conf.5 upsset.conf.5 upsstats.html.5; do \
${INSTALL_MAN} ${WRKSRC}/docs/man/$$f \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/; \
done
for f in upsimage.cgi.8 upsset.cgi.8 upsstats.cgi.8; do \
${INSTALL_MAN} ${WRKSRC}/docs/man/$$f \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/; \
done
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,18 @@
@comment $NetBSD: PLIST,v 1.8 2009/06/14 18:16:15 joerg Exp $
libexec/cgi-bin/upsimage.cgi
libexec/cgi-bin/upsset.cgi
libexec/cgi-bin/upsstats.cgi
man/man5/hosts.conf.5
man/man5/upsset.conf.5
man/man5/upsstats.html.5
man/man8/upsimage.cgi.8
man/man8/upsset.cgi.8
man/man8/upsstats.cgi.8
share/examples/nut/hosts.conf.sample
share/examples/nut/upsset.conf.sample
share/examples/nut/upsstats-single.html.sample
share/examples/nut/upsstats.html.sample
share/nut/html/bottom.html
share/nut/html/header.html
share/nut/html/index.html
share/nut/html/nut-banner.png