summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut
AgeCommit message (Collapse)AuthorFilesLines
2007-07-04Make it easier to build and install packages "unprivileged", wherejlam1-2/+4
the owner of all installed files is a non-root user. This change affects most packages that require special users or groups by making them use the specified unprivileged user and group instead. (1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to unprivileged.mk. These two variables are lists of other bmake variables that define package-specific users and groups. Packages that have user-settable variables for users and groups, e.g. apache and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP}, etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER} and ${UNPRIVILEGED_GROUP}. (2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2006-08-16Merge the common bits of net/ups-nut/Makefile and net/ups-nut-cgi/Makefileghen2-26/+36
into net/ups-nut/Makefile.common. No functional changes.
2006-08-15Update to nut-2.0.4. Also set NUT_USER's homedirectory to NUT_STATEDIR.ghen3-10/+12
Changes since nut-2.0.3: - The newhidups critical bug (segmentation fault) has been fixed. It has also received some more care, like buxfixes and new models support and enhancement for Solaris. - A bug has been fixed in NUT core to support resuming from suspend-to-disk. This should also fix other similar issues, like time synchronisation through the NTP - Network Time Protocol. - The mge-shut driver now better detects the Low Battery status, support new models and fixes some wrong status and data. It also fixes some issue where the UPS wasn't restarting (refer to mge-shut manpage). - The genericups custom configuration through ups.conf is working again. - The genericups driver type 22 also support CyberPower 725SL (and maybe others SL models). - The new megatec driver, which will replace a bunch of drivers by nut 2.2 (refer to docs/megatec.txt and UPGRADING) has been backported from the trunk (Development tree). The powermust driver has also received some attention. - The new rhino driver was added to support Microsol Rhino UPS hardware The solis has also been improved for solaris compatibility, and internal / external shutdown programming. solis can now save external shutdown programming to ups, and support new cables for solis 3. - Several fixes and improvements have been made to upsrw, upsset, cpsups, tripplite_usb and the FAQ. From UPGRADING: - users of the following drivers (powermust, blazer, fentonups, mustek, esupssmart, ippon, sms, masterguard) are encouraged to switch to megatec, which should replace all these drivers by nut 2.2. For more information, please refer to doc/megatec.txt
2006-08-15rc.d scripts: upsmon does not require upsd <running on the same machine>, butghen3-5/+5
still, upsd should start before upsmon when they are running on the same machine. The current setup (where upsmon.sh has REQUIRE: upsd) results in errors like "rcorder: requirement `upsd' in file `upsmon' has no providers." when you don't copy the upsd script to /etc/rc.d and set upsd=NO in /etc/rc.conf. Hence, remove REQUIRE: upsd from upsmon.sh and add BEFORE: upsmon to upsd.sh, as suggested by jnemeth on tech-userlevel@. Bump PKGREVISION.
2006-08-02Fix more pkglint warnings:ghen1-5/+6
- The shell command "${MKDIR}" should not be hidden. - The INSTALL_*_DIR commands can only handle one directory at a time.
2006-08-02Change NUT_STATEDIR from an absolute pathname /var/db/nut to ${VARBASE}/db/nut,ghen1-5/+8
and make it user-settable. Bump PKGREVISION because VARBASE is not always /var.
2006-08-02Unify the patches and distinfo for sysutils/ups-nut and sysutils/ups-nut-cgi.ghen2-6/+18
Both are under sysutils/ups-nut now.
2006-04-23Modify packages that set PKG_USERS and PKG_GROUPS to follow the newjlam1-2/+4
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
2006-04-22Reset MAINTAINER; I don't have the time nor inclination to maintainlukem1-2/+2
these any more.
2006-03-09Update ups-nut to 2.0.3:abs3-9/+17
Over 700 lines of changes omitted, but four new drivers added: bcmxcp gamatronic solis upscode2
2005-12-29Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mkjlam1-2/+1
automatically detects whether we want the pkginstall machinery to be used by the package Makefile.
2005-12-05Ran "pkglint --autofix", which corrected some of the quoting issues inrillig1-10/+10
CONFIGURE_ARGS.
2005-12-05Fixed pkglint warnings. The warnings are mostly quoting issues, forrillig1-3/+3
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-08-23The real user name in PKG_USERS does not need to be escaped with doublerillig1-2/+2
backslashes anymore. A single backslash is enough. Changed the definition in all affected packages. For those that are not caught, an additional check is placed into bsd.pkginstall.mk.
2005-05-21Update ups-nut to 2.0.1.lukem3-18/+17
Numerous changes (see NEWS for full list), including: * Updated support for various UPS models, including porting various drivers to the 2.0 tree. * Call varargs functions with "%s" instead of raw strings from config files.
2005-05-03Sort.wiz1-5/+5
2005-05-02RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.reed1-1/+6
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-04-11Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.tv1-2/+1
2005-02-24Add RMD160 digests.agc1-1/+3
2004-12-28The default location of the pkgsrc-installed rc.d scripts is nowreed1-2/+2
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-08-03Updated ups-nut to 2.0.0nb1martti3-3/+17
* Added support for Mustek PowerMust
2004-04-23mk/bsd.pkg.install.mk now automatically registersreed1-6/+1
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-11Convert to buildlink3.snj1-2/+2
2004-04-05Ooops, forgot a cvs add for previousmartin1-0/+13
2004-04-05Update ups-nut and ups-nut-cgi to version 2.0.martin3-30/+20
2004-02-15Update to ups-nut 1.4.1.lukem13-177/+92
Many changes, including * various configuation file format changes * most UPS drivers enhanced * upsmon/upssched support a lockfile * chroot jails supported * various bugfixes (Refer to http://random.networkupstools.org/source/1.4/new-1.4.1.txt for more information) pkg update based on work sent in private email by Daniel Farrugia, with various fixes by me.
2003-07-17s/netbsd.org/NetBSD.org/grant1-2/+2
2003-01-28Instead of including bsd.pkg.install.mk directly in a package Makefile,jlam1-2/+2
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-26Add "shutdown" keyword to a couple of the daemons, so they're down beforefredb2-2/+4
the SIGHUP to all process causes them to reload their config files.
2002-12-31Convert back to supporting INFO_RUNTIME instead of INFO_BATT_RUNTIME.lukem4-2/+41
I *really* dislike how newapc changed from supporting INFO_RUNTIME (runtime in minutes, which is what the UPS actually reports) to INFO_BATT_RUNTIME (runtime in seconds, which is UPS result * 60), because the latter is much less useful as a realistic guess (IMHO), and because this broke my upslog format and ups monitoring stuff that used '%VAR runtime'. (Unfortunately, newapc is written in a way which precludes supporting multiple results from the same 'UPS status code' (in this case `j'), so we can't support both results at this time. I decided that INFO_RUNTIME is more useful, because '81' (minutes) is easier to "use" than '4860' (seconds))
2002-12-13Update from nut 0.50.0 to 1.2.1.lukem11-125/+90
Many changes, too many to list here. See: http://www.exploits.org/nut/release/1.2/new-1.2.1.txt and (after installation): /usr/pkg/share/doc/nut/UPGRADING
2002-10-02get rid of autoconf build dependency by patching configuredillo3-7/+21
2002-09-24Complete standardization of messages according to latest pkglint.wiz1-3/+3
2002-09-20Make these scripts more portable by taking advantage of automatic rc.dgrant5-10/+10
script handling and using @RCD_SCRIPTS_SHELL@. as discussed with jlam.
2002-09-19Take advantage of the auto-generation and installation of rc.d scripts.jlam1-9/+1
2002-08-25Merge packages from the buildlink2 branch back into the main trunk thatjlam8-9/+9
have been converted to USE_BUILDLINK2.
2002-07-03update to nut 0.50.0. notable changes:lukem6-47/+74
- change from tcp/ip port 3305 to the IANA assigned 3493 - all old-style drivers have been deprecated: aeg bestfort bestuferrups engetron ipt-anzen mgeups multilink mustekups optiups sms toshiba1500 ups-trust425+625 upseyeux - newvictron renamed to victronups - newpowercom renamed to powercom, replacing previous powercom and ups-trust425+625 as well
2002-05-24Backward compat with NetBSD <1.6: some rc.subr variables were renamed.hubertf1-4/+10
Make sure the new ones get defined from the old ones.
2002-05-24The drivers don't have to msync() the shared, mmap()-ed file afterfredb2-8/+11
every write, but only once after it's fully initialized, before it's renamed and declared open for business. Analysis by Martin Husemann.
2002-05-22On NetBSD, the drivers need to call msync() after writing to the memoryfredb3-2/+16
mmap()-ed shared with "upsd", so that "upsd" an read it back reliably. This keeps "upsd" from complaining about stale data. Bump PKGREVISION.
2002-05-13Update ups-nut from 0.45.3 to 0.45.5. Notable changes:lukem6-49/+40
- upsd.users(5) has changed formats. NOTE: you need to update your file for upsd(8) to function - upsmon can reload its configuration on the fly (with '-c reload') - upsdrvctl can power off UPS's in an orderly fashion - new drivers: - tripplite - Tripp-Lite SmartUPS models - newvictron - IMV/Victron hardware - bestferrups801-807 - Best FerrUPS 8.01-8.07 firmware - genericups type 14 - for Online P-series units - upsdrvctl now waits up to "maxstartdelay" (default 45) seconds for a driver to start before it gives up and goes to the next entry (refer to CHANGES in the distribution, or http://www.exploits.org/nut/release/new-0.45.4.txt and http://www.exploits.org/nut/release/new-0.45.5.txt for a detailed list)
2002-02-15Test for file /etc/rc.subr and not /etc/rc.d.seb1-2/+2
2002-02-05Solaris' test binary (test/[) doesn't grok "-e". Replace with "-f".jlam5-16/+16
Noted by Stoned Elipot <seb@netbsd.org> in private email.
2002-01-10Don't hardcode the location of the other rc.d scripts as @RCD_SCRIPTS_DIR@jlam1-3/+5
as they might not be there depending on whether INSTALL_RCD_SCRIPTS is set in /etc/mk.conf when the package is built. Instead, assume that the other rc.d scripts are in the same place as this "meta" script and locate them using "dirname $0". Problem noted by Stoned Elipot <seb@netbsd.org> in private email.
2002-01-08Fix description.jlam1-3/+3
2002-01-08Fix obvious pasto, and remove "required_files" line as upslog (unlikejlam1-3/+2
upsmon) doesn't need a config file.
2002-01-03Update to nut 0.45.3. Notable changes:lukem5-39/+13
- upsd can reload its config files on the fly. - 'upsdrvctl status' will check for presence of pid files - upsd can be stopped with 'upsd -c stop' - newpowercom driver added - cyberpower driver added - more man pages - various bug fixes
2001-12-02bsd.pkg.install.mk calls the INSTALL script at the right timesjlam1-3/+1
automatically, so no need to do it ourselves.
2001-11-26Use PKG_{USERS,GROUPS} instead of PKG_{USER,GROUP}.jlam1-8/+9
2001-11-25PKG_SYSCONFDIR is where the configuration files for a package may be found.jlam1-2/+3
This value may be customized in various ways: PKG_SYSCONFBASE is the main config directory under which all package configuration files are to be found. PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the configuration files for a particular package may be found. PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a particular package. Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the default location of ${PREFIX}/etc. This obsoletes the use of CONFDIR, which was active for only 6 days, so no need to have a workaround to still accept old CONFDIR settings.