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