Installation of lrzsz
Apply several patches to fix various configuration, build, and
security issues:
patch -Np1 -i ../lrzsz-autotools.patch &&
patch -Np1 -i ../lrzsz-implicit-decl.patch &&
patch -Np1 -i ../lrzsz-0.12.20-automake-1.12.patch &&
patch -Np1 -i ../lrzsz-0.12.20-automake-1.13.patch &&
patch -Np1 -i ../lrzsz-0.12.20-gettext-0.20.patch &&
patch -Np1 -i ../lrzsz-0.12.20-AR.patch &&
patch -Np1 -i ../lrzsz-0.12.20-configure-clang16.patch &&
patch -Np1 -i ../lrzsz-0.12.20-gettext-0.22.patch &&
patch -Np1 -i ../lrzsz-0.12.20-c99.patch &&
patch -Np1 -i ../lrzsz-0.12.20-fix-integer-overflow.patch &&
patch -Np1 -i ../lrzsz-0.12.20-c23.patch
Add and remove files, then regenerate the autoconf files:
touch config.rpath &&
rm -vf missing &&
rm -vf acconfig.h &&
autoreconf -fiv
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
done
Command 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.9.