2011-01-13 14:36:05 +01:00
|
|
|
# $NetBSD: Makefile,v 1.52 2011/01/13 13:39:26 wiz Exp $
|
2010-02-17 16:39:02 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2000-12-28 17:07:51 +01:00
|
|
|
|
2006-08-16 15:15:54 +02:00
|
|
|
.include "../../sysutils/ups-nut/Makefile.common"
|
2000-12-28 17:07:51 +01:00
|
|
|
|
2006-08-16 15:15:54 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/nut/ups-nut-cgi/}
|
2011-01-13 14:36:05 +01:00
|
|
|
PKGREVISION= 4
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Network UPS Tools CGI scripts
|
2000-12-28 17:07:51 +01:00
|
|
|
|
2004-04-06 00:38:09 +02:00
|
|
|
DEPENDS+= ups-nut-2.*:../../sysutils/ups-nut
|
2000-12-28 17:07:51 +01:00
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= cgi
|
2002-12-13 05:23:17 +01:00
|
|
|
INSTALL_TARGET= install-cgi
|
2010-02-17 16:39:02 +01:00
|
|
|
INSTALLATION_DIRS+= ${NUT_EGDIR}
|
2001-11-21 16:53:08 +01:00
|
|
|
|
2006-08-16 15:15:54 +02:00
|
|
|
CONFIGURE_ARGS+= --with-cgi
|
|
|
|
CONFIGURE_ARGS+= --with-cgipath=${NUT_CGIDIR:Q}
|
2002-12-13 05:23:17 +01:00
|
|
|
|
2006-08-02 14:30:22 +02:00
|
|
|
BUILD_DEFS+= NUT_STATEDIR
|
|
|
|
|
2002-12-13 05:23:17 +01:00
|
|
|
CONF_FILES= ${NUT_EGDIR}/hosts.conf.sample ${NUT_CONFDIR}/hosts.conf
|
2006-08-02 14:30:22 +02:00
|
|
|
CONF_FILES+= ${NUT_EGDIR}/upsset.conf.sample \
|
2002-12-13 05:23:17 +01:00
|
|
|
${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
|
|
|
|
|
2004-04-11 03:54:20 +02:00
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
2000-12-28 17:07:51 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|