Commit graph

95 commits

Author SHA1 Message Date
jperkin
45bc40abb4 Remove example rc.d scripts from PLISTs.
These are now handled dynamically if INIT_SYSTEM is set to "rc.d", or
ignored otherwise.
2014-03-11 14:04:57 +00:00
jperkin
0b1ee6963b Package requires libusb. Patch from Sebastian Wiedenroth. 2013-12-11 11:55:17 +00:00
obache
4a646b438b recursive bump from graphics/gd shlib major bump. 2013-09-04 12:31:24 +00:00
tron
a36fb86593 Try to fix the fallout caused by the fix for PR pkg/47882. Part 3:
Recursively bump package revisions again after the "freetype2" and
"fontconfig" handling was fixed.
2013-06-04 22:15:37 +00:00
wiz
53745b22ea Bump freetype2 and fontconfig dependencies to current pkgsrc versions,
to address issues with NetBSD-6(and earlier)'s fontconfig not being
new enough for pango.

While doing that, also bump freetype2 dependency to current pkgsrc
version.

Suggested by tron in PR 47882
2013-06-03 10:05:17 +00:00
joerg
eced804d39 Link C++ code with the C++ compiler. 2013-05-04 12:52:29 +00:00
wiz
d1b820f37b Recursive bump for png-1.6. 2013-02-16 11:18:58 +00:00
adam
f4c3b89da7 Revbump after graphics/jpeg and textproc/icu 2013-01-26 21:36:13 +00:00
asau
54c5cd959e Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-23 19:50:50 +00:00
shattered
9d18b8ffab Proofread apccontrol's messages. Raise syslog severity for 'emergency'
message to 'crit'.
2012-05-07 12:55:23 +00:00
bouyer
c202ded60d Fix new patch-ap commited earlier: space vs tab issue ... 2012-02-19 18:21:58 +00:00
bouyer
65459abe77 Fix build on OpenSolaris, from MASUDA Hideo in PR pkg/46043 2012-02-18 21:08:32 +00:00
shattered
97befff1fe Actually install the manual (manual.html), but don't install WML-formatted
docs.
2012-01-22 09:07:50 +00:00
sbd
e93e5d65e3 Recursive bump for graphics/freetype2 buildlink addition. 2011-11-01 06:11:52 +00:00
shattered
dd81ae1e58 PR/38104 - remove conflict with nut: rename upsimage.cgi to apcupsimage.cgi
OK by maintainer.
2011-08-14 21:42:14 +00:00
bouyer
46c0cd7f46 Apply patch from PR pkg/45171, fixing rc.d script on DragonFly. 2011-08-07 17:27:24 +00:00
bouyer
35dfda410c Update to 3.14.9.
Dragonfly users, please test that is still builds !
pkgsrc change: as snmp support doesn't depend on net-snmp
anymore, remove snmp option and always build snmp support.
cgi option now depend on graphics/gd/

User-visible changes sinces 3.14.3:

2010-08-30 14:18  adk0212

        * src/drivers/snmplite/: mge-mib.cpp, mge-oids.h, mibs.cpp:

        Add support for MGE SNMP MIB. Contributed by Lars Täer
        <taeuber@bbaw.de>

2010-07-30 18:04  adk0212

        * src/drivers/snmplite/: apc-mib.cpp, apc-oids.h, mib.cpp, oids.h,
        rfc1628-mib.cpp, rfc1628-oids.h, snmplite.cpp, snmplite.h:

        Add support for RFC1628 SNMP MIB. Refactor APC MIB and create
        MibStrategy struct for associating MIB/CI mapping with
        corresponding processing function. RFC1628 strategy is coded per
        the MIB but untested.

2010-01-10 10:29  adk0212

        * include/defines.h, src/apctest.c, src/drivers/usb/usb.c:

        Add apctest support for reading/setting self-test interval on USB.
        Also show current setting in UPS status. Contributed by James
        Belleau <jpbelleau@gmail.com>

