]> git.pld-linux.org Git - packages/cdrtools.git/blob - cdrecord-config.patch
- move default config file to /etc.
[packages/cdrtools.git] / cdrecord-config.patch
1 --- cdrecord-1.8/include/deflts.h.redhat        Sat Dec  5 08:04:18 1998
2 +++ cdrecord-1.8/include/deflts.h       Mon Sep 20 11:38:23 1999
3 @@ -27,7 +27,7 @@
4  #include <mconfig.h>
5  #endif
6  
7 -#define        DEFLT   "/etc/default"
8 +#define        DEFLT   "/etc"
9  
10  /*
11   * cmd's to defltcntl()
12 --- cdrecord-1.8/doc/cdrecord.man.redhat        Tue Sep  7 12:56:07 1999
13 +++ cdrecord-1.8/doc/cdrecord.man       Mon Sep 20 11:39:18 1999
14 @@ -51,7 +51,7 @@
15         try the -\b-s\bsc\bca\ban\bnb\bbu\bus\bs option of c\bcd\bdr\bre\bec\bco\bor\brd\bd described below.
16  
17  
18 -       If  a  file /etc/default/cdrecord exists, the parameter to
19 +       If  a  file /etc/cdrecord.conf exists, the parameter to
20         the d\bde\bev\bv=\b= option may also be a drive  name  label  in  said
21         file (see FILES section).
22  
23 @@ -356,7 +356,7 @@
24                If the argument to the d\bde\bev\bv=\b= option does not contain
25                the characters ',', '/', '@' or ':', it  is  inter­
26                preted  as  an  label name that may be found in the
27 -              file /etc/default/cdrecord (see FILES section).
28 +              file /etc/cdrecord.conf (see FILES section).
29  
30         t\bti\bim\bme\beo\bou\but\bt=\b=_\b#
31                Set the default SCSI command timeout  value  to  _\b#.
32 @@ -844,7 +844,7 @@
33                This  may  either  hold a device identifier that is
34                suitable to the open call  of  the  SCSI  transport
35                library     or     a     label    in    the    file
36 -              /etc/default/cdrecord.
37 +              /etc/cdrecord.conf.
38  
39         CDR_SPEED
40                Sets the default speed value for writing (see  also
41 @@ -868,16 +868,16 @@
42  
43  
44  F\bFI\bIL\bLE\bES\bS
45 -       /etc/default/cdrecord
46 +       /etc/cdrecord.conf
47                Default values can be set for the following options
48 -              in  /etc/default/cdrecord.  For example: CDR_FIFOS­
49 +              in  /etc/cdrecord.conf.  For example: CDR_FIFOS­
50                IZE=8m or CDR_SPEED=2
51  
52                CDR_DEVICE
53                       This may either  hold  a  device  identifier
54                       that  is  suitable  to  the open call of the
55                       SCSI transport library or  a  label  in  the
56 -                     file  /etc/default/cdrecord  that  allows to
57 +                     file  /etc/cdrecord.conf  that  allows to
58                       identify a specific drive on the system.
59  
60                CDR_SPEED
61 --- cdrecord-1.8/cdrecord/cdrecord.1.redhat     Tue Sep  7 09:46:06 1999
62 +++ cdrecord-1.8/cdrecord/cdrecord.1    Mon Sep 20 11:38:23 1999
63 @@ -118,7 +118,7 @@
64  described below.
65  
66  .PP
67 -If a file /etc/default/cdrecord exists, the parameter to the
68 +If a file /etc/cdrecord.conf exists, the parameter to the
69  .B dev=
70  option may also be a drive name label in said file (see FILES section).
71  
72 @@ -432,7 +432,7 @@
73  .B dev=
74  option does not contain the characters ',', '/', '@' or ':',
75  it is interpreted as an label name that may be found in the file
76 -/etc/default/cdrecord (see FILES section).
77 +/etc/cdrecord.conf (see FILES section).
78  .TP
79  .BI timeout= #
80  Set the default SCSI command timeout value to 
81 @@ -922,7 +922,7 @@
82  .TP
83  CDR_DEVICE
84  This may either hold a device identifier that is suitable to the open
85 -call of the SCSI transport library or a label in the file /etc/default/cdrecord.
86 +call of the SCSI transport library or a label in the file /etc/cdrecord.conf.
87  .TP
88  CDR_SPEED
89  Sets the default speed value for writing (see also 
90 @@ -936,8 +936,8 @@
91  
92  .SH FILES
93  .TP
94 -/etc/default/cdrecord
95 -Default values can be set for the following options in /etc/default/cdrecord.
96 +/etc/cdrecord.conf
97 +Default values can be set for the following options in /etc/cdrecord.conf
98  For example:
99  .SM CDR_FIFOSIZE=8m
100  or
101 @@ -946,7 +946,7 @@
102  .TP
103  CDR_DEVICE
104  This may either hold a device identifier that is suitable to the open
105 -call of the SCSI transport library or a label in the file /etc/default/cdrecord 
106 +call of the SCSI transport library or a label in the file /etc/cdrecord.conf
107  that allows to identify a specific drive on the system.
108  .TP
109  CDR_SPEED
110 --- cdrecord-1.8/cdrecord/defaults.c.redhat     Sun Apr 18 14:04:16 1999
111 +++ cdrecord-1.8/cdrecord/defaults.c    Mon Sep 20 11:38:23 1999
112 @@ -32,6 +32,8 @@
113  #include <utypes.h>
114  #include "cdrecord.h"
115  
116 +#define DEFAULT_CONFIG "/etc/cdrecord.conf"
117 +
118  EXPORT void    cdr_defaults    __PR((char **devp, int *speedp, long *fsp));
119  LOCAL  void    cdr_xdefaults   __PR((char **devp, int *speedp, long *fsp));
120  LOCAL  char *  strsv           __PR((char* s));
121 @@ -49,7 +51,7 @@
122         if (!dev)
123                 *devp = getenv("CDR_DEVICE");
124         if (!dev) {
125 -               if (defltopen("/etc/default/cdrecord") == 0) {
126 +               if (defltopen(DEFAULT_CONFIG) == 0) {
127                         dev = defltread("CDR_DEVICE=");
128                         if (dev != NULL)
129                                 *devp = strsv(dev);
130 @@ -62,7 +64,7 @@
131                 char    *p = getenv("CDR_SPEED");
132  
133                 if (!p) {
134 -                       if (defltopen("/etc/default/cdrecord") == 0) {
135 +                       if (defltopen(DEFAULT_CONFIG) == 0) {
136                                 p = defltread("CDR_SPEED=");
137                         }
138                 }
139 @@ -79,7 +81,7 @@
140                 char    *p = getenv("CDR_FIFOSIZE");
141  
142                 if (!p) {
143 -                       if (defltopen("/etc/default/cdrecord") == 0) {
144 +                       if (defltopen(DEFAULT_CONFIG) == 0) {
145                                 p = defltread("CDR_FIFOSIZE=");
146                         }
147                 }
148 @@ -110,7 +112,7 @@
149                 x++;
150         }
151         sprintf(dname, "%s=", p);
152 -       if (defltopen("/etc/default/cdrecord") != 0)
153 +       if (defltopen(DEFAULT_CONFIG) != 0)
154                 return;
155  
156         p = defltread(dname);
157 --- cdrecord-1.8/cdrecord/cdrecord.dfl.redhat   Sun Dec  6 06:24:01 1998
158 +++ cdrecord-1.8/cdrecord/cdrecord.dfl  Mon Sep 20 11:38:23 1999
159 @@ -1,6 +1,6 @@
160  #ident @(#)cdrecord.dfl        1.1 98/12/06 Copyr 1998 J. Schilling
161  #
162 -# This file is /etc/default/cdrecord
163 +# This file is /etc/cdrecord.conf
164  # It contains defaults that are used if no command line option
165  # or environment is present.
166  # 
167 @@ -25,7 +25,7 @@
168  #
169  # drive name   device  speed   fifosize
170  #
171 -teac=          1,3,0   -1      -1
172 -panasonic=     1,4,0   -1      -1
173 -yamaha=                1,5,0   -1      -1
174 -cdrom=         0,6,0   2       1m
175 +#teac=         1,3,0   -1      -1
176 +#panasonic=    1,4,0   -1      -1
177 +#yamaha=               1,5,0   -1      -1
178 +#cdrom=                0,6,0   2       1m
This page took 0.2649 seconds and 4 git commands to generate.