openbsd-ports/net/ircd-hybrid/patches/patch-include_defaults_h
2009-02-09 15:14:22 +00:00

38 lines
1.5 KiB
Plaintext

$OpenBSD: patch-include_defaults_h,v 1.2 2009/02/09 15:14:22 form Exp $
--- include/defaults.h.orig Wed Feb 28 10:17:43 2007
+++ include/defaults.h Sun Feb 8 14:28:26 2009
@@ -47,14 +47,19 @@
* AUTOMODPATH = directory for autoloaded modules
*/
+/* users */
+#ifndef IRCD_USER
+#define IRCD_USER "_ircd-hybrid"
+#endif
+
/* dirs */
#define DPATH IRCD_PREFIX
#define BINPATH IRCD_PREFIX "/bin/"
-#define MSGPATH IRCD_PREFIX "/messages/"
-#define ETCPATH IRCD_PREFIX "/etc"
-#define LOGPATH IRCD_PREFIX "/logs"
-#define MODPATH IRCD_PREFIX "/modules/"
-#define AUTOMODPATH IRCD_PREFIX "/modules/autoload/"
+#define MSGPATH IRCD_PREFIX "/share/ircd-hybrid/messages/"
+#define ETCPATH "${SYSCONFDIR}/ircd-hybrid"
+#define LOGPATH "/var/log/ircd-hybrid"
+#define MODPATH IRCD_PREFIX "/lib/ircd-hybrid/modules/"
+#define AUTOMODPATH IRCD_PREFIX "/lib/ircd-hybrid/modules/autoload/"
/* files */
#define SPATH BINPATH "/ircd" /* ircd executable */
@@ -70,7 +75,7 @@
#define RKPATH ETCPATH "/rkline.conf"
#define MPATH ETCPATH "/ircd.motd" /* MOTD file */
#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
-#define PPATH ETCPATH "/ircd.pid" /* pid file */
+#define PPATH "/var/run/ircd/ircd.pid" /* pid file */
#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
#define LIPATH ETCPATH "/links.txt" /* cached links file */