1 |
--- ircd-hybrid-7.2.3/configure.ac.orig 2013-02-13 20:32:02.257096026 +0000 |
2 |
+++ ircd-hybrid-7.2.3/configure.ac 2013-02-13 20:34:19.538402002 +0000 |
3 |
@@ -1092,6 +1092,19 @@ |
4 |
|
5 |
fi |
6 |
|
7 |
+if test "$libdir" = "NONE"; then |
8 |
+ AC_DEFINE_UNQUOTED(IRCD_LIBDIR, "/usr/lib", [Prefix where the ircd keeps modules/messages etc.]) |
9 |
+ |
10 |
+else |
11 |
+ |
12 |
+dnl Don't get bitten by Cygwin's stupidity if the user specified |
13 |
+dnl a custom prefix with a trailing slash |
14 |
+ |
15 |
+ libdir=`echo $libdir | sed 's/\/$//'` |
16 |
+ AC_DEFINE_UNQUOTED(IRCD_LIBDIR, "$libdir", [Prefix where the ircd keeps modules/messages etc.]) |
17 |
+ |
18 |
+fi |
19 |
+ |
20 |
AC_CONFIG_FILES( \ |
21 |
Makefile \ |
22 |
etc/Makefile \ |
23 |
--- ircd-hybrid-7.2.3/include/defaults.h.orig 2013-02-13 20:34:57.695650404 +0000 |
24 |
+++ ircd-hybrid-7.2.3/include/defaults.h 2013-02-13 20:36:49.784436141 +0000 |
25 |
@@ -38,6 +38,7 @@ |
26 |
* BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM. |
27 |
* |
28 |
* IRCD_PREFIX = prefix for all directories |
29 |
+ * IRCD_LIBDIR = libdrary directory |
30 |
* DPATH = root directory of installation |
31 |
* BINPATH = directory for binary files |
32 |
* MSGPATH = directory for language files |
33 |
@@ -49,11 +50,11 @@ |
34 |
|
35 |
/* dirs */ |
36 |
#define DPATH IRCD_PREFIX |
37 |
-#define BINPATH "/usr/sbin/" |
38 |
-#define MSGPATH "/usr/lib/ircd-hybrid/messages" |
39 |
+#define BINPATH IRCD_PREFIX "/sbin/" |
40 |
+#define MSGPATH IRCD_LIBDIR "/ircd-hybrid/messages" |
41 |
#define ETCPATH "/etc/ircd-hybrid" |
42 |
#define LOGPATH "/var/log/ircd-hybrid" |
43 |
-#define MODPATH "/usr/lib/ircd-hybrid/modules" |
44 |
+#define MODPATH IRCD_LIBDIR "/ircd-hybrid/modules" |
45 |
#define AUTOMODPATH MODPATH "/autoload" |
46 |
#define RUNPATH "/var/run/ircd-hybrid" |
47 |
|