I'd like to install the stock apcupsd module but have found some shortcomings in the pre-packaged version. Namely that I have /usr on it's own partition and when a shutdown is performed, because of a power failure, apcupsd won't power off the UPS because /usr isn't mounted at the point in the halt script from which apcupsd is called to power off the UPS.
What I need to do is link apcupsd statically and install all the binaries on the "/" partition, eg., /sbin. I downloaded the source package and I figured out how to statically link apcupsd, but I'm not sure how to get the utilities to install in /sbin instead of /usr/sbin. Also, suppose I modify the package and use dpkg-buildpackage to make an apcupsd_3.6.2-1_i386.deb file. How do I keep that from being superceeded by a new version from. I guess my basic question is how do I take a debian source package, customize it to my needs, build a *.deb file, install it and keep it from being removed in favor of a new version when one comes down the pipe from the Debian developers? Is there a procedure for this kind of thing? Thanks, Gary