blob: 16c7d3671119dde6f86448476fa6a03cc2831261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $NetBSD: Makefile,v 1.36 2005/12/05 23:55:20 rillig Exp $
DISTNAME= nut-2.0.1
PKGNAME= ups-nut-cgi-2.0.1
CATEGORIES= sysutils
MASTER_SITES= http://random.networkupstools.org/source/2.0/
MAINTAINER= lukem@NetBSD.org
HOMEPAGE= http://www.networkupstools.org/
COMMENT= Network UPS Tools CGI scripts
DEPENDS+= ups-nut-2.*:../../sysutils/ups-nut
BUILD_TARGET= cgi
INSTALL_TARGET= install-cgi
USE_PKGINSTALL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${NUT_CONFDIR:Q} \
--datadir=${NUT_DATADIR:Q} \
--localstatedir=${NUT_STATEDIR:Q} \
--with-statepath=${NUT_STATEDIR:Q} \
--with-cgi \
--with-cgipath=${NUT_CGIDIR:Q}
PKG_SYSCONFSUBDIR?= nut
NUT_CONFDIR= ${PKG_SYSCONFDIR}
NUT_DATADIR= ${PREFIX}/share/nut
NUT_EGDIR= ${PREFIX}/share/examples/nut
NUT_STATEDIR= /var/db/nut
NUT_CGIDIR= ${PREFIX}/libexec/cgi-bin
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
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|