After some tweaks to the config file, it works fine for me on Openbsd 4.3 and an APC Back-UPS RS 1500. It kept looking for apcupsd.conf in /etc, while the port left the file on /etc/apcupsd/.
On Thu, Mar 27, 2008 at 6:32 PM, Kirill S. Bychkov <[EMAIL PROTECTED]> wrote: > I've corrected my mistake with ${SYSCONFDIR} in Makefile, MESSAGE-main, > PLIST-main and MESSAGE-cgi. > > Well, this project names "apcupsd" now, it was greatly reworked since > apc-upsd, so I think it's not good idea to call it "apc-upsd". > > Port still here: http://www.linklevel.net/apcupsd.tar.gz > > On Thu, March 27, 2008 18:59, Stuart Henderson wrote: >> On 2008/03/27 15:54, Stuart Henderson wrote: >>> iirc you said this was a replacement for the no-longer-maintained >>> apc-upsd, so I think we should use the same directory and package name >>> so that pkg_add -u picks it up as a replacement, and point out the >>> changed binary name in MESSAGE. since the versioning has changed to >>> a lower number, I believe we have to use the v0 trick with that. >>> >>> @sample ${SYSCONFDIR}/changeme >>> share/examples/apcupsd/etc/commfailure >>> @sample ${SYSCONFDIR}/commfailure >>> share/examples/apcupsd/etc/commok >>> @sample ${SYSCONFDIR}/commok >>> share/examples/apcupsd/etc/offbattery >>> @sample ${SYSCONFDIR}/offbattery >>> share/examples/apcupsd/etc/onbattery >>> @sample ${SYSCONFDIR}/onbattery >>> >>> since the names don't indicate what program these are for, please >>> move them to a subdirectory of /etc so people find them more easily. >> >> oh hang on, I see what you've done: >> >> $ grep SYSCONFDIR Makefile >> SYSCONFDIR= /etc/apcupsd >> >> that's incorrect >> >> > > > -- > () ascii ribbon campaign - against html e-mail > /\ www.asciiribbon.org - against proprietary attachments > > > -- > () ascii ribbon campaign - against html e-mail > /\ www.asciiribbon.org - against proprietary attachments > >