Commit graph

76 commits

Author SHA1 Message Date
joerg
f0bbd1517d Remove @dirrm entries from PLISTs 2009-06-14 18:13:25 +00:00
bouyer
fca1a5e1e5 pkg/40112: don't hardcode "netbsd" in RCD_SCRIPT_SRC.apcupsd
bump PKGREVISION
2008-12-07 22:54:00 +00:00
joerg
3b0d97b0de Add DESTDIR support. 2008-06-20 01:09:05 +00:00
sborrill
f2bee2bc11 Update to 2.14.3:
3.14.3 -- 20 January 2008            (Maintenance Release)

NEW FEATURES

  * A HAL policy file is automatically installed on Linux systems to disable
    the hald-addon-hid-ups module which conflicts with apcupsd's control of
    USB UPSes. The file is automatically removed when apcupsd is
    uninstalled.

BUG FIXES

  * Add support for Nominal Power (aka Configured Active Power) reading.
    Credit to Lars Randers <lars@nstec.dk> for most of the code.

  * Add units to NOMINV, NOMOUTV, and NOMBATTV stats.

  * Eliminate "warning: deprecated conversion from string constant to
    'char*'" warnings emitted from gcc-4.2.1 (earlier versions with
    -Wwrite-strings). Contributed by Steve Yarmie <tribhuvanji@gmail.com>.

  * Fix killpower and eeprom settings bug on USB modules introduced when
    INPUT reports were prioritized over FEATURE reports.

  * Fix bugs that could cause NIS-net driver to get stuck waiting for
    comms to be restored instead of shutting down.


3.14.2 -- 15 September 2007          (Maintenance Release)

NEW FEATURES

  * Tray icon support on Vista. Vista does not allow background services
    to interact with the user's desktop, so winapcupsd's built-in tray
    icon did not work.

  * Tray icon is now a standalone application "apctray" which is capable of
    monitoring multiple Apcupsd instances via Apcupsd's NIS. Any Apcupsd
    running NIS can be monitored. By default the icon monitors a single
    apcupsd at 127.0.0.1:3551. See command line options below for adding
    additional monitors.

  * Tray icon can be installed individually (disable other packages in the
    installer) for users who want to use the icon only.

  * Apctray command line options:

       apctray.exe
          - No parameters: Start any instances listed in registry. If no
          instances in reg, start a default instance monitoring the local
          machine (127.0.0.1:3551).

       apctray.exe /host foo /port 3551 /add
          - Add a monitor for the given host and port.

       apctray.exe /host foo /port 3551 /del
          - Remove the given monitor.

       apctray.exe /del
          - Remove all monitors.

       apctray.exe /install
          - Configure apctray to start automatically.

       apctray.exe /remove
          - Do not start automatically.

       apctray.exe /kill
          - Shut down apctray

BUG FIXES

  * The win32 portions of winapcupsd have been almost entirely rewritten.
    The code is cleaner (mostly) and lots of unused baggage has been
    removed.

  * USB fix for BackUPS LCD series. This fix carries a risk of breaking
    other
    models, but test results are positive so far.

  * Fix linux-usb device detection bug when multiple hiddev nodes are
    present.  Fixes Fedora Bugzilla #245864:
    <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=245864>

  * Fix SNMP port selection when using SNMP driver

  * Add workaround for broken BackUPS Pro model that returns certain
    reports encoded in ASCII. Based on a patch from David Fries
    <David@Fries.net>.

  * apcsmart: Wait 20 seconds before declaring COMMLOST. This is necessary
    when using a smart serial cable on an UPS with an SNMP monitoring card
    installed. The SNMP card appears to disrupt serial comms for several
    seconds when interesting events are in progress.

  * Documentation updates: Fix up udev info for modern Linux distros.
    Update Windows section for apctray.

  * Don't leak unnecessary descriptors to child when execing apccontrol.

  * Fix bug with multi-threaded net_open() calls. net_open() was using
    a global buffer for the destination address. Yikes! Bug manifestied
    itself in apctray with multiple monitors occasionally (and
    timing-dependently) pointing to the wrong UPS.

  * Correct multimon.conf humidity monitoring.  Problem fixed by
    Patrick Frei.  Reference:
    https://bugzilla.novell.com/show_bug.cgi?id=199834

  * Fix race between attach_ups() and detach_ups() which could result
    in the UPSINFO structure being freed prematurely. Thanks to James
    Abbott <j.abbott@imperial.ac.uk> for running many tests to help me
    find this bug.

  * Remove dependency on libc++ (again). Must use gcc as linker when
    using libsupc++ since g++ automatically links against full libc++.
