ports/irc/ircd-ratbox-devel/files/patch-include_config.h
Martin Wilke 16f8160c5f - Update to ratbox-3.0.0 release
Port changes:
 o Adjusted WITHOUT_IPV6 port option to compensate for
   ratbox enabling IPv6 by default.
 o Updated patches for diff index changes and added new
   patch on 'rsdb_sqlite3.c' to fix ban.db path code.

Software changes included in this release:
 o Fix a crash with the the global CIDR code.
 o Fix a core dump in bantool if bantool cannot open the database.
 o Report failure to open logfiles in a more useful way.
 o Check to see if we have both read and write access to the ban database.
 o Fix a build error on OS X Leopard.

PR:		128890
Submitted by:	Lewis <moggie@elasticmind.net> (maintainer)
2008-11-23 13:38:25 +00:00

25 lines
952 B
C

--- ./include/config.h.orig 2008-09-19 16:33:46.000000000 +0100
+++ ./include/config.h 2008-11-15 02:55:35.000000000 +0000
@@ -52,16 +52,18 @@
#define AUTOMODPATH MODULE_DIR "/autoload/"
#define ETCPATH ETC_DIR
#define LOGPATH LOG_DIR
-#define UHPATH HELP_DIR "/users"
-#define HPATH HELP_DIR "/opers"
+#define UHPATH HELP_DIR "/users"
+#define HPATH HELP_DIR "/opers"
+#define RUNPATH "%%RUNDIR%%"
+#define DBPTH "%%DBDIR%%"
/* files */
#define SPATH BINPATH "/ircd" /* ircd executable */
#define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
-#define DBPATH ETCPATH "/ban.db"
+#define DBPATH DBPTH "/ban.db"
#define MPATH ETCPATH "/ircd.motd" /* MOTD file */
#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
-#define PPATH ETCPATH "/ircd.pid" /* pid file */
+#define PPATH RUNPATH "/ircd.pid" /* pid file */
#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
/* HANGONGOODLINK and HANGONGOODLINK