This commit is contained in:
commit
f72eb0b385
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
74
initviocons-0.4.dif
Normal file
74
initviocons-0.4.dif
Normal file
@ -0,0 +1,74 @@
|
||||
main.c | 18 +++++++++++++-----
|
||||
usage.c | 4 +++-
|
||||
2 files changed, 16 insertions(+), 6 deletions(-)
|
||||
|
||||
Index: main.c
|
||||
===================================================================
|
||||
--- main.c.orig
|
||||
+++ main.c
|
||||
@@ -146,6 +146,7 @@ int main(int argc, char *argv[])
|
||||
int opt; /* for getopt() */
|
||||
int should_init = 1; /* shall we do any initialization? */
|
||||
int output_for_eval = 0; /* print output for eval? */
|
||||
+ int csh_user = 0; /* the eval oputput belongs to csh */
|
||||
int fd;
|
||||
struct stat statbuf;
|
||||
|
||||
@@ -161,7 +162,7 @@ int main(int argc, char *argv[])
|
||||
Quiet = 0;
|
||||
Igncr = 0;
|
||||
|
||||
- while ((opt = getopt(argc, argv, "dqpeF:h")) != -1) {
|
||||
+ while ((opt = getopt(argc, argv, "dqpeF:ch")) != -1) {
|
||||
switch (opt) {
|
||||
case 'd': Debug++; break;
|
||||
case 'q': Quiet++; break;
|
||||
@@ -169,6 +170,7 @@ int main(int argc, char *argv[])
|
||||
case 'e': output_for_eval++; break;
|
||||
case 'F': sprintf(device, "%s", optarg); break;
|
||||
case ':': printf("option needs a value\n"); break;
|
||||
+ case 'c': csh_user++; break;
|
||||
case 'h': usage(); break;
|
||||
case '?': usage(); break;
|
||||
}
|
||||
@@ -382,10 +384,16 @@ int main(int argc, char *argv[])
|
||||
|
||||
/* to be evaled by the shell */
|
||||
if (output_for_eval) {
|
||||
- printf ("\nTERM=%s;\n", termstr);
|
||||
- printf ("COLUMNS=%d;\n", cols);
|
||||
- printf ("LINES=%d;\n", lines);
|
||||
- printf ("export COLUMNS LINES;\n");
|
||||
+ if (csh_user) {
|
||||
+ printf ("setenv TERM %s;\n", termstr);
|
||||
+ printf ("setenv COLUMNS %d;\n", cols);
|
||||
+ printf ("setenv LINES %d\n", lines);
|
||||
+ } else {
|
||||
+ printf ("TERM=%s;\n", termstr);
|
||||
+ printf ("COLUMNS=%d;\n", cols);
|
||||
+ printf ("LINES=%d;\n", lines);
|
||||
+ printf ("export COLUMNS LINES\n");
|
||||
+ }
|
||||
}
|
||||
|
||||
/* FIXME: signal handling */
|
||||
Index: usage.c
|
||||
===================================================================
|
||||
--- usage.c.orig
|
||||
+++ usage.c
|
||||
@@ -1,5 +1,6 @@
|
||||
+#include <stdlib.h>
|
||||
+#include <stdio.h>
|
||||
#include "viocons.h"
|
||||
-#include "stdio.h"
|
||||
|
||||
void usage(void)
|
||||
{
|
||||
@@ -12,6 +13,7 @@ Usage: " PROGRAM " [-d] [-q] [-p] [-e] [
|
||||
-e\twrite COLUMNS, LINES and TERM to stdout to be evaled\n\
|
||||
\t(does not need to imply -q because informational output goes to stderr)\n\
|
||||
-F\tspecify the terminal device, e.g. /dev/tty1\n\
|
||||
+-c\toutput C shell code for eval\n\
|
||||
-h\tshow usage info\n\
|
||||
\n\
|
||||
", VERSION);
|
3
initviocons-0.4.tar.bz2
Normal file
3
initviocons-0.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:db2731c967f8f6298695fec37938b41113600deaf6ca3eede74dab00648d2511
|
||||
size 51270
|
41
initviocons.changes
Normal file
41
initviocons.changes
Normal file
@ -0,0 +1,41 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
23
initviocons.minimal-termsize.patch
Normal file
23
initviocons.minimal-termsize.patch
Normal file
@ -0,0 +1,23 @@
|
||||
main.c | 9 +++++++++
|
||||
1 files changed, 9 insertions(+)
|
||||
|
||||
Index: initviocons-0.4/main.c
|
||||
===================================================================
|
||||
--- initviocons-0.4.orig/main.c
|
||||
+++ initviocons-0.4/main.c
|
||||
@@ -245,6 +245,15 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
if (Debug) printf ("%d cols, %d lines \n", cols, lines);
|
||||
|
||||
+ /*
|
||||
+ * a terminal size smaller than the defaults doesnt make sense
|
||||
+ * this will happen on the POWER4/POWER5 hvc console
|
||||
+ */
|
||||
+ if (DEFAULT_COLS >= cols)
|
||||
+ cols = DEFAULT_COLS;
|
||||
+ if (DEFAULT_ROWS >= lines)
|
||||
+ lines = DEFAULT_ROWS;
|
||||
+
|
||||
|
||||
/* get more info to discriminate terminals */
|
||||
switch (foundterm) {
|
83
initviocons.spec
Normal file
83
initviocons.spec
Normal file
@ -0,0 +1,83 @@
|
||||
#
|
||||
# spec file for package initviocons (Version 0.4)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: initviocons
|
||||
URL: http://www.iseries.de/
|
||||
Version: 0.4
|
||||
Release: 305
|
||||
Summary: Terminal initialization for the iSeries virtual console
|
||||
License: GPL
|
||||
Group: System/Console
|
||||
Autoreqprov: on
|
||||
Source: initviocons-%{version}.tar.bz2
|
||||
Patch: initviocons-%{version}.dif
|
||||
Patch1: initviocons.minimal-termsize.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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 /etc/profile for a usage example.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Peter Poeml <poeml@suse.de>
|
||||
|
||||
%prep
|
||||
%setup -n initviocons-%{version}
|
||||
%patch0
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
./configure --prefix=/ --mandir=%{_mandir}
|
||||
make CFLAGS="$RPM_OPT_FLAGS -Wall"
|
||||
|
||||
%install
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
cp -p termprobes $RPM_BUILD_ROOT/usr/bin/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
|
||||
/bin/*
|
||||
/usr/bin/*
|
||||
|
||||
%changelog -n initviocons
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Sun Jan 08 2006 - olh@suse.de
|
||||
- do not set cols/rows to less than 80x24 (#140383)
|
||||
* Wed Oct 26 2005 - werner@suse.de
|
||||
- Add support for C shell in eval mode
|
||||
* Wed Oct 05 2005 - dmueller@suse.de
|
||||
- add norootforbuild
|
||||
* Sun Jun 09 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 2002 - kukuk@suse.de
|
||||
- Fix filelist (exclude /usr/bin as directory)
|
||||
* Mon Feb 04 2002 - poeml@suse.de
|
||||
- created package
|
Loading…
Reference in New Issue
Block a user