2008-04-28 08:28:05 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
sborrill
8c5d199b6d Don't need to bump PKGREVISION as by default, options as on (i.e. same as
before)
2007-10-29 12:44:56 +00:00
sborrill
1301bed0d3 Add cgi and snmp options (on by default) 2007-10-29 12:40:58 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
bouyer
6eb48581f5 Fix path in RCD_SCRIPT_SRC, and let RCD_SCRIPT install it in
share/example/rc.d/. Based on patch from MASUDA Hideo in pkg/36970,
and advise from Joerg Sonnenber.
2007-09-18 19:24:07 +00:00
bouyer
26b576f47a Properly handle config files in $PREFIX/etc. Not sure how this worked with
the previous version of the package ...
Pointed out by Bernd Ernesti.
2007-06-19 22:22:55 +00:00
bouyer
564268b946 Use a more up-to-date config file as example
Add rc.d keywords to the startup script
both suggested by Bernd Ernesti.
2007-06-15 21:15:38 +00:00
bouyer
1b21dcb0fb Update to 3.14.1, based on patches sent in PR pkg/35594 and pkg/36246.
As a side effect this should make apcupsd build on netbsd-4 and current.

pkgsrc changes: cgi and snmp are now enabled by default.
Relevant changes since 3.12.4:
Unreliable MASTER/SLAVE networking mode is removed
PowerChute Network Shutdown driver (protocol available in the AP9617 family
    of smart slot modules)
New configuration directives to set paths at runtime
2007-06-15 19:05:56 +00:00
cjs
affae226af add some more tricks and tips 2007-04-18 08:09:56 +00:00
joerg
161c920c15 Prepare for switching to NO_MTREE=yes. 2007-03-24 19:21:18 +00:00
joerg
72a188c9b8 Bah, not my day. Add the DragonFly patches as rest of the last commit. 2007-03-07 20:48:04 +00:00
joerg
2601a85544 Allow this to build on DragonFly. Complete untested, feedback is welcome.
If it is provided, it might be worth to fix the distribution name :-)
2007-03-07 20:47:05 +00:00
wiz
6e2c35c083 pkglint cleanup; update HOMEPAGE/MASTER_SITES.
From Sergey Svishchev in private mail.
2007-02-22 19:01:13 +00:00
bouyer
5917a315a4 Enable USB by default, it works fine once uhidev is disabled in kernel
and doesn't hurt serial connections. Bump pkgrevision.
2006-12-20 20:49:12 +00:00
bouyer
a591ad7a3e Change 'USE_LANGUAGES+= c++' to 'USE_LANGUAGES= c c++'. It seems that
'c' isn't in USE_LANGUAGES by default, and this cause the configure
script to fail (I still don't know why it works for me).
Pointed out by Martti Kuparinen in private mail, and Robert Elz in
PR pkg/35064.
2006-11-17 19:51:20 +00:00
bouyer
93b483ae63 Update to 3.12.4.
Summary of changes since 3.8.6:
* Support for USB UPSe (not enabled in pkgsrc)
* new networking driver (net) that uses the NIS interface rather than the
  older master/slave networking
* The apctest program has been enhanced to do EEPROM programming in a much
  more interactive way than the prior versions.
* Added a ONBATTERYDELAY config, time to switch to onbattery state after
  a power failure. New event "offbattery", which is the same as mainsback but
  only sent if we got to state onbattery
* new snmp driver, with trap support.
* Battery disconnect and reconnect events
2006-11-15 21:46:24 +00:00
ghen
b526bb68b5 The Apcupsd homepage has moved to http://www.apcupsd.org. 2006-08-04 08:05:54 +00:00
jlam
1cf9796f3c BUILD_USE_MSGFMT and USE_MSGFMT_PLURALS are obsolete. Replace with
USE_TOOLS+=msgfmt.
2006-04-13 18:23:29 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
jlam
bd2788d930 Merge CONF_FILES/SUPPORT_FILES and CONF_FILES_PERMS/SUPPORT_FILES_PERMS
as the INSTALL and DEINSTALL scripts no longer distinguish between
the two types of files.  Drop SUPPORT_FILES{,_PERMS} and modify the
packages in pkgsrc accordingly.
2005-08-19 18:12:36 +00:00
kristerw
36df4a427b Change the CONFIGURE_ENV to use the variables users are supposed to set,
rather than the autoconf cache variables.
2005-06-24 19:09:41 +00:00
kristerw
1337021aaa Prevent paths to the build directories from being included in the package.
Bump PKGREVISION.
2005-06-23 21:13:01 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
reed
ee8be9d0c1 RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.
And always is defined as share/examples/rc.d
which was the default before.

This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.

This was discussed on tech-pkg in late January and late April.

Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-05-02 20:33:57 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
d81d19f8e0 Add RMD160 digests. 2005-02-24 12:51:41 +00:00
minskim
5e28b53ad3 Use VARBASE. 2004-12-29 15:42:37 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
bouyer
ddb0111910 Kill manual use of RCD_SCRIPTS_EXAMPLEDIR, set RCD_SCRIPT_SRC.apcupsd to
the appropriate path instead.
2004-12-05 17:26:47 +00:00
reed
62071c8b2f RCD_SCRIPTS_EXAMPLEDIR was just changed to be a relative directory
under ${PREFIX} instead of being an absolute path.

So fix the references using RCD_SCRIPTS_EXAMPLEDIR to be
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}.

