ports/50835: cdrtools port uses the config path "/etc/default/cdrecord"
Derek Young
DerekYoung at easy.com
Fri Apr 11 23:30:23 UTC 2003
The following reply was made to PR ports/50835; it has been noted by GNATS.
From: "Derek Young" <DerekYoung at easy.com>
To: freebsd-gnats-submit at freebsd.org, obrien at freebsd.org
Cc: dirk at freebsd.org
Subject: Re: ports/50835: cdrtools port uses the config path "/etc/default/cdrecord"
Date: Fri, 11 Apr 2003 18:20:47 -0600
Cdrecord wasn't the only utility in there that had that
problem.
Anyway, here are some patches you can use if you want,
just copy them into
your files directory and you will be good to go. Even the
man pages are
updated. I moved it all to /usr/local/etc. If you do not like
that, change
the patches ;)
Derek Young
-------------------------------START patch-da
*** cdrecord/cdrecord.1.orig Tue Dec 24 09:28:40 2002
--- cdrecord/cdrecord.1 Fri Apr 11 17:04:40 2003
***************
*** 146,152 ****
described below.
.PP
! If a file /etc/default/cdrecord exists, the parameter to the
.B dev=
option may also be a drive name label in said file (see
FILES section).
--- 146,152 ----
described below.
.PP
! If a file /usr/local/etc/cdrecord exists, the parameter to
the
.B dev=
option may also be a drive name label in said file (see
FILES section).
***************
*** 621,627 ****
.B dev=
option does not contain the characters ',', '/', '@' or ':',
it is interpreted as an label name that may be found in
the file
! /etc/default/cdrecord (see FILES section).
.TP
.BI gracetime= #
Set the grace time before starting to write to
--- 621,627 ----
.B dev=
option does not contain the characters ',', '/', '@' or ':',
it is interpreted as an label name that may be found in
the file
! /usr/local/etc/cdrecord (see FILES section).
.TP
.BI gracetime= #
Set the grace time before starting to write to
***************
*** 1361,1367 ****
.TP
.B CDR_DEVICE
This may either hold a device identifier that is suitable to
the open
! call of the SCSI transport library or a label in the file
/etc/default/cdrecord.
.TP
.B CDR_SPEED
Sets the default speed value for writing (see also
--- 1361,1367 ----
.TP
.B CDR_DEVICE
This may either hold a device identifier that is suitable to
the open
! call of the SCSI transport library or a label in the file
/usr/local/etc/cdrecord.
.TP
.B CDR_SPEED
Sets the default speed value for writing (see also
***************
*** 1417,1424 ****
.SH FILES
.TP
! /etc/default/cdrecord
! Default values can be set for the following options in
/etc/default/cdrecord.
For example:
.SM CDR_FIFOSIZE=8m
or
--- 1417,1424 ----
.SH FILES
.TP
! /usr/local/etc/cdrecord
! Default values can be set for the following options in
/usr/local/etc/cdrecord.
For example:
.SM CDR_FIFOSIZE=8m
or
***************
*** 1427,1433 ****
.TP
CDR_DEVICE
This may either hold a device identifier that is suitable to
the open
! call of the SCSI transport library or a label in the file
/etc/default/cdrecord
that allows to identify a specific drive on the system.
.TP
CDR_SPEED
--- 1427,1433 ----
.TP
CDR_DEVICE
This may either hold a device identifier that is suitable to
the open
! call of the SCSI transport library or a label in the file
/usr/local/etc/cdrecord
that allows to identify a specific drive on the system.
.TP
CDR_SPEED
-------------------------------START patch-db
*** cdrecord/defaults.c.orig Wed Aug 14 12:52:00 2002
--- cdrecord/defaults.c Fri Apr 11 17:11:51 2003
***************
*** 53,59 ****
* don't contribute work and don't give support, they
are causing extra
* work for me and this way slow down the cdrecord
development.
*/
! return (defltopen("/etc/default/cdrecord"));
}
EXPORT void
--- 53,59 ----
* don't contribute work and don't give support, they
are causing extra
* work for me and this way slow down the cdrecord
development.
*/
! return (defltopen("/usr/local/etc/cdrecord"));
}
EXPORT void
-------------------------------START patch-dc
*** cdrecord/cdrecord.dfl.orig Sun Jul 7 16:56:21 2002
--- cdrecord/cdrecord.dfl Fri Apr 11 17:13:58 2003
***************
*** 1,6 ****
#ident @(#)cdrecord.dfl 1.4 02/07/07 Copyr 1998 J.
Schilling
#
! # This file is /etc/default/cdrecord
# It contains defaults that are used if no command line
option
# or environment is present.
#
--- 1,6 ----
#ident @(#)cdrecord.dfl 1.4 02/07/07 Copyr 1998 J.
Schilling
#
! # This file is /usr/local/etc/cdrecord
# It contains defaults that are used if no command line
option
# or environment is present.
#
***************
*** 14,20 ****
# Note that newer cdrecord versions do not default
# to speed=1. For MMC compliant drives, the default
# is to write at maximum speed, so it in general does
! # not make sense to set up a default speed in
/etc/default/cdrecord
#
#CDR_SPEED=40
--- 14,20 ----
# Note that newer cdrecord versions do not default
# to speed=1. For MMC compliant drives, the default
# is to write at maximum speed, so it in general does
! # not make sense to set up a default speed in
/usr/local/etc/cdrecord
#
#CDR_SPEED=40
-------------------------------START patch-dd
*** readcd/readcd.1.orig Tue Dec 24 09:28:41 2002
--- readcd/readcd.1 Fri Apr 11 17:21:57 2003
***************
*** 186,192 ****
.B dev=
option does not contain the characters ',', '/', '@' or ':',
it is interpreted as an label name that may be found in
the file
! /etc/default/cdrecord (see FILES section).
.TP
.BI timeout= #
Set the default SCSI command timeout value to
--- 186,192 ----
.B dev=
option does not contain the characters ',', '/', '@' or ':',
it is interpreted as an label name that may be found in
the file
! /usr/local/etc/cdrecord (see FILES section).
.TP
.BI timeout= #
Set the default SCSI command timeout value to
-------------------------------START patch-de
*** scgcheck/scgcheck.1.orig Tue Dec 24 09:32:01 2002
--- scgcheck/scgcheck.1 Fri Apr 11 17:25:25 2003
***************
*** 170,176 ****
.B dev=
option does not contain the characters ',', '/', '@' or ':',
it is interpreted as an label name that may be found in
the file
! /etc/default/cdrecord (see FILES section).
.TP
.BI timeout= #
Set the default SCSI command timeout value to
--- 170,176 ----
.B dev=
option does not contain the characters ',', '/', '@' or ':',
it is interpreted as an label name that may be found in
the file
! /usr/local/etc/cdrecord (see FILES section).
.TP
.BI timeout= #
Set the default SCSI command timeout value to
-------------------------------START patch-df
*** cdda2wav/cdda2ogg.orig Tue Apr 9 06:18:15 2002
--- cdda2wav/cdda2ogg Fri Apr 11 17:31:24 2003
***************
*** 33,39 ****
FILEPREFIX=${1:-audiotrack}
! . /etc/default/cdda2ogg 2>/dev/null || true
TRACK=1
while :
--- 33,39 ----
FILEPREFIX=${1:-audiotrack}
! . /usr/local/etc/cdda2ogg 2>/dev/null || true
TRACK=1
while :
-------------------------------START patch-dg
*** include/deflts.h.orig Mon Aug 26 06:00:36 2002
--- include/deflts.h Fri Apr 11 17:33:00 2003
***************
*** 34,40 ****
extern "C" {
#endif
! #define DEFLT "/etc/default"
/*
* cmd's to defltcntl()
--- 34,40 ----
extern "C" {
#endif
! #define DEFLT "/usr/local/etc"
/*
* cmd's to defltcntl()
-------------------------------START patch-dh
*** rscsi/rscsi.c.orig Sat Nov 30 05:48:40 2002
--- rscsi/rscsi.c Fri Apr 11 17:34:19 2003
***************
*** 132,140 ****
* don't contribute work and don't give support, they
are causing extra
* work for me and this way slow down the
development.
*/
! if (defltopen("/etc/default/rscsi") < 0) {
rscsierror(geterrno(), errmsgstr(geterrno()),
! "Remote configuration error: Cannot open
/etc/default/rscsi");
/* rscsirespond(-1, geterrno());*/
exit(EX_BAD);
}
--- 132,140 ----
* don't contribute work and don't give support, they
are causing extra
* work for me and this way slow down the
development.
*/
! if (defltopen("/usr/local/etc/rscsi") < 0) {
rscsierror(geterrno(), errmsgstr(geterrno()),
! "Remote configuration error: Cannot open
/usr/local/etc/rscsi");
/* rscsirespond(-1, geterrno());*/
exit(EX_BAD);
}
-------------------------------START patch-di
*** rscsi/rscsi.dfl.orig Mon Nov 13 19:24:03 2000
--- rscsi/rscsi.dfl Fri Apr 11 17:35:22 2003
***************
*** 1,6 ****
#ident %Z%%M% %I% %E% Copyr 2000 J. Schilling
#
! # This file is /etc/default/rscsi
#
# NOTE: If this file is not present, rscsi will reject to
work.
#
--- 1,6 ----
#ident %Z%%M% %I% %E% Copyr 2000 J. Schilling
#
! # This file is /usr/local/etc/rscsi
#
# NOTE: If this file is not present, rscsi will reject to
work.
#
This message was sent from the free private e-mail service by easy.com, the portal site owned by Stelios and the easyGroup. This email service is available to all members of the public to use for personal reasons only. Not all subscribers to this e-mail service are representatives of an easyGroup company.
More information about the freebsd-ports-bugs
mailing list