First import of debian subdir
[lcr.git] / debian / patches / replace_local.patch
1 Author: <joerg@dorchain.net>
2 Description: Replace all occurences of local in pathnames
3 Index: lcr-1.6~20090906/Makefile.am
4 ===================================================================
5 --- lcr-1.6~20090906.orig/Makefile.am   2009-09-07 13:35:03.834457538 +0200
6 +++ lcr-1.6~20090906/Makefile.am        2009-09-07 13:36:12.292950699 +0200
7 @@ -20,19 +20,19 @@
8  ##    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
9  ##    Boston, MA 02110-1301, USA.
10  
11 -INSTALLdir = $(DESTDIR)/usr/local/lcr
12 +INSTALLdir = $(DESTDIR)/usr/share/lcr
13  
14  pkglogdir=$(localstatedir)/log/@PACKAGE@
15 -pkgsysconfdir=$(sysconfdir)/@PACKAGE@
16 +pkgsysconfdir=/etc/@PACKAGE@
17  
18 -#CONFIGdir=$(DESTDIR)$(pkgsysconfdir)
19 +CONFIGdir=$(DESTDIR)$(pkgsysconfdir)
20  #SHAREdir=$(DESTDIR)$(pkgdatadir)
21 -#LOGdir=$(DESTDIR)$(pkglogdir)
22 +LOGdir=$(DESTDIR)$(pkglogdir)
23  #EXTENSIONdir=$(DESTDIR)$(localstatedir)/lib/lcr
24  
25 -CONFIGdir=$(INSTALLdir)
26 +#CONFIGdir=$(INSTALLdir)
27  SHAREdir=$(INSTALLdir)
28 -LOGdir=$(INSTALLdir)
29 +#LOGdir=$(INSTALLdir)
30  EXTENSIONdir=$(INSTALLdir)/extensions
31  
32  astmoddir = $(DESTDIR)/usr/lib/asterisk/modules
33 Index: lcr-1.6~20090906/genrc.c
34 ===================================================================
35 --- lcr-1.6~20090906.orig/genrc.c       2009-09-07 13:35:03.878459355 +0200
36 +++ lcr-1.6~20090906/genrc.c    2009-09-07 13:36:12.292950699 +0200
37 @@ -80,12 +80,12 @@
38  
39         n = i;
40  
41 -       printf("\nWhere do you like to load the modules from, enter 0 for default, 1 for\n'/usr/local/lcr/modules/' or the full path.\n[0 | 1 | <path>]: "); fflush(stdout);
42 +       printf("\nWhere do you like to load the modules from, enter 0 for default, 1 for\n'/usr/lib/lcr/modules/' or the full path.\n[0 | 1 | <path>]: "); fflush(stdout);
43         scanf("%s", input);
44         if (!strcmp(input, "0"))
45                 SCPY(input, "");
46         if (!strcmp(input, "1"))
47 -               SCPY(input, "/usr/local/lcr/modules");
48 +               SCPY(input, "/usr/lib/lcr/modules");
49         if (input[0]) if (input[strlen(input)-1] != '/')
50                 SCAT(input, "/");
51  
52 Index: lcr-1.6~20090906/options.c
53 ===================================================================
54 --- lcr-1.6~20090906.orig/options.c     2009-09-07 13:35:03.898459331 +0200
55 +++ lcr-1.6~20090906/options.c  2009-09-07 13:36:12.296951419 +0200
56 @@ -19,7 +19,7 @@
57  #include "options.h"
58  
59  struct options options = {
60 -       "/usr/local/lcr/log",           /* log file */
61 +       "/var/log/lcr/log",             /* log file */
62         0x0000,                         /* debug mode */
63         'a',                            /* a-law */
64         "0",                            /* national prefix */
65 Index: lcr-1.6~20090906/default/options.conf
66 ===================================================================
67 --- lcr-1.6~20090906.orig/default/options.conf  2009-09-07 13:35:03.858458743 +0200
68 +++ lcr-1.6~20090906/default/options.conf       2009-09-07 13:36:12.296951419 +0200
69 @@ -24,8 +24,8 @@
70  
71  # The log file can be used to track actions by the LCR. Omit the parameter
72  # to turn off log file. By default, log file is located inside the directory
73 -# "/usr/local/lcr/log".
74 -#log /usr/local/lcr/log
75 +# "/var/log/lcr/log".
76 +#log /var/log/lcr/log
77  
78  # Use "alaw" (default) or "ulaw" samples.
79  #alaw