Installation of Cdrtools
Note
Installation of Cdrtools will
fail if raw kernel headers are found in /usr/src/linux
either as actual files or a
symlink. As of the Linux 2.6 kernel series, this directory should
no longer exist because appropriate headers were installed in the
linux-libc-headers package during the base LFS installation.
When creating an ISO 9660 image with mkisofs, the character set of the
filenames used must be specified unless it is ISO-8859-1, the
default. If the character set is not specified correctly, then
non-ASCII filenames will be unreadable on other systems, such as
Microsoft Windows. This patch
allows any input character set supported by Glibc (such as UTF-8) to be specified to
mkisofs, as opposed
of the short list of built-in encodings. Also, the default input
character set is set to that of the current locale, which is the
correct behavior. To address this situation, apply the
mkisofs_iconv patch:
patch -Np1 -i ../cdrtools-2.01-mkisofs_iconv-1.patch
The cdrecord program
has hard-coded non-ASCII characters in its messages. Since these
characters are part of the ISO-8859-1 character set, they will not
be displayed correctly in locales that use a different character
set, such as UTF-8. The following patch converts these characters
to ASCII approximations:
patch -Np1 -i ../cdrtools-2.01-ascii-2.patch
Install Cdrtools by running the
following commands:
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
This package does not come with a test suite.
Now, as the root
user:
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install &&
install -v -m755 -d /usr/share/doc/cdrtools-2.01 &&
install -v -m644 README* ABOUT doc/*.ps \
/usr/share/doc/cdrtools-2.01
Command Explanations
INS_BASE=/usr
: This
parameter moves the install directory from /opt/schily
to /usr
.
DEFINSUSR=root
DEFINSGRP=root
: These parameters install all programs
with root:root ownership instead of the default bin:bin.