Commit graph

93 commits

Author SHA1 Message Date
mrg
571299e406 s/long// (leaving "unsigned") in some code that fails when long is
anything but 32 bits (and unsigned is 32 bits in pretty much all
modern platforms.)

this allows ups-nut-usb to work on sparc64 for me, otherwise the
hidparser fails.

bump pkg revision for ups-nut-usb, as that pkg changes (at least
for big endian platforms.)
2015-11-10 08:52:38 +00:00
agc
17886c78da Add SHA512 digests for distfiles for sysutils category
Problems found with existing digests:
	Package memconf distfile memconf-2.16/memconf.gz
	b6f4b736cac388dddc5070670351cf7262aba048 [recorded]
	95748686a5ad8144232f4d4abc9bf052721a196f [calculated]

Problems found locating distfiles:
	Package dc-tools: missing distfile dc-tools/abs0-dc-burn-netbsd-1.5-0-gae55ec9
	Package ipw-firmware: missing distfile ipw2100-fw-1.2.tgz
	Package iwi-firmware: missing distfile ipw2200-fw-2.3.tgz
	Package nvnet: missing distfile nvnet-netbsd-src-20050620.tgz
	Package syslog-ng: missing distfile syslog-ng-3.7.2.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-04 01:32:05 +00:00
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
b091c2f172 Bump PKGREVISION of all packages which create users, to pick up change of
sysutils/user_* packages.
2013-07-12 10:44:52 +00:00
jdf
f1e08d1eb0 patches/patch-ac has been applied by upstream. 2013-02-16 17:37:01 +00:00
jdf
e92ddcc8d0 Bring sysutils/ups-nut to version 2.6.5.
patches/patch-ac has been applied by upstream.
2013-02-16 17:34:58 +00:00
asau
54c5cd959e Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-23 19:50:50 +00:00
wiz
693306ce15 Fix casing in used-by line. 2012-07-10 09:37:20 +00:00
bouyer
dbc0b04143 Update ups-nut* from 2.0.5 to 2.6.1. Changes are too large to list here,
see: http://www.networkupstools.org/source/2.6/new-2.6.1.txt
2011-07-29 15:11:40 +00:00
joerg
d9cb2a97c1 Fix permissions. 2010-02-19 21:23:34 +00:00
joerg
fed0eef2ea DESTDIR support 2010-02-17 15:14:05 +00:00
joerg
75fc561a65 Convert @exec/@unexec to @pkgdir or drop it. 2009-06-14 21:28:46 +00:00
joerg
f0bbd1517d Remove @dirrm entries from PLISTs 2009-06-14 18:13:25 +00:00
ghen
00bcf52691 Update Network UPS Tools (pkgsrc/sysutils/ups-nut-*) to version 2.0.5.
This release is a backport of the development version.  Many changes
have already been backported previously.  Thus it is more a
synchronisation release, though it includes many bugfixes and support
for new models.

- support for new devices: APC Smart-UPS with 6TI firmware; Belkin
  Small Enterprise F6C1500-TW-RK; Compaq R3000 XR, R5500 XR; Cyber
  Power 550SL, 725SL, 685AVR, 800AVR, 1200AVR, AE550, BC1200 and
  many similar models; Eltek; Inform GUARD; Microsol Rhino; Opti-UPS
  PowerES 420E; PowerMan RealSmart, BackPro; Powerware PW9315 3-phase;
  SOLA 305; Tripp-Lite SMART550USB, SMART2200RMXL2U, OMNI1000LCD,
  OMNI900LCD, OMNI650LCD, 1500 LCD, AVR550U; Viewsonic PowerES 420E.

- bcmxcp: added 3-phase support

- megatec: better hardware support, more instant commands

- mge-hid: support more instant commands

- newhidups: fixed APC and Tripp Lite bugs, various memory bugs,
  improved report buffering, improved Solaris support, added
  '-x explore' option for easy diagnosis of new devices

- solis: shutdown programming, support new cables, Solaris support

- tripplite_usb: updated SMARTPRO support, fixed OL/OB reporting,
  better error handling, some memory bugs

