forked from pool/ser2net
b1676b78ab
- Update to version 4.2.0 telnet: * There was an issue with telnet handling where it could get into a loop talking to the remote end. * Fix an issue where an error in a certain place could cause closing to hang. selector: Allow an arbitrary number of file descriptors with epoll. With epoll, you can set the max number of fds > FD_SETSIZE. Allow that. IPv6: * There was a bug in the Linux SCTP stack dealing with IPv6 handling that I thought was a bug in ser2net. So I looked, and I found some issues with IPv6 in general and the way it handles IPv4 address mapping. In the new code: Modify the operation of an address without "ipv6," explicitly in front of it to all V4 mapped addresses. And fix the connect side to set V6 only on the socket if "ipv6,"is in front of it. This means you cannot mix "ipv6," and "ipv6n4," addresses on the same connection, and the default is now "ipv6n4" This broke handling of things like "tcp,1234", so rework those to only use IPv6 when it is mapped. That, in turn, broke UDP. Or, more accurately, expose a UDP bug, so some work had to be done to handle IPv4 mapped addresses in IPv6 by reworking address comparison to handle that. general: convert gensio_raddr_to_str(), gensio_get_raddr(), and gensio_remote_id() to use gensio_control(). Having separate functions for those added to the API and added a lot of code to all the intermediate layer. The function are there but OBS-URL: https://build.opensuse.org/request/show/819531 OBS-URL: https://build.opensuse.org/package/show/network:utilities/ser2net?expand=0&rev=20
79 lines
2.2 KiB
RPMSpec
79 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package ser2net
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ser2net
|
|
Version: 4.2.0
|
|
Release: 0
|
|
Summary: Serial port to network proxy
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/Other
|
|
URL: https://github.com/cminyard/ser2net.git
|
|
Source: https://github.com/cminyard/ser2net/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source2: ser2net.service
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: pkgconfig(libgensio)
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
ser2net provides a way for a user to connect from a network connection to a
|
|
serial port. It provides all the serial port setup, a configuration file to
|
|
configure the ports, a control login for modifying port parameters,
|
|
monitoring ports, and controlling ports.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure --disable-static
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
install -D -m 0644 %{name}.yaml %{buildroot}/%{_sysconfdir}/ser2net/%{name}.yaml
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/ser2net.service
|
|
|
|
%pre
|
|
%service_add_pre ser2net.service
|
|
|
|
%post
|
|
%service_add_post ser2net.service
|
|
|
|
%preun
|
|
%service_del_preun ser2net.service
|
|
|
|
%postun
|
|
%service_del_postun ser2net.service
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc ChangeLog AUTHORS README
|
|
%{_sbindir}/%{name}
|
|
%dir %{_sysconfdir}/ser2net
|
|
%config(noreplace) %{_sysconfdir}/ser2net/%{name}.yaml
|
|
%{_unitdir}/ser2net.service
|
|
%{_mandir}/man5/ser2net.yaml.5%{?ext_man}
|
|
%{_mandir}/man8/ser2net.8%{?ext_man}
|
|
|
|
%changelog
|