public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] PATCH: apcupsd 3.9.9+ for Gentoo Linux
@ 2002-09-12 23:10 Zach Welch
  0 siblings, 0 replies; only message in thread
From: Zach Welch @ 2002-09-12 23:10 UTC (permalink / raw
  To: gentoo-dev

Hello fellow Gentoo users,

I have created some initial patches (made against 3.9.9 and 3.10.0) to
support Gentoo Linux.  These ebuilds adds the following features:

- enables all stable configure options
  - pthread support for better resource usage and performance
  - multimon.cgi scripts for remote monitoring.
  - USB UPS support
- includes {pre|post}{inst|rm} functions to
   - install/remove runlevel init script links
   - stop/restart daemon before/after merge
   - configuration file cleanup after all versions are removed
- patches autoconf/configure.in and adds platforms/gentoo directory
- adds $DESTDIR prefix to all make install targets to allow 'sandbox'
   building.  Other distros may eventually use this feature to simplify
   their package rolling process.
- patches platforms/etc/Makefile.in to install the various
   mail scripts into sysconfdir
- uses of ssmtp for mail transport, which is bad but...
   - separately applied during install, easily removed from ebuild
   - it works, but someone else can submit a patch to use virtual/mta

For the history logs, I developed these patches after local power failed
(repeatedly) on Tuesday - crashing my new Gentoo box.  The only
reasonably priced UPSs around town were USB based and, while at the
store, the store tech found the apcupsd homepage, confirming that such
beasts are now supported.  Getting home with my new toy, I discovered
Gentoo only provided apcupsd 3.8.5, which lacks USB support.

These patches could have been much simpler for my situation; however, I
took the time to improve things a bit, thus the DESTDIR patches.  These
have been tested fairly extensively (the patches were ready before the
power company had their issues resolved), and things seems to work very
well.  The multimon.cgi support works great, though I can tell my puny
UPS doesn't do it justice.

The following link points to an archive that contains all files used by
Gentoo to patch and manage apcupsd 3.9.9 and 3.10.0:

http://mirrors.superlucidity.net/gentoo/patches/apcupsd-gentoo.tar.gz

or you can access the files individually at:

http://mirrors.superlucidity.net/gentoo/local-portage/sys-apps/apcupsd/

Patches for both versions are being supplied because 3.10.0 has
reporting issues with my USB Back UPS 500 CS (as discussed previously on
this list), so I am instead currently using 3.9.9 without any problems.
I have taken the liberty of pushing these patches on to the apcupsd
developers for their review and possible inclusion in future releases.

These files have also been attached to bug 7778 on bugs.gentoo.org, for
anyone that might be interested now or in the future.  Please
communication through that medium for bug reports, etc.

Finally, thanks to everyone that has made Gentoo a great distribution!

Cheers,

Zach Welch
Superlucidity Services
Corvallis, OR
541-754-3069
zw@superlucidity.net




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-12 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-12 23:10 [gentoo-dev] PATCH: apcupsd 3.9.9+ for Gentoo Linux Zach Welch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox