summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut-cgi
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2011-07-29 15:11:40 +0000
committerbouyer <bouyer@pkgsrc.org>2011-07-29 15:11:40 +0000
commite0c74b57be2d552372267adf7f1e8f968e4687b8 (patch)
treee0671a738498c503481fa6169f68798977774ba3 /sysutils/ups-nut-cgi
parent5b22e1bdf7f08065f826dd475839f663a335ef5e (diff)
downloadpkgsrc-e0c74b57be2d552372267adf7f1e8f968e4687b8.tar.gz
Update ups-nut* from 2.0.5 to 2.6.1. Changes are too large to list here,
see: http://www.networkupstools.org/source/2.6/new-2.6.1.txt
Diffstat (limited to 'sysutils/ups-nut-cgi')
-rw-r--r--sysutils/ups-nut-cgi/Makefile29
1 files changed, 25 insertions, 4 deletions
diff --git a/sysutils/ups-nut-cgi/Makefile b/sysutils/ups-nut-cgi/Makefile
index 514fb792572..2752f40a3a5 100644
--- a/sysutils/ups-nut-cgi/Makefile
+++ b/sysutils/ups-nut-cgi/Makefile
@@ -1,18 +1,19 @@
-# $NetBSD: Makefile,v 1.52 2011/01/13 13:39:26 wiz Exp $
+# $NetBSD: Makefile,v 1.53 2011/07/29 15:11:40 bouyer Exp $
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/ups-nut/Makefile.common"
PKGNAME= ${DISTNAME:S/nut/ups-nut-cgi/}
-PKGREVISION= 4
COMMENT= Network UPS Tools CGI scripts
DEPENDS+= ups-nut-2.*:../../sysutils/ups-nut
-BUILD_TARGET= cgi
-INSTALL_TARGET= install-cgi
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}
@@ -27,6 +28,26 @@ CONF_FILES+= ${NUT_EGDIR}/upsstats-single.html.sample \
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"