Installation of lrzsz
Apply a patch to fix various configuration, build, and security
issues:
patch -Np1 -i ../lrzsz-0.12.20-third_party_fixes-1.patch
Remove an unneeded prototype that causes a build failure:
for i in src/l{r,s}z.c; do
sed -i '/extern\ char\ \*strstr/d' $i
done
Add and remove some files, then regenerate the autoconf files:
touch config.rpath &&
rm -vf missing &&
rm -vf acconfig.h &&
autoreconf -fiv -I/usr/share/gettext/m4
Install lrzsz by executing the following
commands:
./configure --prefix=/usr --disable-nls &&
make
Now as the root user:
make install &&
for x in {r,s}{b,x,z} ; do
ln -svf l${x} /usr/bin/${x} &&
ln -svf l${x:0:1}z.1 /usr/share/man/man1/${x}.1 &&
[ "${x:1:1}" = "z" ] || ln -svf l${x:0:1}z.1 /usr/share/man/man1/l${x}.1
doneCommand Explanations
touch config.rpath: This command creates an empty file
that automake wishes to use, but is missing
from the distribution.
rm -vf missing: This command deletes the
missing file as it is too old to be used.
automake, when executing
autoreconf, will regenerate this file that will be
current.
rm -vf acconfig.h: autoheader does
not like the acconfig.h file existing, so this
command deletes it.
--disable-nls: This parameter disables NLS support
as it is broken for this package due to missing files.
for i in {r,s}{b,x,z} ; do...: This command block
creates compatibility symlinks for the original
rzsz package, which is required for
minicom-2.11.1.