This commit is contained in:
parent
f72eb0b385
commit
128c2d5279
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Wed Jan 25 21:36:37 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
27
initviocons.ps3-hack.patch
Normal file
27
initviocons.ps3-hack.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
main.c | 12 ++++++++++++
|
||||||
|
1 file changed, 12 insertions(+)
|
||||||
|
|
||||||
|
Index: initviocons-0.4/main.c
|
||||||
|
===================================================================
|
||||||
|
--- initviocons-0.4.orig/main.c
|
||||||
|
+++ initviocons-0.4/main.c
|
||||||
|
@@ -157,6 +157,18 @@ int main(int argc, char *argv[])
|
||||||
|
int cols = DEFAULT_COLS;
|
||||||
|
int lines = DEFAULT_ROWS;
|
||||||
|
char lines_s[4], cols_s[4];
|
||||||
|
+ char model[42];
|
||||||
|
+
|
||||||
|
+ fd = open("/proc/device-tree/model", O_RDONLY);
|
||||||
|
+ if (fd >=0) {
|
||||||
|
+ opt = read(fd, model, sizeof(model) - 1);
|
||||||
|
+ if (opt > 0) {
|
||||||
|
+ model[opt] = '\0';
|
||||||
|
+ if (strcmp("PLAYSTATION 3", model) == 0)
|
||||||
|
+ exit(0);
|
||||||
|
+ }
|
||||||
|
+ close(fd);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
Debug = 0;
|
||||||
|
Quiet = 0;
|
@ -1,27 +1,28 @@
|
|||||||
#
|
#
|
||||||
# spec file for package initviocons (Version 0.4)
|
# spec file for package initviocons (Version 0.4)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: initviocons
|
Name: initviocons
|
||||||
URL: http://www.iseries.de/
|
URL: http://www.iseries.de/
|
||||||
Version: 0.4
|
Version: 0.4
|
||||||
Release: 305
|
Release: 347
|
||||||
Summary: Terminal initialization for the iSeries virtual console
|
Summary: Terminal Initialization for the iSeries Virtual Console
|
||||||
License: GPL
|
License: GNU General Public License (GPL)
|
||||||
Group: System/Console
|
Group: System/Console
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Source: initviocons-%{version}.tar.bz2
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Patch: initviocons-%{version}.dif
|
Source: initviocons-%{version}.tar.bz2
|
||||||
Patch1: initviocons.minimal-termsize.patch
|
Patch: initviocons-%{version}.dif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Patch1: initviocons.minimal-termsize.patch
|
||||||
|
Patch3: initviocons.ps3-hack.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Initviocons can be used on the iSeries platform to recognize terminal
|
Initviocons can be used on the iSeries platform to recognize terminal
|
||||||
@ -43,6 +44,7 @@ Authors:
|
|||||||
%setup -n initviocons-%{version}
|
%setup -n initviocons-%{version}
|
||||||
%patch0
|
%patch0
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --prefix=/ --mandir=%{_mandir}
|
./configure --prefix=/ --mandir=%{_mandir}
|
||||||
@ -60,7 +62,9 @@ cp -p termprobes $RPM_BUILD_ROOT/usr/bin/
|
|||||||
/bin/*
|
/bin/*
|
||||||
/usr/bin/*
|
/usr/bin/*
|
||||||
|
|
||||||
%changelog -n initviocons
|
%changelog
|
||||||
|
* Tue Apr 24 2007 - olh@suse.de
|
||||||
|
- do not run initviocons on PS3, until the kernel fb is fixed
|
||||||
* Wed Jan 25 2006 - mls@suse.de
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
- converted neededforbuild to BuildRequires
|
- converted neededforbuild to BuildRequires
|
||||||
* Sun Jan 08 2006 - olh@suse.de
|
* Sun Jan 08 2006 - olh@suse.de
|
||||||
|
Loading…
x
Reference in New Issue
Block a user