1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-24 14:10:30 -04:00
Commit graph

47 commits

Author SHA1 Message Date
Cy Schubert
89602a6df6 sysutils/nut: Guarantee that devfs is started
devfs does not always win the race with nut causing nut to fail to
start in some installations.

PR:		258190
Submitted by:	hsakamt@tsnr.com
Reported by:	hsakamt@tsnr.com
MFH:		2021Q3
2021-08-31 20:59:48 -07:00
Mathieu Arnold
135fdeebb9
all: Remove all other $FreeBSD keywords. 2021-04-06 16:31:13 +02:00
Cy Schubert
fe02968432 Properly check USB errors using sys/errno.h. 2020-11-14 07:58:15 +00:00
Cy Schubert
64a44f199e Move default log location so it can be rotated without root privileges.
Add syslog.conf and newsyslog.conf files for installation into their
respective .d directories in $PREFIX.

Allow upslog log format to be customized.

PR:		236700
Submitted by:	Daniel O'Connor <darius@dons.net.au> (90%)
2019-03-23 19:34:07 +00:00
Cy Schubert
e39850e312 Fix incorrect script default parameter expansion.
PR:		233083
2018-11-09 13:47:51 +00:00
Cy Schubert
e15b0e362b Fix openssl111 build and build under current and stable/12.
MFH:		2018Q4
2018-10-24 07:00:58 +00:00
Cy Schubert
26403766d5 Avoid $nut_upsshut is not set properly messages by defining a default.
MFH:		2018Q3
Suggested by:	Dan Mahoney <dmahoney@isc.org>
2018-08-12 04:24:05 +00:00
Cy Schubert
637c5b1c84 Fix build with SERIAL option.
PR:		223122
2017-10-20 14:51:35 +00:00
Cy Schubert
311484254a Nut USB drivers report a "permission error" without visible reasons
for the error even though permissions are OK (or the driver is run
as root).

Nut uses libusb-0.1 API, assuming return cods of < 0. FreeBSD provides
a libusb-0.1 wrapper howerver it uses libusb-1.0 error codes (which
are negative). This set of patches "teaches" nut libusb-1.0 error codes
as produced by FreeBSD.

Network UPS Tools (networkupstools.org) has a project to use libusb-1.0.
This commit is a stopgap fix until our upline implments lubusb-1.0
support in nut.

PR:		223117
Submitted by:	lev
2017-10-20 01:09:12 +00:00
Cy Schubert
fe1fd540a2 If nut_upsshut is YES in rc.conf and POWERDOWNFLAG directive is in
upsmon.conf, send a powerdown signal to the UPS to shut down at
poweroff.

Suggested by:	Alexander Milanov <a@amilanov.com>
2017-06-14 06:46:32 +00:00
Cy Schubert
2779f2c253 Fixup "use default values" assignments for real. 2017-06-14 02:08:56 +00:00
Cy Schubert
04a053cbca Revert r443550. An unintended patch was included. Will try again. 2017-06-14 02:07:14 +00:00
Cy Schubert
f43a233b2b Fixup "use default values" assignments. 2017-06-14 01:58:51 +00:00
Cy Schubert
fd5d396d0c Shut down upsmon gracefully. 2017-06-12 13:48:36 +00:00
Cy Schubert
9ddb115e70 The build adds "*" to its devd conf file prior to install. Really fix
PR 191777.

PR:		191777
2014-07-17 20:04:18 +00:00
Cy Schubert
19111bcac8 Fix permissions /dev permissions.
PR:		191777
2014-07-15 06:02:53 +00:00
Cy Schubert
e1b8e14c99 Point rc script to the new upsdrvctl path. 2014-07-05 04:51:06 +00:00
Cy Schubert
1261ab9470 Update 2.6.5 --> 2.7.2, stagify and modernize, assume maintainership.
Approved by:	itetcu (maintainer)
2014-07-04 00:30:45 +00:00
Doug Barton
9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Ion-Mihai Tetcu
1a36a781f4 Update to 2.6.1. Main changes:
- IPv6 always compiled in (drop IPV6 option)
- megatec and megatec_usb drivers replaced by blazer_ser and blazer_usb.
- liebertgxt2 renamed to liebert-esp2
- s/PREFIX/LOCALBASE/ for gd includes/libs (grrr!)
- add OPTIONal bash completion

PR:		152866 [1], 157925 [2],
Submitted by:	John Bayly <freebsd.ports@tipstrade.net> [1], lev@ [2]
2011-08-02 17:05:43 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Stanislav Sedov
f5d05ea54d - Chase libusb20 rename in r189585.
- Mark sane-backends broken on current due to changes
  in USB stack.

Reviewed by:	thompsa (old version), miwi
Tested by:	miwi
2009-03-09 17:15:43 +00:00
Beat Gaetzi
2292cb8a75 - Update to 2.4.1
- Add patch for problem reported in ports/131812

PR:		ports/131885
Submitted by:	Joerg Pulz <Joerg.Pulz AT frm2.tum.de> (maintainer)
Approved by:	miwi (mentor)
2009-02-20 17:42:51 +00:00
Martin Matuska
66f6bfec80 - Forgot to commit these in my last commit (my mistake)
- Match with 2.2.2
2008-06-12 05:41:35 +00:00
Martin Matuska
3a2fb900f1 - Update to 2.2.2
- Add new OPTIONS
- Other minor changes
- Depend on pkgconfig

