Description: fix install paths
 We hardcode a few paths to make charybdis respect the FHS. this patch
 isn't completed, as it should integrate with autoconf better. as
 things stand now, the build system doesn't respect --bindir, doesn't
 have a --libdir or --rundir or --dbpath which we would need instead
 of hardcoding this stuff like this.
 .
 Hopefully this patch can be improved and submitted upstream.
Author: Antoine Beaupré <anarcat@koumbit.org>
Origin: debian
Bug-Debian: http://bugs.debian.org/485553
Bug: http://jira.atheme.org/browse/CHARY-3
Forwarded: http://jira.atheme.org/secure/attachment/10718/fix-paths
Last-Update: 2011-11-03

--- charybdis-3.3.0.orig/include/config.h
+++ charybdis-3.3.0/include/config.h
@@ -49,8 +49,8 @@
 
 /* dirs */
 #define DPATH   IRCD_PREFIX
-#define BINPATH IRCD_PREFIX "/bin/"
-#define LIBPATH IRCD_PREFIX "/lib/"
+#define LIBPATH IRCD_PREFIX "/lib/charybdis"
+#define BINPATH LIBPATH
 #define MODPATH MODULE_DIR
 #define AUTOMODPATH MODULE_DIR "/autoload/"
 #define ETCPATH ETC_DIR 
@@ -64,9 +64,9 @@
 #define CPATH    ETCPATH "/ircd.conf"		   /* ircd.conf file */
 #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/charybdis/ircd.pid"		   /* pid file */
 #define OPATH    ETCPATH "/opers.motd"		   /* oper MOTD file */
-#define DBPATH   ETCPATH "/ban.db"                 /* bandb file */
+#define DBPATH   "/var/lib/charybdis/ban.db"                 /* bandb file */
 
 /* IGNORE_BOGUS_TS
  * Ignore bogus timestamps from other servers. Yes this will desync