- new dummy-ups driver simulator

- added HTML interface for access to CGI scripts

- powerpanel: new driver for CyberPower BC1200 and similar models
2008-01-30 22:10:12 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
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.
2007-07-04 20:54:31 +00:00
ghen
acb1338528 Merge the common bits of net/ups-nut/Makefile and net/ups-nut-cgi/Makefile
into net/ups-nut/Makefile.common.  No functional changes.
2006-08-16 13:15:54 +00:00
ghen
f110d52906 Update to nut-2.0.4. Also set NUT_USER's homedirectory to NUT_STATEDIR.
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-15 12:26:07 +00:00
ghen
42a14ab556 rc.d scripts: upsmon does not require upsd <running on the same machine>, but
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-15 12:07:15 +00:00
ghen
db11ec2bf9 Fix more pkglint warnings:
- The shell command "${MKDIR}" should not be hidden.
- The INSTALL_*_DIR commands can only handle one directory at a time.
2006-08-02 12:31:54 +00:00
ghen
a6a6efd22a Change NUT_STATEDIR from an absolute pathname /var/db/nut to ${VARBASE}/db/nut,
and make it user-settable.  Bump PKGREVISION because VARBASE is not always /var.
2006-08-02 12:30:22 +00:00
ghen
c7475da1eb Unify the patches and distinfo for sysutils/ups-nut and sysutils/ups-nut-cgi.
Both are under sysutils/ups-nut now.
2006-08-02 12:11:00 +00:00
jlam
802ce74fcb Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
2006-04-23 00:12:35 +00:00
lukem
eb5046567d Reset MAINTAINER; I don't have the time nor inclination to maintain
these any more.
2006-04-22 07:32:24 +00:00
abs
72b143abca Update ups-nut to 2.0.3:
Over 700 lines of changes omitted, but four new drivers added:
    bcmxcp  gamatronic  solis  upscode2
2006-03-09 18:32:33 +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
rillig
7a95adad42 The real user name in PKG_USERS does not need to be escaped with double
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-08-23 11:48:47 +00:00
lukem
701f862c35 Update ups-nut to 2.0.1.
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-21 01:44:57 +00:00
wiz
c9730a4980 Sort. 2005-05-03 15:52:25 +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
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
martti
43fa839659 Updated ups-nut to 2.0.0nb1
* Added support for Mustek PowerMust
2004-08-03 05:21:50 +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
snj
118b6ca25a Convert to buildlink3. 2004-04-11 01:54:20 +00:00
martin
7b99580bc7 Ooops, forgot a cvs add for previous 2004-04-05 22:39:42 +00:00
martin
f96b2ec78e Update ups-nut and ups-nut-cgi to version 2.0. 2004-04-05 22:38:09 +00:00
lukem
869cae6ccf Update to ups-nut 1.4.1.
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.
2004-02-15 13:14:25 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +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
fredb
792b06e890 Add "shutdown" keyword to a couple of the daemons, so they're down before
the SIGHUP to all process causes them to reload their config files.
2003-01-26 00:48:24 +00:00
lukem
c81681ad85 Convert back to supporting INFO_RUNTIME instead of INFO_BATT_RUNTIME.
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-31 22:47:05 +00:00
lukem
94bcc2b664 Update from nut 0.50.0 to 1.2.1.
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-12-13 04:23:17 +00:00
dillo
f96c9310f7 get rid of autoconf build dependency by patching configure 2002-10-02 22:30:59 +00:00
wiz
e8817c9088 Complete standardization of messages according to latest pkglint. 2002-09-24 12:29:55 +00:00
grant
0c5bb6abcc Make these scripts more portable by taking advantage of automatic rc.d
script handling and using @RCD_SCRIPTS_SHELL@.

as discussed with jlam.
2002-09-20 02:01:54 +00:00
jlam
5c053dd06a Take advantage of the auto-generation and installation of rc.d scripts. 2002-09-19 09:04:02 +00:00
jlam
a020ed9056 Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
2002-08-25 21:50:52 +00:00