$NetBSD: patch-ac,v 1.2 2000/08/05 07:31:18 jlam Exp $ --- include/apc_defines.h.orig Thu Jul 29 04:47:46 1999 +++ include/apc_defines.h Sat Aug 5 02:52:40 2000 @@ -68,6 +68,12 @@ #define PWRFAIL "/var/run/powerfail" #endif /* __freebsd__ */ +#ifdef __NetBSD__ +# define APCCONF "/etc/apcupsd.conf" +# define UPS_STAT "/var/run/apcupsd.status" +# define PWRFAIL "/var/run/powerfail" +#endif /* __NetBSD__ */ + #ifndef APCCONF #define APCCONF "/etc/apcupsd.conf" #endif @@ -82,7 +88,7 @@ #define NOLOGIN "/etc/nologin" #define APCPID "/var/run/apcupsd.pid" -#define LOG_FILE "/var/log/apcupsd.log" +#define LOG_FILE "/var/log/apcupsd" #if USE_TMP_DIRECTORY #define APC_RE_NET "/tmp/apcupsd.re-net" @@ -91,7 +97,7 @@ #endif /* USE_TMP_DIRECTORY */ #define APC_LOCK_PREFIX "/LCK.." -#define LOCK_DEFAULT "/var/lock" +#define LOCK_DEFAULT "/var/spool/lock" #define APC_MAGIC "apcupsd-linux-4.0"