00bcf52691
This release is a backport of the development version. Many changes have already been backported previously. Thus it is more a synchronisation release, though it includes many bugfixes and support for new models. - support for new devices: APC Smart-UPS with 6TI firmware; Belkin Small Enterprise F6C1500-TW-RK; Compaq R3000 XR, R5500 XR; Cyber Power 550SL, 725SL, 685AVR, 800AVR, 1200AVR, AE550, BC1200 and many similar models; Eltek; Inform GUARD; Microsol Rhino; Opti-UPS PowerES 420E; PowerMan RealSmart, BackPro; Powerware PW9315 3-phase; SOLA 305; Tripp-Lite SMART550USB, SMART2200RMXL2U, OMNI1000LCD, OMNI900LCD, OMNI650LCD, 1500 LCD, AVR550U; Viewsonic PowerES 420E. - bcmxcp: added 3-phase support - megatec: better hardware support, more instant commands - mge-hid: support more instant commands - newhidups: fixed APC and Tripp Lite bugs, various memory bugs, improved report buffering, improved Solaris support, added '-x explore' option for easy diagnosis of new devices - solis: shutdown programming, support new cables, Solaris support - tripplite_usb: updated SMARTPRO support, fixed OL/OB reporting, better error handling, some memory bugs - new dummy-ups driver simulator - added HTML interface for access to CGI scripts - powerpanel: new driver for CyberPower BC1200 and similar models
70 lines
2.1 KiB
Makefile
70 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.49 2008/01/30 22:10:12 ghen Exp $
|
|
|
|
.include "Makefile.common"
|
|
|
|
PKGNAME= ups-${DISTNAME}
|
|
COMMENT= Network UPS Tools
|
|
|
|
CONFIGURE_ARGS+= --with-user=${NUT_USER:Q}
|
|
CONFIGURE_ARGS+= --with-group=${NUT_GROUP:Q}
|
|
CONFIGURE_ARGS+= --with-drvpath=${NUT_DRVDIR:Q}
|
|
CONFIGURE_ARGS+= --with-altpidpath=${NUT_STATEDIR:Q}
|
|
CONFIGURE_ARGS+= --with-pidpath=${NUT_STATEDIR:Q}
|
|
|
|
NUT_USER?= nut
|
|
NUT_GROUP?= nut
|
|
|
|
PKG_GROUPS_VARS+= NUT_GROUP
|
|
PKG_USERS_VARS+= NUT_USER
|
|
BUILD_DEFS+= NUT_STATEDIR
|
|
|
|
FILES_SUBST+= NUT_CONFDIR=${NUT_CONFDIR:Q}
|
|
FILES_SUBST+= NUT_STATEDIR=${NUT_STATEDIR:Q}
|
|
|
|
MESSAGE_SUBST+= NUT_CONFDIR=${NUT_CONFDIR}
|
|
MESSAGE_SUBST+= NUT_EGDIR=${NUT_EGDIR}
|
|
MESSAGE_SUBST+= NUT_DOCDIR=${NUT_DOCDIR}
|
|
|
|
PKG_GROUPS= ${NUT_GROUP}
|
|
PKG_USERS= ${NUT_USER}:${NUT_GROUP}
|
|
PKG_GECOS.${NUT_USER}= Network UPS Tools
|
|
PKG_HOME.${NUT_USER}= ${NUT_STATEDIR}
|
|
PKG_SHELL.${NUT_USER}= ${SH}
|
|
|
|
CONF_FILES= ${NUT_EGDIR}/ups.conf.sample ${NUT_CONFDIR}/ups.conf
|
|
CONF_FILES+= ${NUT_EGDIR}/upssched.conf.sample \
|
|
${NUT_CONFDIR}/upssched.conf
|
|
|
|
CONF_FILES_PERMS= ${NUT_EGDIR}/upsd.conf.sample \
|
|
${NUT_CONFDIR}/upsd.conf \
|
|
${ROOT_USER} ${ROOT_GROUP} 0600
|
|
CONF_FILES_PERMS+= ${NUT_EGDIR}/upsd.users.sample \
|
|
${NUT_CONFDIR}/upsd.users \
|
|
${ROOT_USER} ${ROOT_GROUP} 0600
|
|
CONF_FILES_PERMS+= ${NUT_EGDIR}/upsmon.conf.sample \
|
|
${NUT_CONFDIR}/upsmon.conf \
|
|
${ROOT_USER} ${ROOT_GROUP} 0600
|
|
RCD_SCRIPTS= ups upsd upsdriver upslog upsmon
|
|
|
|
OWN_DIRS= ${NUT_CONFDIR}
|
|
OWN_DIRS_PERMS= ${NUT_STATEDIR} ${NUT_USER} ${NUT_GROUP} 0770
|
|
|
|
pre-install:
|
|
${MKDIR} ${NUT_STATEDIR}
|
|
${MKDIR} ${NUT_DRVDIR}
|
|
${CHOWN} ${NUT_USER} ${NUT_STATEDIR}
|
|
${INSTALL_DATA_DIR} ${NUT_EGDIR}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${NUT_DOCDIR}
|
|
${INSTALL_DATA_DIR} ${NUT_DOCDIR}/cables
|
|
${INSTALL_DATA_DIR} ${NUT_DOCDIR}/drivers
|
|
for f in COPYING CREDITS ChangeLog NEWS README INSTALL UPGRADING; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$f ${NUT_DOCDIR}; \
|
|
done
|
|
${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${NUT_DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/data/driver.list ${NUT_DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${NUT_DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${NUT_DOCDIR}/cables
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|