diff --git a/initviocons-0.5.tar.bz2 b/initviocons-0.5.tar.bz2 new file mode 100644 index 0000000..323c7fd Binary files /dev/null and b/initviocons-0.5.tar.bz2 differ diff --git a/initviocons-gcc15.patch b/initviocons-gcc15.patch new file mode 100644 index 0000000..b43cd6b --- /dev/null +++ b/initviocons-gcc15.patch @@ -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 *); + diff --git a/initviocons.changes b/initviocons.changes new file mode 100644 index 0000000..fad2f72 --- /dev/null +++ b/initviocons.changes @@ -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 + +- spec-cleaner run + +------------------------------------------------------------------- +Tue Dec 27 12:27:04 UTC 2022 - Ludwig Nussel + +- Replace transitional %usrmerged macro with regular version check (boo#1206798) + +------------------------------------------------------------------- +Fri Oct 16 09:56:18 UTC 2020 - Ludwig Nussel + +- 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 + diff --git a/initviocons.spec b/initviocons.spec new file mode 100644 index 0000000..25b75d8 --- /dev/null +++ b/initviocons.spec @@ -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