add files

This commit is contained in:
Mahno 2025-03-25 17:15:45 +08:00
parent be9b942ccf
commit 8f592beb00
4 changed files with 206 additions and 0 deletions

BIN
initviocons-0.5.tar.bz2 Normal file

Binary file not shown.

12
initviocons-gcc15.patch Normal file
View File

@ -0,0 +1,12 @@
--- initviocons-0.5/main.c 2025-03-05 09:53:18.279710271 +0100
+++ initviocons-0.5/main.c 2025-03-05 09:52:56.278462753 +0100
@@ -132,7 +132,7 @@ static struct {
};
void usage(void);
-void strascii();
+void strascii(register unsigned char *p);
void settermmode(int);
int readreply(int, char *, int, int);
int termsend(int, char *, char *);

129
initviocons.changes Normal file
View File

@ -0,0 +1,129 @@
-------------------------------------------------------------------
Wed Mar 5 09:06:39 UTC 2025 - pgajdos@suse.com
- fix build with gcc15
+ initviocons-gcc15.patch
-------------------------------------------------------------------
Tue Nov 7 21:45:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- spec-cleaner run
-------------------------------------------------------------------
Tue Dec 27 12:27:04 UTC 2022 - Ludwig Nussel <lnussel@suse.com>
- Replace transitional %usrmerged macro with regular version check (boo#1206798)
-------------------------------------------------------------------
Fri Oct 16 09:56:18 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
- prepare usrmerge (boo#1029961)
-------------------------------------------------------------------
Wed May 31 21:41:00 UTC 2017 - meissner@suse.com
- Actually build with RPM_OPT_FLAGS, will also catch
too long -F arguments (bsc#1041840)
-------------------------------------------------------------------
Fri Feb 17 18:56:46 UTC 2012 - rschweikert@suse.com
- place binary in /usr tree (UsrMerge project)
-------------------------------------------------------------------
Thu Dec 1 15:48:27 UTC 2011 - coolo@suse.com
- add automake as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Mon Oct 5 19:46:42 CEST 2009 - poeml@suse.de
- add missing executable permissions to /usr/bin/termprobes
[bnc#544224]
-------------------------------------------------------------------
Mon Dec 10 18:12:13 CET 2007 - poeml@suse.de
- update to r27:
- when using -e, only output the TERM value and don't add
LINES,COLUMNS by default anymore. Discussion in [#184179] (ssh
installation exit abnormally when change terminal window size)
has shown that they are not needed anyway, and they seem to
cause problems in some cases (when used together with ssh). In
order to be able to revert to the previous behaviour, the -s
switch was added. It adds LINES and COLUMNS to the eval output
again.
-------------------------------------------------------------------
Wed Nov 14 12:20:42 CET 2007 - poeml@suse.de
- update to r25:
- recognize WebSM console
https://bugzilla.novell.com/show_bug.cgi?id=256139
which sends a characteristic primary da
-------------------------------------------------------------------
Thu Jul 19 07:28:29 CEST 2007 - poeml@suse.de
- update to 0.5 (svn r24)
- support for mlterm and Terminal.app
- prefer Terminal.app over kterm (which responds in the same
way). kterm is not widely used anymore, it was an old xterm
fork but it isn't UTF-8 capable.
- make it compile on Darwin 8.6
- fold in patches initviocons-0.4.dif (c shell eval mode)
initviocons.minimal-termsize.patch [#140383]
initviocons.ps3-hack.patch
initviocons.ps3-matching.patch
-------------------------------------------------------------------
Tue Jul 17 12:22:22 CEST 2007 - sassmann@suse.de
- added new /proc/device-tree/model matching for ps3 detection
-------------------------------------------------------------------
Tue Apr 24 20:48:49 CEST 2007 - olh@suse.de
- do not run initviocons on PS3, until the kernel fb is fixed
-------------------------------------------------------------------
Wed Jan 25 21:36:37 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Sun Jan 8 13:15:57 CET 2006 - olh@suse.de
- do not set cols/rows to less than 80x24 (#140383)
-----------------------------------------------------------------
Wed Oct 26 13:31:58 CEST 2005 - werner@suse.de
- Add support for C shell in eval mode
-----------------------------------------------------------------
Wed Oct 5 13:56:12 CEST 2005 - dmueller@suse.de
- add norootforbuild
-------------------------------------------------------------------
Sun Jun 9 18:20:34 CEST 2002 - poeml@suse.de
- update to 0.4
- no longer ignore carriage return when a Windows telnet client ist
connected (on iSeries). The telnet server has been fixed to
handle the Network Virtual Terminal newline correctly. If the
respective Program Temporary Fixes are installed on the iSeries,
this fix here is needed as well to prevent Enter key malfunction
on the virtual console.
-------------------------------------------------------------------
Tue Mar 12 10:26:54 CET 2002 - kukuk@suse.de
- Fix filelist (exclude /usr/bin as directory)
-------------------------------------------------------------------
Mon Feb 4 13:21:37 CET 2002 - poeml@suse.de
- created package

65
initviocons.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package initviocons
#
# Copyright (c) 2025 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: initviocons
Version: 0.5
Release: 0
Summary: Terminal Initialization, e.g. for the iSeries Virtual Console
License: GPL-2.0-or-later
Group: System/Console
URL: http://svn.poeml.de/viewcvs/initviocons/
Source: initviocons-%{version}.tar.bz2
# build with gcc15
Patch0: initviocons-gcc15.patch
BuildRequires: automake
%description
Initviocons can be used on the iSeries platform to recognize terminal
features of a telnet client that is connected to the virtual console
(similar to a serial console). It probes the terminal via escape
sequences to find out the screen size and a suitable TERM type. It also
does special initialization if possible (for example, carriage return
suppression for Windows telnet clients). On the iSeries platform, it
additionally checks for the presence of more than one terminal
connected on the same line. See %{_sysconfdir}/profile for a usage example.
%prep
%autosetup -p1 -n initviocons-%{version}
%build
autoreconf -fi
%configure
%make_build CFLAGS="%{optflags} -Wall"
%install
%make_install
install -m 0755 termprobes %{buildroot}/%{_bindir}/termprobes
%if 0%{?suse_version} < 1550
mkdir -p %{buildroot}/bin
ln -sf %{_bindir}/initviocons %{buildroot}/bin
%endif
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%if 0%{?suse_version} < 1550
/bin/*
%endif
%{_bindir}/*
%changelog