2011-04-22 15:41:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.61 2011/04/22 13:44:39 obache Exp $
|
2000-01-21 20:15:59 +01:00
|
|
|
|
2008-04-28 10:28:05 +02:00
|
|
|
DISTNAME= apcupsd-3.14.3
|
2011-04-22 15:41:54 +02:00
|
|
|
PKGREVISION= 3
|
2000-08-05 09:31:15 +02:00
|
|
|
CATEGORIES= sysutils
|
2003-03-27 21:01:22 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/}
|
2000-08-05 09:31:15 +02:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
2006-08-04 10:05:54 +02:00
|
|
|
HOMEPAGE= http://www.apcupsd.org/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= UPS power management for APCC Products
|
2000-08-05 09:31:15 +02:00
|
|
|
|
2008-06-20 03:09:05 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-06-15 21:05:56 +02:00
|
|
|
USE_TOOLS+= msgfmt sh makedepend
|
2006-11-17 20:51:20 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2000-08-05 09:31:15 +02:00
|
|
|
|
2003-01-28 23:03:00 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2000-08-05 09:31:15 +02:00
|
|
|
|
2007-06-15 21:05:56 +02:00
|
|
|
PKG_SYSCONFSUBDIR= apcupsd
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
|
2007-10-29 13:40:58 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2007-06-15 21:05:56 +02:00
|
|
|
# Thread support is needed to compile powerflute, which has a curses
|
|
|
|
# interface (apparently needing ncurses), but pthreads isn't very
|
|
|
|
# efficient and is less preferred.
|
2000-08-05 09:31:15 +02:00
|
|
|
#
|
2004-04-25 11:14:00 +02:00
|
|
|
#.include "../../devel/ncurses/buildlink3.mk"
|
2000-08-05 09:31:15 +02:00
|
|
|
#CONFIGURE_ARGS+= --enable-threads # compile threading code
|
|
|
|
#CONFIGURE_ARGS+= --enable-powerflute # compile powerflute program
|
|
|
|
|
2007-06-15 21:05:56 +02:00
|
|
|
#CONFIGURE_ARGS+= --with-net-port=${APCUPSD_NET_PORT} # un-registered port is 7000
|
|
|
|
|
|
|
|
#CONFIGURE_ARGS+= --with-nis-port=${APCUPSD_NIS_PORT} # registered port is 3551
|
|
|
|
#CONFIGURE_ARGS+= --with-upscable=${APCUPSD_UPS_CABLE}
|
|
|
|
#CONFIGURE_ARGS+= --with-upscable=${APCUPSD_UPS_TYPE}
|
|
|
|
|
2006-11-15 22:46:24 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-net # enable NIS network driver
|
2006-12-20 21:49:12 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-usb # enable USB network driver
|
2000-08-05 09:31:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-catgets # use catgets functions
|
|
|
|
CONFIGURE_ARGS+= --enable-nls # i18n support
|
2004-12-29 16:42:37 +01:00
|
|
|
CONFIGURE_ARGS+= --with-lock-dir=${VARBASE}/spool/lock
|
2007-06-15 21:05:56 +02:00
|
|
|
# XXX is this supposed to be the full filename?
|
|
|
|
CONFIGURE_ARGS+= --with-log-dir=${VARBASE}/db/apcupsd.events
|
|
|
|
# NOTE: You want the /dev/ttyXX for smart cables such as 940-0024C,
|
|
|
|
# but probably the /dev/dtyXX for a basic smart-custom cable
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
CONFIGURE_ARGS+= --with-serial-dev=/dev/tty01
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
# configure sets sbindir to '${prefix}/sbin' without expanding $prefix
|
|
|
|
# this breaks .in files that uses @sbindir@
|
|
|
|
CONFIGURE_ARGS+= --sbindir=${PREFIX}/sbin
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= SCRIPTSHELL=${TOOLS_SH:Q}
|
2007-06-15 21:05:56 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_MAKE=${MAKE:Q}
|
2005-06-23 23:13:01 +02:00
|
|
|
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/apcupsd
|
|
|
|
|
2010-02-19 20:05:26 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/apcupsd.conf ${PKG_SYSCONFDIR}/apcupsd.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/apcupsd.css ${PKG_SYSCONFDIR}/apcupsd.css ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/changeme ${PKG_SYSCONFDIR}/changeme ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/commfailure ${PKG_SYSCONFDIR}/commfailure ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/commok ${PKG_SYSCONFDIR}/commok ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/multimon.conf ${PKG_SYSCONFDIR}/multimon.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/hosts.conf ${PKG_SYSCONFDIR}/hosts.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/offbattery ${PKG_SYSCONFDIR}/offbattery ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
RCD_SCRIPTS= apcupsd
|
2008-12-07 23:54:00 +01:00
|
|
|
RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${OPSYS:tl}/apcupsd
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
|
2006-11-15 22:46:24 +01:00
|
|
|
EGFILES= netbsd/apccontrol etc/changeme etc/commfailure etc/commok \
|
2007-06-15 21:05:56 +02:00
|
|
|
etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf
|
2006-11-15 22:46:24 +01:00
|
|
|
MANFILES= apcupsd apctest
|
|
|
|
|
2008-06-20 03:09:05 +02:00
|
|
|
INSTALLATION_DIRS= share/examples/apcupsd share/examples/rc.d \
|
|
|
|
share/doc/html/apcupsd
|
2007-03-24 20:21:18 +01:00
|
|
|
|
2007-06-15 21:05:56 +02:00
|
|
|
SUBST_CLASSES+= strip
|
|
|
|
SUBST_STAGE.strip= pre-configure
|
|
|
|
SUBST_FILES.strip= autoconf/install-sh autoconf/targets.mak
|
|
|
|
SUBST_FILES.strip+= src/gapcmon/Makefile.in src/cgi/Makefile.in
|
|
|
|
SUBST_FILES.strip+= src/Makefile.in
|
|
|
|
SUBST_SED.strip= -e "s|STRIP|STRIPFLAG|g"
|
|
|
|
SUBST_MESSAGE.strip= Fixing conflicting STRIP variable name
|
|
|
|
|
|
|
|
# XXX we should probably allow the tty to be set in /etc/mk.conf too
|
2000-08-05 09:31:15 +02:00
|
|
|
#
|
|
|
|
post-build:
|
2006-11-15 22:46:24 +01:00
|
|
|
.for file in ${MANFILES}
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
${SED} -e 's|@@PREFIX@@|${PREFIX}|'\
|
|
|
|
-e 's|@@SYSCONFDIR@@|${PKG_SYSCONFDIR}|' \
|
2006-11-15 22:46:24 +01:00
|
|
|
${WRKSRC}/doc/${file}.man > ${WRKSRC}/doc/${file}.8
|
|
|
|
.endfor
|
2000-08-05 09:31:15 +02:00
|
|
|
|
2006-11-15 22:46:24 +01:00
|
|
|
HTMLDOCS= apcupsd.gif bclogo.gif bugs.html bugs.wml index.html index.wml \
|
|
|
|
license.html license.wml lists.html lists.wml mail16d.png menu.inc \
|
|
|
|
publishsite support.html support.wml systems.html systems.wml template.inc
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
|
2000-08-05 09:31:15 +02:00
|
|
|
post-install:
|
2007-06-15 23:15:38 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/platforms/etc/apcupsd.conf \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/apcupsd
|
2007-06-20 00:22:55 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/cgi/apcupsd.css \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/apcupsd
|
2006-11-15 22:46:24 +01:00
|
|
|
.for file in ${EGFILES}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/platforms/${file} \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/apcupsd
|
2000-08-05 09:31:15 +02:00
|
|
|
.endfor
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
.for file in ${HTMLDOCS}
|
2006-11-15 22:46:24 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/home-page/${file} \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/html/apcupsd
|
Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
must be updated at the same time. Version 3.8.0 is not
compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
amount of time on batteries, time/date of last transfer to
batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)
A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.
If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 23:32:25 +01:00
|
|
|
.endfor
|
2000-08-05 09:31:15 +02:00
|
|
|
|
2004-04-25 11:14:00 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2000-01-21 20:15:59 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|