2009-10-25 11:03  adk0212

        * configure, autoconf/config.h.in, autoconf/configure.in,
        autoconf/variables.mak.in, include/struct.h,
        platforms/etc/apcupsd.conf.in, src/drivers/Makefile,
        src/drivers/drivers.c, src/drivers/snmplite/Makefile,
        src/drivers/snmplite/asn.cpp, src/drivers/snmplite/asn.h,
        src/drivers/snmplite/mib.cpp, src/drivers/snmplite/snmp.cpp,
        src/drivers/snmplite/snmp.h, src/drivers/snmplite/snmplite.cpp,
        src/drivers/snmplite/snmplite.h, src/lib/apcconfig.c,
        src/lib/apcstatus.c:

        Add SNMP Lite driver which does not depend on net-snmp library.
        This makes it more portable and eliminates need to move libsnmp.so
        to /lib in order to do a killpower on systems where /usr is
        unmounted.

2009-09-01 20:30  adk0212

        * src/apctest.c:

        Implement battery calibration in apctest for USB models.  Thanks to
        James Belleau <james@belleau.net> for the original implementation
        which has been modified somewhat in this commit.

2009-05-02 10:30  adk0212

        * src/action.c:

        Change log level of UPS self-test messages to WARNING from ALERT.
        Given that self-test messages are routine, they do not belong at
        LOG_ALERT.  Contributed by Dave Ewart <davee@ceu.ox.ac.uk>.

2009-04-25 10:58  adk0212

        * src/lib/apcconfig.c:

        Remove EVENTFILE, EVENTFILEMAX config directives. These were
        replaced by the plural versions that are in use today (EVENTSFILE,
        EVENTSFILEMAX) almost 10 years ago. It's time to kill the old
        names.  (h/t Trevor Roydhouse <trev@sentry.org>)

2009-03-02 17:48  adk0212

        * doc/apcupsd.man, include/drivers.h, include/extern.h,
        src/action.c, src/apctest.c, src/apcupsd.c, src/device.c,
        src/options.c, src/drivers/drivers.c,
        src/drivers/apcsmart/apcsmart.h, src/drivers/apcsmart/smart.c,
        src/drivers/apcsmart/smartoper.c, src/drivers/usb/usb.c,
        src/drivers/usb/usb.h, src/lib/apclock.c:

        Add support for turning the UPS off completely. This complements
        existing hibernate (aka killpower) functionality. Turn-off is
        implemented for apcsmart and USB drivers, subject to support for
        the relevant commands in the UPS itself. Contributed by Keith
        Campbell <campbell@econnectix.com>.

2008-06-29 11:12  adk0212

        * src/action.c:

        Fix bug in LOWBATT glitch handling. We must examine LOWBATT for
        changes every time thru the status loop, not just during the
        OnBattery state.  Otherwise we can miss the initial LOWBATT
        assertion, which defeats the glitch rejection logic.

2008-05-06 20:16  skoona

        * src/gapcmon/gapcmon.c:

        Corrected the use of NOMPOWER and the calc of current usage amount

2008-05-04 11:13  adk0212

        * src/drivers/usb/usb.c:

        Add a heuristic to fix up incorrect NOMINV or NOMOUTV. Some UPSes
        (RS 500) report decivolts instead of volts. Reported by Kirill S.
        Bychkov <yason@linklevel.net>.

2008-01-27 12:00  adk0212

        * include/struct.h, platforms/etc/apcupsd.conf.in,
        platforms/mingw/apcupsd.conf.in, src/device.c,
        src/drivers/net/net.c, src/drivers/snmp/drv_powernet.c,
        src/lib/apcconfig.c:

        Add POLLTIME directive to control UPS polling interval. NETTIME is
        accepted as a synonym for compatibility with old config files.
2011-08-01 14:54:51 +00:00
obache
1d9df3258a recursive bump from gettext-lib shlib bump. 2011-04-22 13:41:54 +00:00
joerg
ad505a7a1d Really use root for the config files. Bump revision. 2010-02-19 19:05:26 +00:00
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