64 Commits

Author SHA1 Message Date
espie
f4b7f81318 convert to PKGSTEM 2018-09-04 12:46:09 +00:00
rpe
214644a454 Now that all ports rc.* scripts are using #!/bin/ksh
- change [] tests to [[]]
- change arithmetic [] tests to (())
- change = to == inside [[]]
- remove unecessary quoting inside [[]]

OK aja@
2018-01-14 14:42:18 +00:00
rpe
9a8b5ccd06 Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d
daemon scripts and bump subpackages that contain the *.rc scripts.

discussed with and OK aja@
OK tb
2018-01-11 19:27:01 +00:00
ajacoutot
d60b768928 daemon_timeout is not passed to the child scripts either. 2015-11-29 15:50:20 +00:00
kirby
3cadb26630 tell people to disable uhidev not uhid.
input and ok from sthen@ (MAINTAINER)
2015-06-18 21:18:04 +00:00
sthen
9bca16ad66 Tweaks to sysutils/nut:
- Install libupsclient headers/pkgconfig files. landry@ asked about
these; they needed a --with-dev configure flag to get them installed...

- Get rid of the useless ${NUT_USER} and ${NUT_ID} SUBST_VARS which are
now getting in the way of new files in the PLIST.

- Move some files from /usr/local/share/ups to a more easily recognisable
/usr/local/share/nut.
2015-05-02 21:52:19 +00:00
sthen
84f9804e21 update to NUT 2.7.3 2015-04-23 22:38:55 +00:00
sthen
c895957b7c Add an snmp-ups subdriver to NUT for Huawei, tested with UPS5000-E
Add a meta rc script that starts/stops upsd and upsmon in the right order
2015-03-26 01:07:32 +00:00
sthen
2bf336700e Add a note that some APC devices need ugen to work with NUT. 2015-01-22 16:42:09 +00:00
ajacoutot
a0973c925e Drop configuration files only used by System V init scripts and add a
mention in the README.

input/ok sthen@ (maintainer)
2014-08-14 06:54:24 +00:00
ajacoutot
9ecb6ea3d9 /etc/rc.d -> ${RCDIR}
(as pedantic and useless as /usr/local vs LOCALBASE|PREFIX but well...)

ok sthen@
2014-07-19 22:36:13 +00:00
ajacoutot
085ee80fea pkg_scripts is not a variable anymore. 2014-07-12 14:55:40 +00:00
sthen
bc17688e69 update to NUT 2.7.2 2014-04-21 11:41:11 +00:00
ajacoutot
9f8c4dfca3 Also @comment html/nut-banner.png like other html/ stuffs that currently
install directly under PREFIX.

ok sthen@ (maintainer)
2014-03-29 15:39:13 +00:00
sthen
4aa281acdf update to nut-2.7.1 2014-01-07 21:55:54 +00:00
sthen
270c56b366 README tweak: show people how to start the daemons without rebooting. 2012-11-08 21:59:01 +00:00
sthen
c8058bb098 update to NUT 2.6.5; bugfixes, cleanup, new device support, etc. 2012-08-09 12:05:16 +00:00
sthen
2e38342377 update to NUT 2.6.4 rolling in the patch for CVE 2012-2944 which we had locally,
adding new device support, better snmp support for various devices, and many
other fixes and improvements.
2012-06-08 21:07:02 +00:00
ajacoutot
e128a0bf97 Put these users in the daemon class to be consistent with all the other
ones in ports.

discussed with and ok sthen@
2012-01-26 08:03:56 +00:00
sthen
34765332c8 tweak README 2012-01-24 12:38:44 +00:00
sthen
673fe3eeac bit of a tidy-up for NUT.
- move MESSAGE to README and flesh it out a bit

- fix libwrap detection in autoconf

- install the avahi service definition to the right place again; this got
broken when moving to using SYSCONFDIR overrides / BASESYSCONFDIR
2012-01-12 11:39:36 +00:00
sthen
0eee9917de update to NUT 2.6.3.
- nut-scanner has been changed to dlopen()ing modules, so roll it into the
main package now this can be done without bringing in excess dependencies.
2012-01-11 16:01:33 +00:00
sthen
9ea05cb806 better SYSCONFDIR handling, get rid of CONFIGURE_STYLE=...old hack 2011-11-28 10:52:03 +00:00
sthen
652bed0a74 - Handle the libusb-compat changeover, from aja@
- Move nut-scanner to a separate package, not everybody wants to
 scan their nuts and it pulls in various deps not wanted for the
 main package.

- Add missing dep on avahi (for the scanner only) and install
 static service configuration files.

ok ajacoutot
2011-11-14 08:58:07 +00:00
sthen
8103eadcb9 update to NUT 2.6.2 and add rc.d scripts
- thanks ajacoutot@ for looking over the scripts

- note that there has been some major work on apcsmart; in the event
of problems the old driver is still available as apcsmart-old
2011-09-19 15:59:57 +00:00
sthen
35ac303ec8 update NUT to 2.6.1; bugfixes, cleanup, improvements and new device support. 2011-06-02 10:37:08 +00:00
sthen
750233cdf7 - split the netxml-ups driver into a separate package (nut-xml),
as was already done with the snmp-ups driver, to reduce dependencies
for the common case

