commit 75800c1a58ceb4bac3c3b83a10071d5adfb2a1b4
Author: Jan Palus <[email protected]>
Date:   Fri Jun 4 18:30:17 2021 +0000

    new
    
    - patch extending list of supported baud rates

 ttylog-more_bauds.patch | 22 ++++++++++++++++++++++
 ttylog.spec             | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
---
diff --git a/ttylog.spec b/ttylog.spec
new file mode 100644
index 0000000..52b17af
--- /dev/null
+++ b/ttylog.spec
@@ -0,0 +1,41 @@
+Summary:       Serial port logger
+Name:          ttylog
+Version:       0.31
+Release:       1
+License:       GPL v2
+Group:         Applications
+Source0:       
https://downloads.sourceforge.net/ttylog/%{name}-%{version}.tar.gz
+# Source0-md5: 00721be52a9f61c951065f932c41f16a
+Patch0:                %{name}-more_bauds.patch
+URL:           https://ttylog.sourceforge.net/
+BuildRequires: cmake >= 2.8
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Print everything that comes from a serial device to stdout. The device
+as well as the baud rate can be specified and a timeout can be set
+instead of just killing the process in order to stop it.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%cmake -B build
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README.md TODO
+%attr(755,root,root) %{_sbindir}/ttylog
+%{_mandir}/man8/ttylog.8*
diff --git a/ttylog-more_bauds.patch b/ttylog-more_bauds.patch
new file mode 100644
index 0000000..8724e8e
--- /dev/null
+++ b/ttylog-more_bauds.patch
@@ -0,0 +1,22 @@
+--- ttylog-0.31/ttylog.c.orig  2018-01-15 01:47:14.000000000 +0000
++++ ttylog-0.31/ttylog.c       2021-06-04 17:57:03.485322229 +0000
+@@ -35,15 +35,16 @@
+ 
+ #include "config.h"
+ 
+-#define BAUDN 9
+ 
+ char flush = 0;
+ 
+ char *BAUD_T[] =
+-{"300", "1200", "2400", "4800", "9600", "19200", "38400", "57600", "115200"};
++{"300", "1200", "2400", "4800", "9600", "19200", "38400", "57600", "115200", 
"230400", "460800", "500000", "576000", "921600", "1000000", "1152000", 
"1500000", "2000000", "2500000", "3000000", "3500000", "4000000"};
+ 
+ int BAUD_B[] =
+-{B300, B1200, B2400, B4800, B9600, B19200, B38400, B57600, B115200};
++{B300, B1200, B2400, B4800, B9600, B19200, B38400, B57600, B115200, B230400, 
B460800, B500000, B576000, B921600, B1000000, B1152000, B1500000, B2000000, 
B2500000, B3000000, B3500000, B4000000};
++
++#define BAUDN (sizeof(BAUD_B)/sizeof(int))
+ 
+ int
+ main (int argc, char *argv[])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ttylog.git/commitdiff/75800c1a58ceb4bac3c3b83a10071d5adfb2a1b4

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to