PR:		ports/124451
Submitted by:	Joerg Pulz <Joerg.Pulz@frm2.tum.de> (maintainer)
Reviewed by:	mm
2008-06-11 11:32:05 +00:00
Martin Matuska
f366e08952 - Update to 2.2.1
PR:		ports/119777
Submitted by:	Mikle Davidkin <skylord at vt.net.ru>
Tested by:	mm
Approved by:	maintainer (timeout)
2008-02-19 12:23:39 +00:00
Tilman Keskinoz
754984377c Fix configure check for IPv6 detection, and add an IPV6 OPTION
PR:		117144
Submitted by:	Joerg Pulz <Joerg.Pulz@frm2.tum.de>
2008-01-02 13:55:34 +00:00
Martin Matuska
e446c1f2f8 - Upgrade to 2.2.0
PR:		ports/115898
Submitted by:	mm
Approved by:	maintainer (timeout)
2007-10-07 09:13:49 +00:00
Pav Lucistnik
bc4d4290f5 - Update to 2.0.3
- Split rc.d script into three - one for each daemon
- Introduce user configurable variable NUT_USER, defaults to uucp

PR:		ports/95015
Submitted by:	Joerg Pulz <Joerg.Pulz@frm2.tum.de> (maintainer)
2006-03-29 12:03:54 +00:00
Sergey Matveychuk
02b7132e84 - Update to 2.0.2
- Make the port as master for soon-coming new ports
- Resort MASTER_SITES
- Homour portlint
- Improve rcNG script
- New maintainer

PR:		ports/83318
Submitted by:	Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by:	DougB
2005-07-14 08:21:12 +00:00
Doug Barton
815e701772 From the PR, with some small mods from me:
1. Upgrade to the latest version, 2.0.1
2. Convert to rc.d style startup/shutdown script
3. Improve permissions on /var/db/nut

Download pgp signature file for the tarball.

PR:		ports/81591
Submitted by:	Dmitry A Grigorovich
2005-06-25 20:28:01 +00:00
Doug Barton
7d167c85f3 Update to use the upsdrvctl program to start and stop. This should
remove the need to edit this file for 99% of users. Editing the config
files will still be necessary however.

Submitted by:	Rob MacGregor <rob.macgregor@gmail.com>
2004-09-03 03:15:14 +00:00
Doug Barton
410bb41c46 Update to version 2.0.0, the latest (and newest) stable version. 2004-08-29 01:55:45 +00:00
Doug Barton
7a54874aaf For some reason, these man pages were left out of the 'all' target 2004-02-08 07:35:11 +00:00
Doug Barton
9b10715af3 This patch has been incorporated into the new release. 2004-02-08 07:34:46 +00:00
Doug Barton
78464810dd Improve the command line arguments for upslog.
PR:		ports/57031
Submitted by:	truckman
2004-02-08 07:33:52 +00:00
Doug Barton
d4e38ac9d1 Upgrade to version 1.4.0, the latest stable version.
Re-enable the CGI programs, now that they build.

Kind assistance provided by: Guido Falsi <mad@madpilot.net>
2003-09-10 11:18:29 +00:00
Doug Barton
ccf67e6aac Since the distribution no longer comes with a sample FreeBSD script
(which I hope to remedy), the patch is now superfluous. So instead,
provide a sample script here.
2003-01-13 10:37:23 +00:00
Doug Barton
d0faf23098 Upgrade to 0.45.3, which has several new UPS modules, and many new man pages 2001-12-22 08:52:42 +00:00
James E. Housley
9743c1375c Update to version 0.45.0 2001-07-02 01:40:11 +00:00
James E. Housley
081d9ac52f Update to version 0.44.3
- Updaet gd dependancy
- Added missing MAN8
- Merged pkg-plist.(doc|cgi) into pkg-plist
- General cleanup
2001-03-23 13:32:11 +00:00
Boris Popov
7b9e4e1601 Update to 0.44.2.
File layout changed again: all ups drivers now located in the
${PREFIX}/libexec/nut. Some of the tools moved to ${PREFIX}/bin directory.
Startup script renamed to nut.sh.sample.
2001-01-04 06:14:59 +00:00
Boris Popov
8485be2ae0 Update to version 0.44.1
Note: state files moved from /var/state/ups to /var/db.
2000-10-16 06:09:58 +00:00
Boris Popov
41fa24ec09 Upgrade to version 0.44.0 2000-07-18 04:56:46 +00:00
Boris Popov
1694b9ceee Upgrade to version 0.43.1
Submitted by:	"Lowkrantz, Goran" <Goran.Lowkrantz@infologigruppen.se>
2000-03-06 12:55:37 +00:00
Boris Popov
e905d01c4c New port for 'nut' package. It supports wide variety of UPS hardware
(including Smart and Back UPS for APPC), has ability to shutdown
multiple hosts without additional hardware and provides CGI
scripts to monitor UPS status via WEB interface.
2000-01-11 11:55:48 +00:00