- rewrite the various DESCR files
2011-03-09 23:32:20 +00:00
sthen
719b1efe23 adjust MESSAGE to show people how to identify device nodes for USB UPS,
so they don't need to whack permissions on usb* ugen*. with aja@
2011-03-09 12:55:04 +00:00
sthen
9124dca4c6 - update nut to 2.6.0 (major documentation revamp and support for new
devices, including APC 5G, various Eaton, HP, and Tripp Lite models,
and a number of USB HID devices)

- build the snmp package by default

- use correct user/group names in MESSAGE
2011-03-09 11:00:55 +00:00
sthen
e8250f2824 - new-style WANTLIB/LIB_DEPENDS/REVISION
- sync WANTLIB
- suggest suitable group for serial ports in MESSAGE
- take MAINTAINER
2010-10-03 22:21:49 +00:00
sthen
484427e60a Note in MESSAGE that the _nut user must have permission to access the
relevant device nodes if using a USB UPS. Suggested by Alexey Suslikov.
2010-06-26 11:11:12 +00:00
ajacoutot
9cb31f3652 Consistency: remove the 1, 2 or even 3 empty blank lines.
sthen@ agrees
2010-04-15 14:29:16 +00:00
sthen
5c5a608f6c update to 2.4.3, tested by Denny White and Aaron Stellman
note that with USB UPS, you may have to allow permissions on
further ugen subdevices (e.g. ugen0.01 as well as ugen0.00).
2010-03-31 22:11:11 +00:00
ajacoutot
64b561914e Use gettext module.
Correctly install _ups user and group.
Add better defaults config.

looks ok to sthen@
2010-03-20 17:11:40 +00:00
sthen
8052dca2ba from upstream repository;
* base the default maxconn on available filehandles.
* change the error message to better indicate that it's an error
not a warning.

ok jasper@

while there, remove an out-of-date comment in MESSAGE-main.
2010-01-15 11:25:15 +00:00
sthen
94f09986bc update to 2.4.1, code cleanup and adds support for a bunch of new
UPS and also now preliminary support for PDUs.

ok mbalmer (maintainer),
"commit and we fix in-tree if i run into issues" henning
2009-04-03 15:40:12 +00:00
martynas
6b99e69f75 - add neon to LIB_DEPENDS, so that netxml driver always builds
- upsimage.cgi used upsimage_cgi_LDFLAGS to tweak for -all-static,
and not *_LDADD as upsstats.cgi and upsset.cgi did.  as a result
upsimage.cgi was linked dynamically, therefore broken inside chroot
- add USE_GMAKE, so that it builds on landisk
- make lib-depends-check happy
- add @bin marker for bin/snmp-ups
- bump all PKGNAMEs
ok sthen@
2008-09-27 17:30:08 +00:00
martynas
530ab60608 Apapche -> Apache. ok wcmaier@ 2008-09-26 19:00:58 +00:00
martynas
f025b2164e update to nut-2.2.2, which contains the old agiler driver from 2.2.0
(now called agiler-old)
upses such as the below can now work again:
{0x0665, 0x5161, &agiler_old_subdriver},        /* Belkin F6C1200-UNV */
{0x06da, 0x0003, &agiler_old_subdriver},        /* Mustek Powermust */
{0x0f03, 0x0001, &agiler_old_subdriver},        /* Unitek Alpha 1200Sx *
ok sthen@
2008-09-08 19:38:30 +00:00
mbalmer
903d6ac650 Update to nut ver. 2.2.1.
requested by and ok henning
2008-01-30 20:55:59 +00:00
henning
bf3bca3741 update to 2.0.5 + a fix to make bcmxcp work correctly again
partially from and ok mbalmer
2007-05-18 12:22:45 +00:00
espie
157d1d385c new MULTI_PACKAGES 2006-11-25 19:36:43 +00:00
henning
2596ff8b6d update to nut-2.0.3, last not leas bringing many format string fixes
preserve my changes to the fentonups driver, allowing the detection logic
to be bypassed and a model to be forced - for UPSes that do implement the
protocol except the identification command, which seems to be somewhat common
the Xanto S3000R thing here behaves like that, and support for it is added
ok mbalmer
2006-05-03 17:32:09 +00:00
fgsch
9ff14ac211 fix more breakage and regen plist. sturm@ ok. 2005-10-24 05:14:13 +00:00
espie
0031945c6e Fix a buglet in bsd.port.mk where the PSEUDO_FLAVORS get encoded into
the FULLPKGPATH, thus providing changes to packing-lists which shouldn't
happen, and making update more difficult.

Accordingly, bump all pkgnames with PSEUDO_FLAVORS, and provide an
update @pkgpath for the bug for most of them (left out the ones with 3
or 4 pseudo flavors for space constraints...)
2005-09-16 09:51:25 +00:00
mjc
9c8b55eacd typo and spelling fixes 2005-06-03 17:47:00 +00:00
db
0925c3a284 typo and wording fixes; approved by pval
ok mbalmer@ "that diff was fun to read"
2005-03-15 01:57:02 +00:00
espie
3472699ddc remove shit 2004-12-20 14:38:27 +00:00
alek
db108a2b4f Don't hardcode /etc
ok naddy@
2004-10-28 17:20:05 +00:00
danh
6362fb0bc7 initial sweep for MESSAGE decoration removal; ok espie@ 2004-10-13 18:59:18 +00:00