pkgsrc/sysutils/ups-nut/Makefile.common
gdt c306ac9f7b sysutils/ups-nut: uSE_TOOLS= pkg-config
Otherwise, nss is not found.   Should resolve bulk build failures
(although it built ok on systems that happened to have pkgconf).
2021-03-21 15:42:29 +00:00

49 lines
1.4 KiB
Text

# $NetBSD: Makefile.common,v 1.10 2021/03/21 15:42:29 gdt Exp $
# used by sysutils/ups-nut/Makefile
# used by sysutils/ups-nut-cgi/Makefile
# used by sysutils/ups-nut-snmp/Makefile
# used by sysutils/ups-nut-usb/Makefile
# used by sysutils/p5-UPS-Nut/Makefile
DISTNAME= nut-2.7.4
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PKGVERSION_NOREV:R}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.networkupstools.org/
LICENSE= gnu-gpl-v2 OR gnu-gpl-v3
NUT_USER?= nut
NUT_GROUP?= nut
DISTINFO_FILE= ${.CURDIR}/../../sysutils/ups-nut/distinfo
PATCHDIR= ${.CURDIR}/../../sysutils/ups-nut/patches
USE_TOOLS= pkg-config
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${NUT_CONFDIR:Q}
CONFIGURE_ARGS+= --datadir=${NUT_DATADIR:Q}
CONFIGURE_ARGS+= --localstatedir=${NUT_STATEDIR:Q}
CONFIGURE_ARGS+= --with-statepath=${NUT_STATEDIR:Q}
CONFIGURE_ARGS+= --with-htmlpath=${PREFIX:Q}/share/nut/html
CONFIGURE_ARGS+= --with-user=${NUT_USER}
CONFIGURE_ARGS+= --with-group=${NUT_GROUP}
CHECK_PORTABILITY_SKIP= packaging/*
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR?= nut
NUT_CONFDIR= ${PKG_SYSCONFDIR}
NUT_DATADIR= ${PREFIX}/share/nut
NUT_DOCDIR= ${PREFIX}/share/doc/nut
NUT_DRVDIR= ${PREFIX}/libexec/nut
NUT_EGDIR= ${PREFIX}/share/examples/nut
NUT_STATEDIR?= ${VARBASE}/db/nut
NUT_CGIDIR= ${PREFIX}/libexec/cgi-bin