Package init

This commit is contained in:
dogsheng 2019-11-19 11:50:38 +08:00
commit 9521892c2a
6 changed files with 3551 additions and 0 deletions

3403
lrzsz-0.12.20-aarch64.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,20 @@
--- lrzsz-0.12.20/src/lsz.c.glibc21 Tue Dec 29 17:07:59 1998
+++ lrzsz-0.12.20/src/lsz.c Mon Mar 8 10:56:19 1999
@@ -53,7 +53,6 @@
#ifndef STRICT_PROTOTYPES
extern time_t time();
extern char *strerror();
-extern char *strstr();
#endif
#ifndef HAVE_ERRNO_DECLARATION
--- lrzsz-0.12.20/src/lrz.c.glibc21 Wed Dec 30 02:49:24 1998
+++ lrzsz-0.12.20/src/lrz.c Mon Mar 8 10:56:01 1999
@@ -44,7 +44,6 @@
#ifndef STRICT_PROTOTYPES
extern time_t time();
extern char *strerror();
-extern char *strstr();
#endif
#ifndef HAVE_ERRNO_DECLARATION

67
lrzsz-0.12.20-man.patch Normal file
View File

@ -0,0 +1,67 @@
diff -up lrzsz-0.12.20/man/lsz.1.man lrzsz-0.12.20/man/lsz.1
--- lrzsz-0.12.20/man/lsz.1.man 1998-04-26 15:22:41.000000000 +0200
+++ lrzsz-0.12.20/man/lsz.1 2011-03-07 13:02:40.069778076 +0100
@@ -133,7 +133,7 @@ The user must supply the file name to bo
If
.B sz
-is invoked with $SHELL set and iff that variable contains the
+is invoked with $SHELL set and if that variable contains the
string
.I "rsh"
,
@@ -207,7 +207,7 @@ for ZMODEM.
.B "-B NUMBER, --bufsize NUMBER"
Use a readbuffer of
.B NUMBER
-bytes. Default ist 16384, which should be enough
+bytes. Default is 16384, which should be enough
for most situations. If you have a slow machine or a bad disk interface
or suffer from other hardware problems you might want to increase
the buffersize.
@@ -219,7 +219,7 @@ option - things normally get worse, not
to swap.
Using this option turns of memory mapping of the input file. This
-increases memory and cpu usage.
+increases memory and CPU usage.
.TP
.B "-c COMMAND, --command COMMAND"
Send COMMAND to the receiver for execution, return with COMMAND\'s exit status.
@@ -265,7 +265,7 @@ give help.
.TP
.B "-i COMMAND, --immediate-command COMMAND"
Send COMMAND to the receiver for execution, return immediately
-upon the receiving program's successful recption of the command.
+upon the receiving program's successful reception of the command.
.TP
.B "-k, --1k"
(XMODEM/YMODEM) Send files using 1024 byte blocks
@@ -509,7 +509,7 @@ with conversion
.RB ( \-a )
to end of line conventions appropriate to the receiving environment.
With ZMODEM AutoDownload enabled, Professional-YAM and ZCOMM
-will automatically recieve
+will automatically receive
the files after performing a security check.
.br
@@ -593,7 +593,7 @@ the source file.
.SH "VMS VERSION"
The VMS version does not support wild cards.
Because of VMS DCL, upper case option letters muse be represented
-by \\ proceding the letter.
+by \\ proceeding the letter.
The current VMS version does not support XMODEM, XMODEM-1k, or YMODEM.
@@ -682,7 +682,7 @@ getting hot and bothered.
The test mode leaves a zero length file on the receiving system.
A few high speed modems have a firmware bug that drops characters when the
-direction of high speed transmissson is reversed.
+direction of high speed transmission is reversed.
The environment variable ZNULLS may be used to specify the number of nulls to
send before a ZDATA frame.
-Values of 101 for a 4.77 mHz PC and 124 for an AT are typical.
+Values of 101 for a 4.77 MHz PC and 124 for an AT are typical.

20
lrzsz-0.12.20.patch Normal file
View File

@ -0,0 +1,20 @@
diff -urN lrzsz-0.12.20/src/zm.c lrzsz-0.12.20.new/src/zm.c
--- lrzsz-0.12.20/src/zm.c Tue Dec 29 09:48:38 1998
+++ lrzsz-0.12.20.new/src/zm.c Tue Oct 8 12:46:58 2002
@@ -431,10 +431,12 @@
VPRINTF(3,("zsdata: %lu %s", (unsigned long) length,
Zendnames[(frameend-ZCRCE)&3]));
crc = 0;
- do {
- zsendline(*buf); crc = updcrc((0377 & *buf), crc);
- buf++;
- } while (--length>0);
+
+ for( ; length; length--) {
+ zsendline(*buf); crc = updcrc((0377 & *buf), crc);
+ buf++;
+ }
+
xsendline(ZDLE); xsendline(frameend);
crc = updcrc(frameend, crc);

BIN
lrzsz-0.12.20.tar.gz Normal file

Binary file not shown.

41
lrzsz.spec Normal file
View File

@ -0,0 +1,41 @@
Name: lrzsz
Version: 0.12.20
Release: 46
License: GPLv2+
Summary: Free x/y/zmodem implementation
Url: http://www.ohse.de/uwe/software/lrzsz.html
Source: http://www.ohse.de/uwe/releases/%{name}-%{version}.tar.gz
Patch0001: lrzsz-0.12.20-glibc21.patch
Patch0002: lrzsz-0.12.20.patch
Patch0003: lrzsz-0.12.20-man.patch
Patch0004: lrzsz-0.12.20-aarch64.patch
BuildRequires: gcc gettext
%description
lrzsz is a unix communication package providing the XMODEM,
YMODEM ZMODEM file transfer protocols. lrzsz is a heavily
rehacked version of the last public domain release of Omen
Technologies rzsz package.
%prep
%autosetup -p1
rm -f po/*.gmo
%build
%configure --disable-pubdir --enable-syslog --program-transform-name=s/l//
%make_build
%install
%makeinstall
%find_lang %{name}
%files -f %{name}.lang
%doc COPYING README
%{_bindir}/*
%{_mandir}/*/*
%changelog
* Tue Nov 5 2019 Yiru Wang <wangyiru1@huawei.com> - 0.12.20-46
- Pakcage init