This should have no changes to use before.

Please note that the MESSAGE files in most cases are wrong in the
first place. We have automated mechanisms and could have an automated
message for explaining rc.d script usage. (This is something to do!)
2004-10-11 22:14:51 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
reed
2c9bb2bb44 The RCD_SCRIPTS mechanism expects the rc.d script to be installed to
${RCD_SCRIPTS_EXAMPLEDIR} instead of ${PREFIX}/etc/rc.d. (Okay'd by bouyer@.)
2004-04-27 20:31:08 +00:00
snj
acb9e07946 Convert to buildlink3. 2004-04-25 09:14:00 +00:00
reed
9c790735db mk/bsd.pkg.install.mk now automatically registers
the RCD_SCRIPTS rc.d script(s) to the PLIST.

This GENERATE_PLIST idea is part of Greg A. Woods'
PR #22954.

This helps when the RC_SCRIPTS are installed to
a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later,
the default RCD_SCRIPTS_EXAMPLEDIR will be changed
to be more clear that they are the examples.)

These patches also remove the etc/rc.d/ scripts from PLISTs
(of packages that use RCD_SCRIPTS). (This also removes
now unused references from openssh* makefiles. Note that
qmail package has not been changed yet.)

I have been doing automatic PLIST registration for RC_SCRIPTS
for over a year. Not all of these packages have been tested,
but many have been tested and used.

Somethings maybe to do:
- a few packages still manually install the rc.d scripts to
  hard-coded etc/rc.d. These need to be fixed.
- maybe  remove from mk/${OPSYS}.pkg.dist mtree specifications too.
2004-04-23 22:07:52 +00:00
grant
60ad86155b replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 15:06:57 +00:00
jlam
a9f08159c4 Back out last change related to moving ncurses/buildlink2.mk to
curses.buildlink2.mk.  This was wrong because we _really_ do want to
express that we want _n_curses when we include the buildlink2.mk file.

We should have a better way to say that the NetBSD curses doesn't
quite work well enough.  In fact, it's far better to depend on ncurses
by default, and exceptionally note when it's okay to use NetBSD curses
for specific packages.  We will look into this again in the future.
2003-09-28 09:13:55 +00:00
grant
7a71199b50 move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides
support for base system curses/ncurses as well as ncurses itself.

suggested by wiz.
2003-09-27 17:07:34 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
wiz
43fa0c7cb6 PKGREVISION bump for libiconv update. 2003-07-13 13:50:19 +00:00
bouyer
abacd14103 Update to 3.8.6
Changelog: Fixed root exploit of slave machines
If you use the network features of apcupsd, you probably want to upgrade.
2003-03-27 20:01:22 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
cjep
afa55834c5 Whitespace fix 2002-12-23 16:24:59 +00:00
bouyer
9d1c4a507a 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 22:32:25 +00:00